@@ -481,25 +481,8 @@ func (pm *Builder) loadBoards(platform *cores.PlatformRelease) error {
481
481
// set all other boards properties
482
482
delete (propertiesByBoard , "menu" )
483
483
484
- skippedBoards := []string {}
485
484
for boardID , boardProperties := range propertiesByBoard {
486
485
var board * cores.Board
487
- for key := range boardProperties .AsMap () {
488
- if ! strings .HasPrefix (key , "menu." ) {
489
- continue
490
- }
491
- // Menu keys are formed like this:
492
- // menu.cache.off=false
493
- // menu.cache.on=true
494
- // so we assume that the a second element in the slice exists
495
- menuName := strings .Split (key , "." )[1 ]
496
- if ! platform .Menus .ContainsKey (menuName ) {
497
- fqbn := fmt .Sprintf ("%s:%s:%s" , platform .Platform .Package .Name , platform .Platform .Architecture , boardID )
498
- skippedBoards = append (skippedBoards , fqbn )
499
- goto next_board
500
- }
501
- }
502
-
503
486
if ! platform .PluggableDiscoveryAware {
504
487
convertVidPidIdentificationPropertiesToPluggableDiscovery (boardProperties )
505
488
convertUploadToolsToPluggableDiscovery (boardProperties )
@@ -514,11 +497,6 @@ func (pm *Builder) loadBoards(platform *cores.PlatformRelease) error {
514
497
boardProperties .Set ("_id" , boardID )
515
498
board = platform .GetOrCreateBoard (boardID )
516
499
board .Properties .Merge (boardProperties )
517
- next_board:
518
- }
519
-
520
- if len (skippedBoards ) > 0 {
521
- return fmt .Errorf (tr ("skipping loading of boards %s: malformed custom board options" ), strings .Join (skippedBoards , ", " ))
522
500
}
523
501
524
502
return nil
0 commit comments