fix: local.conf is overwritten on script invocation#11
Open
abinjose-qualcomm wants to merge 1 commit intoqualcomm-linux:mainfrom
Open
fix: local.conf is overwritten on script invocation#11abinjose-qualcomm wants to merge 1 commit intoqualcomm-linux:mainfrom
abinjose-qualcomm wants to merge 1 commit intoqualcomm-linux:mainfrom
Conversation
setup-environment
Outdated
| cp "$KAS_BUILD_DIR/conf/bblayers.conf" build/conf/bblayers.conf | ||
|
|
||
| # create local.conf to avoid auto-generated file from oe-init-build-env | ||
| # existing local.conf file shouldn't be affected |
There was a problem hiding this comment.
What is the issue with the auto-generated one from oe-init-build-env?
Contributor
Author
There was a problem hiding this comment.
The order of operations follows auto.conf first, then local.conf. The auto-generated local.conf from oe-init-build-env sets a default machine value which would overwrite the machine set in auto.conf.
In the absence of this step, we would get this behavior:
abinjose@hu-abinjose-hyd:/local/mnt/workspace/projects/software-images/ws-repo/build$ cat conf/local.conf | grep ^MACHINE
MACHINE ??= "qemux86-64"
abinjose@hu-abinjose-hyd:/local/mnt/workspace/projects/software-images/ws-repo/build$ bitbake -e | grep ^MACHINE=
MACHINE="qemux86-64"
abinjose@hu-abinjose-hyd:/local/mnt/workspace/projects/software-images/ws-repo/build$ rm conf/local.conf
abinjose@hu-abinjose-hyd:/local/mnt/workspace/projects/software-images/ws-repo/build$ bitbake -e | grep ^MACHINE=
MACHINE="qcs9100-ride-sx"I'll update the comments in the script.
Users expect local.conf to remain unchanged after it is created, as this file is intended for their own custom modifications. To support this behavior, the configuration generated from the kas configuration files can be written to auto.conf instead of local.conf. Signed-off-by: Abin Joseph <abinjose@qti.qualcomm.com>
ac7d1fc to
45f6998
Compare
ricardosalveti
approved these changes
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users expect local.conf to remain unchanged after it is created, as this file is intended for their own custom modifications. To support this behavior, the configuration generated from the kas configuration files can be written to auto.conf instead of local.conf.
Fixes #8