mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
new board generator option: --nofloat (#4232)
This commit is contained in:
@ -924,8 +924,7 @@ def all_debug ():
|
||||
listcomb = [ 'SSL', 'TLS_MEM', 'HTTP_CLIENT', 'HTTP_SERVER' ]
|
||||
listnocomb = [ 'CORE', 'WIFI', 'HTTP_UPDATE', 'UPDATER', 'OTA' ]
|
||||
listsingle = [ 'NoAssert-NDEBUG' ]
|
||||
if not premerge:
|
||||
listnocomb += [ 'OOM -include "umm_malloc/umm_malloc_cfg.h"' ]
|
||||
listnocomb += [ 'OOM -include "umm_malloc/umm_malloc_cfg.h"' ]
|
||||
options = combn(listcomb)
|
||||
options += comb1(listnocomb)
|
||||
options += [ listcomb + listnocomb ]
|
||||
@ -1091,10 +1090,7 @@ def all_boards ():
|
||||
|
||||
macros.update(all_flash_size())
|
||||
macros.update(all_debug())
|
||||
if premerge:
|
||||
macros.update({ 'led': { } })
|
||||
else:
|
||||
macros.update(led(led_default, led_max))
|
||||
macros.update(led(led_default, led_max))
|
||||
|
||||
print '#'
|
||||
print '# this file is script-generated and is likely to be overwritten by ' + sys.argv[0]
|
||||
@ -1148,6 +1144,9 @@ def all_boards ():
|
||||
if not ('opts' in board) or not (optname in board['opts']):
|
||||
print id + optname + '=' + macros[block][optname]
|
||||
|
||||
if nofloat:
|
||||
print id + '.build.float='
|
||||
|
||||
print ''
|
||||
|
||||
if boardsgen:
|
||||
@ -1243,8 +1242,8 @@ def usage (name,ret):
|
||||
print " --led - preferred default builtin led for generic boards (default %d)" % led_default
|
||||
print " --board b - board to modify:"
|
||||
print " --speed s - change default serial speed"
|
||||
print " --premerge - no OOM debug option, no led menu"
|
||||
print " --customspeed s - new serial speed for all boards"
|
||||
print " --nofloat - disable float support in printf/scanf"
|
||||
print ""
|
||||
print " mandatory option (at least one):"
|
||||
print ""
|
||||
@ -1285,7 +1284,7 @@ lwip = 2
|
||||
default_speed = '115'
|
||||
led_default = 2
|
||||
led_max = 16
|
||||
premerge = False
|
||||
nofloat = False
|
||||
ldgen = False
|
||||
ldshow = False
|
||||
boardsgen = False
|
||||
@ -1300,7 +1299,7 @@ customspeeds = []
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "h",
|
||||
[ "help", "premerge", "lwip=", "led=", "speed=", "board=", "customspeed=",
|
||||
[ "help", "lwip=", "led=", "speed=", "board=", "customspeed=", "nofloat",
|
||||
"ld", "ldgen", "boards", "boardsgen", "package", "packagegen", "doc", "docgen" ])
|
||||
except getopt.GetoptError as err:
|
||||
print str(err) # will print something like "option -a not recognized"
|
||||
@ -1314,9 +1313,6 @@ for o, a in opts:
|
||||
if o in ("-h", "--help"):
|
||||
usage(sys.argv[0], 0)
|
||||
|
||||
elif o in ("--premerge"):
|
||||
premerge = True
|
||||
|
||||
elif o in ("--lwip"):
|
||||
lwip = a
|
||||
|
||||
@ -1343,6 +1339,9 @@ for o, a in opts:
|
||||
usage(sys.argv[0], 1)
|
||||
boards[board]['serial'] = a
|
||||
|
||||
elif o in ("--nofloat"):
|
||||
nofloat=True
|
||||
|
||||
elif o in ("--ldshow"):
|
||||
ldshow = True
|
||||
|
||||
|
Reference in New Issue
Block a user