-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Feature/selective compilation #1671
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
Feature/selective compilation #1671
Conversation
@nathanjel is this good to go? |
I incorporated Your comments and use this updated version in my code successfully. So the answer is Yes :) |
merged! |
I have some build error since this update.
|
Adjust Kconfig.projbuild accordingly to support the new libraries You added locally. |
If I unset selective compilation, it should scan and build all lib in the folder. |
Indeed, You have a point there. What would You believe is the right behaviour if You choose selective compilation and pick some, what should happen with Your added libraries? Should they go in or out? Or a checkbox like "include additional"? By the way, I still hope there is way to trick IDF to regenerate Kconfig... You just got me a bit closer to researching that. |
Good question. "include additionnal" will help users that do not know how to add them manually. It could be a good idea. |
If I don't get a bright idea how to adjust Kconfig automatically, that seems the next best solution. @me-no-dev - any ideas/comments from You? |
Here is how it should work. If a library is not in the list for selection, it should be automatically included, regardless of what is selected in the menu. |
#1678 issue created. @psykokwak-com, it seems @me-no-dev was quicker than me with the fix. please check now and confirm the issue is resolved. |
* Selective compilation * Optimized component.mk * Autoconnect WiFi now forces WiFi
Enable selective compilation of Arduino libraries. Makes a big difference for projects which use entire Arduino library for late linking purposes (as in COMPONENT_ADD_LDFLAGS := -Wl,--whole-archive -l$(COMPONENT_NAME) -larduino-esp32 -Wl,--no-whole-archive)