-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Regression: COMPONENT_OWNBUILDTARGET and COMPONENT_ADD_LDFLAGS broken in v3.3-beta3 (maybe others) (IDFGH-1384) #3664
Comments
Hi @jmattsson , I'm really sorry for the incredibly long time it's taken for someone to get back to you, especially given the clearly articulated bug report. Regarding Regarding overriding Angus |
Hi Angus, Thanks for the (belated) update! Regarding Regards, |
* Minimize HardwareSerial Receive and Transmit delays * Remove uartRxFifoToQueue from esp-hal-uart.h Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Add build system test to match Partial fix for #3664
Thanks for reporting and sorry for very slow turnaround, fix on master is available dea52a9, we will back port the fix until release/3.3, will keep updated. |
@projectgus @Alvin1Zhang |
The fix is added to Unfortunately, the fix cannot be backported to Closing this issue. |
Environment
git describe --tags
to find it): v3.3-beta1-694-g6b3da6b18 (v3.3-beta3 tag used to checkout)xtensa-esp32-elf-gcc --version
to find it): 1.22.0-80-g6c4433a5Problem Description
I wanted to upgrade to the 3.3 branch in order to get access to the rollback support in the bootloader (yay!). However, doing so broke our project as one of our components using COMPONENT_OWNBUILDTARGET then failed to build.
This version IDF appears to completely disregard both COMPONENT_OWNBUILDTARGET and COMPONENT_ADD_LDFLAGS.
We are relying on this to build a host-tool used to generate artifacts that get used by a different component.
At least overriding COMPONENT_ADD_LDFLAGS used to work as per https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#fully-overriding-the-component-makefile . I'm not sure whether the COMPONENT_OWNBUILDTARGET ever worked, since our target is actually called "build".
Expected Behavior
Our own build target gets invoked, and COMPONENT_ADD_LDFLAGS is honored so the IDF doesn't attempt to link in a non-existent library.
Actual Behavior
The build still tries to use the
build
target:If we try to avoid this by naming our custom target
build
, then it fails later:Steps to reproduce
Create a new component in a project, with contents like:
Try to build it.
The text was updated successfully, but these errors were encountered: