70
70
'flashmode_menu' ,
71
71
'512K' , '1M' , '2M' , '4M' , '8M' , '16M' ,
72
72
'led' ,
73
+ 'sdk' ,
73
74
],
74
75
'desc' : [ 'These modules come in different form factors and pinouts. See the page at ESP8266 community wiki for more info: `ESP8266 Module Family <http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family>`__.' ,
75
76
'' ,
@@ -1326,6 +1327,18 @@ def led (default,max):
1326
1327
]))
1327
1328
return { 'led' : led }
1328
1329
1330
+ ################################################################
1331
+ # sdk selection
1332
+
1333
+ def sdk ():
1334
+ return { 'sdk' : collections .OrderedDict ([
1335
+ ('.menu.sdk.nonosdk221' , 'nonos-sdk 2.2.1' ),
1336
+ ('.menu.sdk.nonosdk221.build.sdk' , 'NONOSDK221' ),
1337
+ ('.menu.sdk.nonosdk3v0' , 'nonos-sdk pre-3' ),
1338
+ ('.menu.sdk.nonosdk3v0.build.sdk' , 'NONOSDK3V0' ),
1339
+ ])
1340
+ }
1341
+
1329
1342
################################################################
1330
1343
1331
1344
def all_boards ():
@@ -1344,6 +1357,7 @@ def all_boards ():
1344
1357
macros .update (all_flash_map ())
1345
1358
macros .update (all_debug ())
1346
1359
macros .update (led (led_default , led_max ))
1360
+ macros .update (sdk ())
1347
1361
1348
1362
print ('#' )
1349
1363
print ('# Do not create pull-requests for this file only, CI will not accept them.' )
@@ -1367,6 +1381,7 @@ def all_boards ():
1367
1381
print ('menu.exception=Exceptions' )
1368
1382
print ('menu.led=Builtin Led' )
1369
1383
print ('menu.wipe=Erase Flash' )
1384
+ print ('menu.sdk=Espressif FW' )
1370
1385
print ('' )
1371
1386
1372
1387
for id in boards :
@@ -1498,12 +1513,12 @@ def usage (name,ret):
1498
1513
print ("usage: %s [options]" % name )
1499
1514
print ("" )
1500
1515
print (" -h, --help" )
1501
- print (" --lwip - preferred default lwIP version (default %d)" % lwip )
1502
- print (" --led - preferred default builtin led for generic boards (default %d)" % led_default )
1503
- print (" --board b - board to modify:" )
1504
- print (" --speed s - change default serial speed" )
1505
- print (" --customspeed s - new serial speed for all boards" )
1506
- print (" --nofloat - disable float support in printf/scanf" )
1516
+ print (" --lwip - preferred default lwIP version (default %d)" % lwip )
1517
+ print (" --led - preferred default builtin led for generic boards (default %d)" % led_default )
1518
+ print (" --board <b> - board to modify:" )
1519
+ print (" --speed <s> - change default serial speed" )
1520
+ print (" --customspeed <s> - new serial speed for all boards" )
1521
+ print (" --nofloat - disable float support in printf/scanf" )
1507
1522
print ("" )
1508
1523
print (" mandatory option (at least one):" )
1509
1524
print ("" )
@@ -1610,7 +1625,7 @@ def usage (name,ret):
1610
1625
elif o in ("--noextra4kheap" , "--allowWPS" ):
1611
1626
print ('option ' + o + ' is now deprecated, without effect, and will be removed' )
1612
1627
1613
- elif o in ("--ldshow " ):
1628
+ elif o in ("--ld " ):
1614
1629
ldshow = True
1615
1630
1616
1631
elif o in ("--ldgen" ):
0 commit comments