misc: Use BBFILES += instead of an immediate assignment
Layers coming after us are forced to expand the DISTRO_VERSION before it has been set. Fix that by using += instead of an immediate assignment.
This commit is contained in:
parent
b0703d4440
commit
6c18f2de6c
|
@ -2,11 +2,11 @@
|
||||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
BBPATH := "${BBPATH}:${LAYERDIR}"
|
||||||
|
|
||||||
# We have a packages directory, add to BBFILES
|
# We have a packages directory, add to BBFILES
|
||||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
|
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||||
BBFILES := "${BBFILES} ${LAYERDIR}/yocto-shared/*.bbappend"
|
BBFILES += "${LAYERDIR}/yocto-shared/*.bbappend"
|
||||||
|
|
||||||
# Now we will need to include the matching fixes for a yocto version
|
# Now we will need to include the matching fixes for a yocto version
|
||||||
BBFILES := "${BBFILES} ${BBFILES_SYSMOCOM_BSP}"
|
BBFILES += "${BBFILES_SYSMOCOM_BSP}"
|
||||||
|
|
||||||
# selects specific distro or master when DISTRO_VERSION contains SNAPSHOT
|
# 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"
|
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"
|
||||||
|
|
Loading…
Reference in New Issue