Add placeholder variable for meta-clang addition 84/26984/2
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 8 Dec 2021 22:11:44 +0000 (23:11 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 9 Dec 2021 13:44:12 +0000 (13:44 +0000)
meta-clang is a dependency of multiple layers. Thus to avoid double inclusions,
add this placeholder and indirection.
To add the clang layer, you have to define AGL_META_CLANG instead of changing
BBLAYERS directly.

Bug-AGL: SPEC-3852
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I32ae8b5027531c3fc7a38c15ff3c0269c85ed9b8
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26984
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account

templates/base/bblayers.conf.sample

index f568062..53fbdc4 100644 (file)
@@ -41,11 +41,14 @@ AGL_META_NETWORKING ?= ""
 AGL_META_PYTHON ?= ""
 AGL_META_FILESYSTEMS ?= ""
 AGL_META_VIRTUALIZATION ?= ""
+AGL_META_CLANG ?= ""
+
 AGL_OTHER_DEPENDENCY_LAYERS = " \
     ${AGL_META_NETWORKING} \
     ${AGL_META_PYTHON} \
     ${AGL_META_FILESYSTEMS} \
     ${AGL_META_VIRTUALIZATION} \
+    ${AGL_META_CLANG} \
     "
 
 ####################