Handle upstream TEMPLATECONF change
authorScott Murray <scott.murray@konsulko.com>
Sun, 20 Nov 2022 18:37:35 +0000 (13:37 -0500)
committerScott Murray <scott.murray@konsulko.com>
Wed, 24 Apr 2024 16:29:35 +0000 (12:29 -0400)
oe-core now requires that TEMPLATECONF point at conf/templates/*
inside a layer, tweak things to move the base template files into
meta-agl-core to match its expectations.

Bug-AGL: SPEC-4578

Change-Id: Idb0af9b4bd6bc55b9fb2cb50a675e928e7c2b025
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-core/conf/templates/base/bblayers.conf.sample [moved from templates/base/bblayers.conf.sample with 95% similarity]
meta-agl-core/conf/templates/base/conf-notes.txt [moved from templates/base/conf-notes.txt with 100% similarity]
meta-agl-core/conf/templates/base/local.conf.sample [moved from templates/base/local.conf.sample with 100% similarity]
scripts/.aglsetup_genconfig.bash
templates/feature/agl-netboot/50_bblayers.conf.inc

similarity index 95%
rename from templates/base/bblayers.conf.sample
rename to meta-agl-core/conf/templates/base/bblayers.conf.sample
index e3c5fcc..5b5400f 100644 (file)
@@ -36,7 +36,7 @@ AGL_CORE_DEPENDENCY_LAYERS = " \
   "
 
 # Indirection to avoid duplicate inclusions of the same folder into BBLAYERS
-# the evaluation is in the bblayers.conf.sample in meta-agl/templates/base
+# the evaluation is in the bblayers.conf.sample in meta-agl/meta-agl-core/conf/templates/base
 AGL_META_NETWORKING ?= ""
 AGL_META_PYTHON ?= ""
 AGL_META_FILESYSTEMS ?= ""
index c7ed92e..3d380e6 100755 (executable)
@@ -407,7 +407,7 @@ function genconfig() {
        info "   Features: $FEATURES"
 
        # step 1: run usual OE setup to generate conf dir
-       export TEMPLATECONF=$(cd $SCRIPTDIR/../templates/base && pwd -P)
+       export TEMPLATECONF=$(cd $SCRIPTDIR/../meta-agl-core/conf/templates/base && pwd -P)
        debug "running oe-init-build-env with TEMPLATECONF=$TEMPLATECONF"
        info "   Running $METADIR/external/poky/oe-init-build-env"
        info "   Templates dir: $TEMPLATECONF"
@@ -417,7 +417,8 @@ function genconfig() {
        cd $CURDIR
 
        # step 2: concatenate other remaining fragments coming from base
-       process_fragments $TEMPLATECONF
+       FRAGMENTS=$(cd $SCRIPTDIR/../templates/base && pwd -P)
+       process_fragments $FRAGMENTS
 
        # step 3: fragments for machine
        process_fragments $(find_machine_dir $MACHINE)
@@ -557,6 +558,7 @@ info "OK"
 infon "Generating setup file: $BUILDDIR/agl-init-build-env ... "
 
 cat <<EOF >$BUILDDIR/agl-init-build-env
+export TEMPLATECONF=${METADIR}/meta-agl/meta-agl-core/conf/templates/base
 . $METADIR/external/poky/oe-init-build-env $BUILDDIR
 if [ -n "\$DL_DIR" ]; then
        BB_ENV_PASSTHROUGH_ADDITIONS="\$BB_ENV_PASSTHROUGH_ADDITIONS DL_DIR"
index 7cbff16..94e784a 100644 (file)
@@ -2,6 +2,6 @@ BBLAYERS =+ " ${METADIR}/meta-agl/meta-netboot \
             "
 
 # Indirection to avoid duplicate inclusions of the same folder into BBLAYERS
-# the evaluation is in the bblayers.conf.sample in meta-agl/templates/base
+# the evaluation is in the bblayers.conf.sample in meta-agl/meta-agl-core/conf/templates/base
 AGL_META_PYTHON = "${METADIR}/external/meta-openembedded/meta-python"
 AGL_META_NETWORKING = "${METADIR}/external/meta-openembedded/meta-networking"