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

fixed the way of building apps with any disired config #1345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

atoums
Copy link
Contributor

@atoums atoums commented Feb 2, 2024

Hello,
First, I am deeply sorry as i misunderstood the way building an app works. So the way of building an app, previously proposed from a PR, wasn't able to do the job it was supposed to, but didn't compromise the way of doing so that was already in place.
Using the previous Makefile file with CONFIG="" only compiled the firmware and not the app !

The modifications here are comments explaining the difference of building the apps.
the all rule allow to build an app with any config (eg. bolt) BUT requires the config file to be already included in the app-config file.
This might or not be desired.

In case not, the any rule concats the desired config file in a tmp oot-config file (eg. bolt_defconfig) before the app-config file
THEN calls the all rule.

NB. Binary files are also present in the app filesystem after compiling (*.o and *.o.cmd) (they were already from legacy) that are not caught by the clean rule. But that's not the subject of this PR.

@atoums
Copy link
Contributor Author

atoums commented Feb 2, 2024

The commit of the previous PR is : df96c57

Again sorry and have a nice week-end !

@knmcguire
Copy link
Member

alright, so what I understand from your comments, your issue with the current way is that the oot/app layer can only be build with the default config (CF2) and not with bolt config?

Also, tt is probably best to add at least the comments to the docs of the app layer instead of the .mk file for more visibility: https://github.com/bitcraze/crazyflie-firmware/edit/master/docs/userguides/app_layer.md

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.

None yet

3 participants