Patchwork [meta-fsl-ppc] add layer-specific bbappends when that layer is included

login
register
mail settings
Submitter Ting Liu
Date Aug. 7, 2014, 2:42 a.m.
Message ID <1407379354-46781-1-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/77427/
State Accepted
Headers show

Comments

Ting Liu - Aug. 7, 2014, 2:42 a.m.
From: Ting Liu <ting.liu@freescale.com>

setting BB_DANGLINGAPPENDS_WARNONLY forces the policy for all layers.
If the user is expecting dangling appends to be errors, this hides
potential problems from them.

Signed-off-by: Ting Liu <ting.liu@freescale.com>
---
 conf/layer.conf                                                      | 5 ++++-
 .../recipes-devtools}/luajit/luajit/ppc-fixplt.patch                 | 0
 .../recipes-devtools}/luajit/luajit_%.bbappend                       | 0
 .../recipes-extended}/libvirt/libvirt/qoriq-ppc/qemu.conf            | 0
 .../recipes-extended}/libvirt/libvirt_%.bbappend                     | 0
 5 files changed, 4 insertions(+), 1 deletion(-)
 rename {recipes-devtools => openembedded-layer/recipes-devtools}/luajit/luajit/ppc-fixplt.patch (100%)
 rename {recipes-devtools => openembedded-layer/recipes-devtools}/luajit/luajit_%.bbappend (100%)
 rename {recipes-virtualization => virtualization-layer/recipes-extended}/libvirt/libvirt/qoriq-ppc/qemu.conf (100%)
 rename {recipes-virtualization => virtualization-layer/recipes-extended}/libvirt/libvirt_%.bbappend (100%)

Patch

diff --git a/conf/layer.conf b/conf/layer.conf
index 4a942e0..a4d4add 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -11,5 +11,8 @@  BBFILE_PRIORITY_fsl-ppc = "5"
 
 LICENSE_PATH += "${LAYERDIR}/custom-licenses"
 
-BB_DANGLINGAPPENDS_WARNONLY ?= "true"
+# Let us add layer-specific bbappends which are only applied when that
+# layer is included in our configuration
+BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \
+               for layer in BBFILE_COLLECTIONS.split())}"
 
diff --git a/recipes-devtools/luajit/luajit/ppc-fixplt.patch b/openembedded-layer/recipes-devtools/luajit/luajit/ppc-fixplt.patch
similarity index 100%
rename from recipes-devtools/luajit/luajit/ppc-fixplt.patch
rename to openembedded-layer/recipes-devtools/luajit/luajit/ppc-fixplt.patch
diff --git a/recipes-devtools/luajit/luajit_%.bbappend b/openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend
similarity index 100%
rename from recipes-devtools/luajit/luajit_%.bbappend
rename to openembedded-layer/recipes-devtools/luajit/luajit_%.bbappend
diff --git a/recipes-virtualization/libvirt/libvirt/qoriq-ppc/qemu.conf b/virtualization-layer/recipes-extended/libvirt/libvirt/qoriq-ppc/qemu.conf
similarity index 100%
rename from recipes-virtualization/libvirt/libvirt/qoriq-ppc/qemu.conf
rename to virtualization-layer/recipes-extended/libvirt/libvirt/qoriq-ppc/qemu.conf
diff --git a/recipes-virtualization/libvirt/libvirt_%.bbappend b/virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend
similarity index 100%
rename from recipes-virtualization/libvirt/libvirt_%.bbappend
rename to virtualization-layer/recipes-extended/libvirt/libvirt_%.bbappend