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

Compose the default environment from multiple env* directories #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vivien
Copy link
Contributor

@vivien vivien commented Oct 13, 2021

This change allows to merge multiple env* directories to compose the default environment. That's particularly useful to split the barebox configuration into multiple directories added via OVERRIDES, like distro or machine specific scripts.

At the same time, move config related changes into the configure step and simplify it a bit.

Prefer if/elif/else over nested if/else statements.

Signed-off-by: Vivien Didelot <[email protected]>
The barebox recipe currently supports only a single 'env' directory
as the default environment, configured at compile time.

But it can be convenient to split an environment into multiple
directories to support various OVERRIDES, like per-distro or
per-machine configuration.

To do this, merge all env* directories in .defaultenv and set
CONFIG_DEFAULT_ENVIRONMENT_PATH at configure time.

Signed-off-by: Vivien Didelot <[email protected]>
Set the CONFIG_EXTRA_FIRMWARE_DIR config entry with the value of
BAREBOX_FIRMWARE_DIR at configure time, not compile time.

At the same time, inconditionally merge a .firmware.cfg file to to
simplify this configuration step.

Signed-off-by: Vivien Didelot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants