Skip to content
Snippets Groups Projects
Commit ba3a2619 authored by Norman Stetter's avatar Norman Stetter
Browse files

Fix setup-environment bblayers.conf

* The manifests repo is not checked out anymore to sources/base so the
bblayers.conf needs to be copied from the .repo/manifests dir
parent a465a9cd
No related branches found
No related tags found
1 merge request!14Fix setup-environment bblayers.conf
......@@ -185,7 +185,6 @@ if "$build_dir_setup_enabled"; then
mv conf/local.conf conf/local.conf.sample
# Generate the local.conf based on the Yocto defaults
TEMPLATES=$CWD/sources/base/conf
grep -v '^#\|^$' conf/local.conf.sample > conf/local.conf
echo >> conf/local.conf
......@@ -196,7 +195,7 @@ if "$build_dir_setup_enabled"; then
echo 'BB_GENERATE_MIRROR_TARBALLS = "1"' >> conf/local.conf
message "Generating mirror tarballs from downloaded repos."
else
echo "DL_DIR ?= \"$BSPDIR/downloads\"" >> conf/local.conf
echo "DL_DIR ?= \"$CWD/downloads\"" >> conf/local.conf
fi
# Add G&F typical sstate cache dir as default settings
if [ -d "$SSTATE_MIRROR" ] && [ -r "$SSTATE_MIRROR" ];then
......@@ -211,8 +210,13 @@ if "$build_dir_setup_enabled"; then
-e "s,PACKAGE_CLASSES ?=.*,PACKAGE_CLASSES ?= '$PACKAGE_CLASSES',g" \
-i conf/local.conf
if [ -d "$TEMPLATES" ]; then
cp "$TEMPLATES/*" conf/
# Copy bblayers.conf from manifest repo
BBLAYERS=$CWD/.repo/manifests/conf/bblayers.conf
if [ -f "$BBLAYERS" ]; then
cp "$BBLAYERS" conf/
else
echo "No bblayers.conf file found in the manifests repo!"
echo "Bitbake will fall back to the poky default bblayers.conf"
fi
for s in $HOME/.oe $HOME/.yocto; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment