From c6dc71c3aebde3165267386eb83830786fea4eed Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Wed, 19 Sep 2012 22:47:14 +0800 Subject: [PATCH] layer: Auto-select the right fixes based on the Poky version --- conf/layer.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/layer.conf b/conf/layer.conf index 4a820bf..3a4d1ed 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -4,8 +4,12 @@ BBPATH := "${BBPATH}:${LAYERDIR}" # We have a packages directory, add to BBFILES BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILES := "${BBFILES} ${LAYERDIR}/yocto-shared/*.bbappend" -BBFILES := "${BBFILES} ${LAYERDIR}/yocto-edison/*.bbappend" -#BBFILES := "${BBFILES} ${LAYERDIR}/yocto-master/*.bbappend" + +# Now we will need to include the matching fixes for a yocto version +BBFILES := "${BBFILES} ${BBFILES_SYSMOCOM_BSP}" + +# selects specific distro or master when DISTRO_VERSION contains SNAPSHOT +BBFILES_SYSMOCOM_BSP = "${LAYERDIR}/yocto-${@ [dict([('1.5','dora'), ('1.1.2','edison')])[d.getVar('DISTRO_VERSION', True)], 'master']['SNAPSHOT' in d.getVar('DISTRO_VERSION', True)]}/*.bbappend" BBFILE_COLLECTIONS += "sysmocom-bsp" BBFILE_PATTERN_sysmocom-bsp := "^${LAYERDIR}/"