mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Ability to define -DFP_IN_IROM when generating ld script (#7188)
Co-authored-by: Stephan Hadinger <stephan.hadinger@gmail.com> Co-authored-by: david gauchard <gauchard@laas.fr>
This commit is contained in:
parent
c548958f6e
commit
3db610f6d0
@ -247,9 +247,12 @@ else:
|
|||||||
#
|
#
|
||||||
|
|
||||||
current_vtables = None
|
current_vtables = None
|
||||||
|
fp_in_irom = ""
|
||||||
for d in flatten_cppdefines:
|
for d in flatten_cppdefines:
|
||||||
if str(d).startswith("VTABLES_IN_"):
|
if str(d).startswith("VTABLES_IN_"):
|
||||||
current_vtables = d
|
current_vtables = d
|
||||||
|
if str(d) == "FP_IN_IROM":
|
||||||
|
fp_in_irom = "-DFP_IN_IROM"
|
||||||
if not current_vtables:
|
if not current_vtables:
|
||||||
current_vtables = "VTABLES_IN_FLASH"
|
current_vtables = "VTABLES_IN_FLASH"
|
||||||
env.Append(CPPDEFINES=[current_vtables])
|
env.Append(CPPDEFINES=[current_vtables])
|
||||||
@ -260,7 +263,7 @@ app_ld = env.Command(
|
|||||||
join("$BUILD_DIR", "ld", "local.eagle.app.v6.common.ld"),
|
join("$BUILD_DIR", "ld", "local.eagle.app.v6.common.ld"),
|
||||||
join(FRAMEWORK_DIR, "tools", "sdk", "ld", "eagle.app.v6.common.ld.h"),
|
join(FRAMEWORK_DIR, "tools", "sdk", "ld", "eagle.app.v6.common.ld.h"),
|
||||||
env.VerboseAction(
|
env.VerboseAction(
|
||||||
"$CC -CC -E -P -D%s $SOURCE -o $TARGET" % current_vtables,
|
"$CC -CC -E -P -D%s %s $SOURCE -o $TARGET" % (current_vtables, fp_in_irom),
|
||||||
"Generating LD script $TARGET"))
|
"Generating LD script $TARGET"))
|
||||||
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", app_ld)
|
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", app_ld)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user