Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix includes for assembler files in PlatformIO build #2255

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

maxgerhardt
Copy link
Contributor

@maxgerhardt maxgerhardt commented Jul 8, 2024

An oversight in the order of updating the ASFLAGS with a copy of the CCFLAGS (see line 110) and then updating the CCFLAGS (without resyncing the ASFLAGS) leads to a fatal compilation error in the Adafruit PicoDVI library, in which tmds_encode.S fails to find the pico/config.h include file. This fix updates the ASFLAGS manually after changing the CCFLAGS so that they're equal again, and the library can be compiled.

Failure reported in https://community.platformio.org/t/anybody-know-how-to-fix-this-this-is-an-error-for-the-picodvi-library-downloaded-from-platfrom/41607.

(This change only affects assembler files which access include files outside of the already added pico-sdk/src/rp2040/hardware_regs and pico-sdk/src/common/pico_binary_info folders.)

An oversight in the order of updating the ASFLAGS with a copy of the CCFLAGS (see line 110) and then updating the CCFLAGS (without resyncing the ASFLAGS) leads to a fatal compilation error in the Adafruit PicoDVI library, in which `tmds_encode.S` fails to find the `pico/config.h` include file. This fix updates the ASFLAGS manually after changing the CCFLAGS so that they're equal again, and the library can be compiled.
@maxgerhardt maxgerhardt changed the title Fix assembler flags Fix assembler flags in PlatformIO build Jul 8, 2024
@maxgerhardt maxgerhardt changed the title Fix assembler flags in PlatformIO build Fix includes for assembler files in PlatformIO build Jul 8, 2024
@earlephilhower earlephilhower merged commit 8cb8807 into earlephilhower:master Jul 8, 2024
13 checks passed
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.

2 participants