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 issue with app.overlay getting ignored #6

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

Conversation

magnmaeh
Copy link
Member

The issue was that the app.overlay file would be ignored. The official (Nordic) DTS documentation states the order the .overlay files are searched for. Because lfc's zephyr target always generates a boards folder with overlay files, the .overlay file in the boards folder will always be found and used. Thus, the app.overlay file is always ignored.

The solution is to use the DTC_OVERLAY_FILE variable, as the documentation mentions.

The problem is that this requires us to set both the .overlay files. Therefore, the lfc.py script needs to know the board name as well. This changes the command the user needs to run from e.g.

west lfc src/Control.lf --build "-p always -b nrf52dk_nrf52832"

to

west lfc src/Control.lf --build "-p always" --board nrf52dk_nrf52832.

So merging this PR requires us to update the official documentation as well.

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.

1 participant