Skip to content

Ability to define -DFP_IN_IROM when generating ld script#7188

Merged
earlephilhower merged 2 commits into
esp8266:masterfrom
s-hadinger:fpinrom2
Apr 6, 2020
Merged

Ability to define -DFP_IN_IROM when generating ld script#7188
earlephilhower merged 2 commits into
esp8266:masterfrom
s-hadinger:fpinrom2

Conversation

@s-hadinger
Copy link
Copy Markdown
Contributor

Follow up of #7180, there was no way to enable the -DFP_IN_IROM flag when generating the ld script.

Copy link
Copy Markdown
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but unfortunately I'm not a PIO user so can't comment if this is the best way to get another flag in.

Comment thread tools/platformio-build.py
join(FRAMEWORK_DIR, "tools", "sdk", "ld", "eagle.app.v6.common.ld.h"),
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),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't speak pythonese or use platformio; however, shouldn't there be a -D in front of the new '%s'.
Déjà Vu, I changed the same line in a PoC PR

"$CC -CC -E -P -D%s -D%s $SOURCE -o $TARGET" % (current_vtables, current_mmu_iram_size),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because the second parameter can be absent. This would result in -D being inserted and potentially causing an error.
The -D is already included above here: fp_in_irom = "-DFP_IN_IROM"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants