File tree 1 file changed +10
-0
lines changed
arduino/cores/packageindex 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
23
23
"github.com/arduino/arduino-cli/arduino/resources"
24
24
"github.com/arduino/arduino-cli/arduino/security"
25
25
"github.com/arduino/go-paths-helper"
26
+ "github.com/arduino/go-properties-orderedmap"
26
27
"github.com/sirupsen/logrus"
27
28
semver "go.bug.st/relaxed-semver"
28
29
)
@@ -145,6 +146,15 @@ func (inPlatformRelease indexPlatformRelease) extractPlatformIn(outPackage *core
145
146
CachePath : "packages" ,
146
147
}
147
148
outPlatformRelease .Help = cores.PlatformReleaseHelp {Online : inPlatformRelease .Help .Online }
149
+ outPlatformRelease .Boards = map [string ]* cores.Board {}
150
+ for _ , board := range inPlatformRelease .Boards {
151
+ outPlatformRelease .Boards [board .Name ] = & cores.Board {
152
+ Properties : properties .NewFromHashmap (map [string ]string {
153
+ "name" : board .Name ,
154
+ }),
155
+ PlatformRelease : outPlatformRelease ,
156
+ }
157
+ }
148
158
outPlatformRelease .BoardsManifest = inPlatformRelease .extractBoardsManifest ()
149
159
if deps , err := inPlatformRelease .extractDeps (); err == nil {
150
160
outPlatformRelease .Dependencies = deps
You can’t perform that action at this time.
0 commit comments