File tree 3 files changed +12
-13
lines changed
3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,11 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
36
36
37
37
targetPlatform := ctx .TargetPlatform
38
38
actualPlatform := ctx .ActualPlatform
39
- targetBoard := ctx .TargetBoard
40
39
41
40
buildProperties := properties .NewMap ()
42
41
buildProperties .Merge (actualPlatform .Properties )
43
42
buildProperties .Merge (targetPlatform .Properties )
44
- buildProperties .Merge (targetBoard . Properties )
43
+ buildProperties .Merge (ctx . TargetBoardBuildProperties )
45
44
46
45
if ctx .BuildPath != nil {
47
46
buildProperties .SetPath ("build.path" , ctx .BuildPath )
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ func (s *TargetBoardResolver) Run(ctx *types.Context) error {
30
30
return fmt .Errorf ("%s: %w" , tr ("Error resolving FQBN" ), err )
31
31
}
32
32
33
- targetBoard .Properties = buildProperties // FIXME....
34
-
35
33
core := targetBoard .Properties .Get ("build.core" )
36
34
if core == "" {
37
35
core = "arduino"
@@ -46,6 +44,7 @@ func (s *TargetBoardResolver) Run(ctx *types.Context) error {
46
44
47
45
ctx .BuildCore = core
48
46
ctx .TargetBoard = targetBoard
47
+ ctx .TargetBoardBuildProperties = buildProperties
49
48
ctx .TargetPlatform = targetPlatform
50
49
ctx .TargetPackage = targetPackage
51
50
ctx .ActualPlatform = actualPlatform
Original file line number Diff line number Diff line change @@ -82,15 +82,16 @@ type Context struct {
82
82
BuildOptionsJson string
83
83
BuildOptionsJsonPrevious string
84
84
85
- PackageManager * packagemanager.PackageManager
86
- Hardware cores.Packages
87
- AllTools []* cores.ToolRelease
88
- RequiredTools []* cores.ToolRelease
89
- TargetBoard * cores.Board
90
- TargetPackage * cores.Package
91
- TargetPlatform * cores.PlatformRelease
92
- ActualPlatform * cores.PlatformRelease
93
- USBVidPid string
85
+ PackageManager * packagemanager.PackageManager
86
+ Hardware cores.Packages
87
+ AllTools []* cores.ToolRelease
88
+ RequiredTools []* cores.ToolRelease
89
+ TargetBoard * cores.Board
90
+ TargetBoardBuildProperties * properties.Map
91
+ TargetPackage * cores.Package
92
+ TargetPlatform * cores.PlatformRelease
93
+ ActualPlatform * cores.PlatformRelease
94
+ USBVidPid string
94
95
95
96
PlatformKeyRewrites PlatforKeysRewrite
96
97
HardwareRewriteResults map [* cores.PlatformRelease ][]PlatforKeyRewrite
You can’t perform that action at this time.
0 commit comments