Skip to content

Commit faf165f

Browse files
committed
Removed support for compile --vid-pid
1 parent 2e92b40 commit faf165f

File tree

7 files changed

+5
-160
lines changed

7 files changed

+5
-160
lines changed

Diff for: docs/UPGRADING.md

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ $ arduino-cli outdated --format json
5151
}
5252
```
5353

54+
### Command `compile` does not support `--vid-pid` flag anymore
55+
56+
It was a legacy and undocumented feature that is now useless. The corresponding field in gRPC `CompileRequest.vid_pid`
57+
has been removed as well.
58+
5459
### golang API: method `github.com/arduino/arduino-cli/arduino/libraries/Library.LocationPriorityFor` removed
5560

5661
That method was outdated and must not be used.

Diff for: internal/cli/compile/compile.go

-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ var (
7878
warnings string // Used to tell gcc which warning level to use.
7979
verbose bool // Turns on verbose mode.
8080
quiet bool // Suppresses almost every output.
81-
vidPid string // VID/PID specific build properties.
8281
uploadAfterCompile bool // Upload the binary after the compilation.
8382
portArgs arguments.Port // Upload port, e.g.: COM10 or /dev/ttyACM0.
8483
verify bool // Upload, verify uploaded binary after the upload.
@@ -145,7 +144,6 @@ func NewCommand() *cobra.Command {
145144
compileCommand.Flags().BoolVarP(&uploadAfterCompile, "upload", "u", false, tr("Upload the binary after the compilation."))
146145
portArgs.AddToCommand(compileCommand)
147146
compileCommand.Flags().BoolVarP(&verify, "verify", "t", false, tr("Verify uploaded binary after the upload."))
148-
compileCommand.Flags().StringVar(&vidPid, "vid-pid", "", tr("When specified, VID/PID specific build properties are used, if board supports them."))
149147
compileCommand.Flags().StringSliceVar(&library, "library", []string{},
150148
tr("Path to a single library’s root folder. Can be used multiple times or entries can be comma separated."))
151149
compileCommand.Flags().StringSliceVar(&libraries, "libraries", []string{},
@@ -240,7 +238,6 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
240238
Warnings: warnings,
241239
Verbose: verbose,
242240
Quiet: quiet,
243-
VidPid: vidPid,
244241
ExportDir: exportDir,
245242
Libraries: libraries,
246243
OptimizeForDebug: optimizeForDebug,

Diff for: legacy/builder/constants/constants.go

-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ const BUILD_PROPERTIES_FQBN = "build.fqbn"
3232
const BUILD_PROPERTIES_INCLUDES = "includes"
3333
const BUILD_PROPERTIES_OBJECT_FILE = "object_file"
3434
const BUILD_PROPERTIES_PATTERN = "pattern"
35-
const BUILD_PROPERTIES_PID = "pid"
3635
const BUILD_PROPERTIES_PREPROCESSED_FILE_PATH = "preprocessed_file_path"
3736
const BUILD_PROPERTIES_RUNTIME_PLATFORM_PATH = "runtime.platform.path"
3837
const BUILD_PROPERTIES_SOURCE_FILE = "source_file"
3938
const BUILD_PROPERTIES_TOOLS_KEY = "tools"
40-
const BUILD_PROPERTIES_VID = "vid"
4139
const CTAGS = "ctags"
4240
const EMPTY_STRING = ""
4341
const FILE_CTAGS_TARGET_FOR_GCC_MINUS_E = "ctags_target_for_gcc_minus_e.cpp"

Diff for: legacy/builder/container_setup.go

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ func (s *ContainerSetupHardwareToolsLibsSketchAndProps) Run(ctx *types.Context)
5252

5353
commands = []types.Command{
5454
&SetupBuildProperties{},
55-
&LoadVIDPIDSpecificProperties{},
5655
&SetCustomBuildProperties{},
5756
&AddMissingBuildPropertiesFromParentPlatformTxtFiles{},
5857
}

Diff for: legacy/builder/load_vid_pid_specific_properties.go

-66
This file was deleted.

Diff for: legacy/builder/test/load_vid_pid_specific_properties_test.go

-87
This file was deleted.

Diff for: legacy/builder/types/context.go

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ type Context struct {
8888
TargetPackage *cores.Package
8989
TargetPlatform *cores.PlatformRelease
9090
ActualPlatform *cores.PlatformRelease
91-
USBVidPid string
9291

9392
PlatformKeyRewrites PlatforKeysRewrite
9493
HardwareRewriteResults map[*cores.PlatformRelease][]PlatforKeyRewrite

0 commit comments

Comments
 (0)