From 8ef7ef817dfb53e816e0224e701c7806f53c69e7 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Thu, 24 Feb 2022 10:15:47 +0100 Subject: layer.conf: let backport recipes only valid for Toradex We have some backport recipes let's keep them valid only for Toradex distros. Related-to: ELB-3046 Signed-off-by: Ming Liu --- conf/layer.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/layer.conf b/conf/layer.conf index 8d9a61c..dc94931 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -3,8 +3,10 @@ BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" -# Recipes which backport later versions of other layers are placed here -BBFILES += "${LAYERDIR}/backports/recipes-*/*/*.bb ${LAYERDIR}/backports/recipes-*/*/*.bbappend" +# Recipes which backport later versions of other layers are placed here. +# Only valid for Toradex distributions. +BACKPORT_BBFILES = "${LAYERDIR}/backports/recipes-*/*/*.bb ${LAYERDIR}/backports/recipes-*/*/*.bbappend" +BBFILES += "${@ d.getVar('BACKPORT_BBFILES') if 'tdx' in d.getVar('DISTROOVERRIDES').split(':') else ''}" BBFILE_COLLECTIONS += "toradex-nxp-layer" BBFILE_PATTERN_toradex-nxp-layer = "^${LAYERDIR}/" -- cgit v1.2.3