@@ -1236,6 +1236,9 @@ def all_boards ():
1236
1236
if nofloat :
1237
1237
print id + '.build.float='
1238
1238
1239
+ if noextra4kheap :
1240
+ print id + '.build.noextra4kheap=-DNO_EXTRA_4K_HEAP'
1241
+
1239
1242
print ''
1240
1243
1241
1244
if boardsgen :
@@ -1253,11 +1256,8 @@ def package ():
1253
1256
1254
1257
if packagegen :
1255
1258
pkgfname_read = pkgfname + '.orig'
1256
- # check if backup already exists
1257
1259
if os .path .isfile (pkgfname_read ):
1258
- print "package file is in the way, please move it"
1259
- print " %s" % pkgfname_read
1260
- sys .exit (1 )
1260
+ os .remove (pkgfname_read )
1261
1261
os .rename (pkgfname , pkgfname_read )
1262
1262
1263
1263
# read package file
@@ -1333,6 +1333,8 @@ def usage (name,ret):
1333
1333
print " --speed s - change default serial speed"
1334
1334
print " --customspeed s - new serial speed for all boards"
1335
1335
print " --nofloat - disable float support in printf/scanf"
1336
+ print " --noextra4kheap - disable extra 4k heap (will enable WPS)"
1337
+ print " --allowWPS - synonym for --noextra4kheap"
1336
1338
print ""
1337
1339
print " mandatory option (at least one):"
1338
1340
print ""
@@ -1376,6 +1378,7 @@ def usage (name,ret):
1376
1378
led_default = 2
1377
1379
led_max = 16
1378
1380
nofloat = False
1381
+ noextra4kheap = False
1379
1382
ldgen = False
1380
1383
ldshow = False
1381
1384
boardsgen = False
@@ -1391,6 +1394,7 @@ def usage (name,ret):
1391
1394
try :
1392
1395
opts , args = getopt .getopt (sys .argv [1 :], "h" ,
1393
1396
[ "help" , "lwip=" , "led=" , "speed=" , "board=" , "customspeed=" , "nofloat" ,
1397
+ "noextra4kheap" , "allowWPS" ,
1394
1398
"ld" , "ldgen" , "boards" , "boardsgen" , "package" , "packagegen" , "doc" , "docgen" ,
1395
1399
"allgen" ] )
1396
1400
except getopt .GetoptError as err :
@@ -1434,6 +1438,9 @@ def usage (name,ret):
1434
1438
elif o in ("--nofloat" ):
1435
1439
nofloat = True
1436
1440
1441
+ elif o in ("--noextra4kheap" , "--allowWPS" ):
1442
+ noextra4kheap = True
1443
+
1437
1444
elif o in ("--ldshow" ):
1438
1445
ldshow = True
1439
1446
0 commit comments