diff options
author | Ming Liu <ming.liu@toradex.com> | 2022-02-24 10:15:47 +0100 |
---|---|---|
committer | Ming Liu <ming.liu@toradex.int> | 2022-02-26 13:44:50 +0000 |
commit | 8ef7ef817dfb53e816e0224e701c7806f53c69e7 (patch) | |
tree | 1e5bc78a8522302541b72e42fa17ca7514b44a28 | |
parent | 4b28382dc1dd6b89011ed0a3fb2a3dfe8ff7c888 (diff) |
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 <ming.liu@toradex.com>
-rw-r--r-- | conf/layer.conf | 6 |
1 files 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}/" |