Fix agl-appfw-smack and agl-netboot dependency issue 81/25881/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 11 Jan 2021 12:19:09 +0000 (13:19 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 11 Jan 2021 17:23:16 +0000 (17:23 +0000)
Both layers need meta-python and meta-networking. But adding them to
BBLAYERS twice will cause a duplicate inclusion error.

Conditionals do not work out at this stage yet nicely, thus
we use an empty variable as indirection to only include it once.
(Kudos to Paul for the idea.)

Adapt bblayers.conf.sample, agl-appfw-smack and agl-netboot features.

This is the necessary follow-up to https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25844
and fixes the issue raised.

Bug-AGL: SPEC-3723
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: I74e27b8a6e1f1a68ed370e01c2f2d406841873c8
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25881
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>

templates/base/bblayers.conf.sample
templates/feature/agl-appfw-smack/50_bblayers.conf.inc
templates/feature/agl-netboot/50_bblayers.conf.inc

index 0dd28da..82ab42d 100644 (file)
@@ -35,9 +35,19 @@ AGL_CORE_DEPENDENCY_LAYERS = " \
   ${METADIR}/external/meta-openembedded/meta-oe \
   "
 
+# Indirection to avoid duplicate inclusions of the same folder into BBLAYERS
+# the evaluation is in the bblayers.conf.sample in meta-agl/templates/base
+AGL_META_NETWORKING ?= ""
+AGL_META_PYTHON ?= ""
+AGL_OTHER_DEPENDENCY_LAYERS = " \
+    ${AGL_META_NETWORKING} \
+    ${AGL_META_PYTHON} \
+    "
+
 ####################
 # Combine the layers
 BBLAYERS ?= " \
+  ${AGL_OTHER_DEPENDENCY_LAYERS} \
   ${AGL_CORE_DEPENDENCY_LAYERS} \
   ${AGL_CORE_LAYERS} \
   ${YOCTO_LAYERS} \
index 5f6847a..2e79797 100644 (file)
@@ -1,9 +1,12 @@
 AGL_APPFW_LAYERS = " \
   ${METADIR}/external/meta-security \
-  ${METADIR}/external/meta-openembedded/meta-python \
-  ${METADIR}/external/meta-openembedded/meta-networking \
   ${METADIR}/external/meta-openembedded/meta-perl \
   ${METADIR}/meta-agl/meta-app-framework \
     "
 
-BBLAYERS =+ "${AGL_APPFW_LAYERS}"
\ No newline at end of file
+BBLAYERS =+ "${AGL_APPFW_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
+AGL_META_PYTHON = "${METADIR}/external/meta-openembedded/meta-python"
+AGL_META_NETWORKING = "${METADIR}/external/meta-openembedded/meta-networking"
index 80ace82..7cbff16 100644 (file)
@@ -1,2 +1,7 @@
 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
+AGL_META_PYTHON = "${METADIR}/external/meta-openembedded/meta-python"
+AGL_META_NETWORKING = "${METADIR}/external/meta-openembedded/meta-networking"