misc: Simplify selection based on targeted distro
I wish I could have made it more simple but at least only compare the 1.X of the poky version as minor versions generally do not upgrade the core components
This commit is contained in:
parent
808842860d
commit
a425d28ed7
|
@ -9,7 +9,7 @@ BBFILES += "${LAYERDIR}/yocto-shared/*.bbappend"
|
|||
BBFILES += "${BBFILES_SYSMOCOM_BSP}"
|
||||
|
||||
# selects specific distro or master when DISTRO_VERSION contains SNAPSHOT
|
||||
BBFILES_SYSMOCOM_BSP = "${LAYERDIR}/yocto-${@ [dict([('1.5','dora'), ('1.5.1', 'dora'), ('1.5.2', 'dora'), ('1.5.3', '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','edison')])[d.getVar('DISTRO_VERSION', True)[0:3]], 'master']['SNAPSHOT' in d.getVar('DISTRO_VERSION', True)]}/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "sysmocom-bsp"
|
||||
BBFILE_PATTERN_sysmocom-bsp := "^${LAYERDIR}/"
|
||||
|
|
|
@ -8,7 +8,7 @@ PREFERRED_PROVIDER_virtual/libgl = "mesa-dri"
|
|||
PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"
|
||||
PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xf86-dri-lite"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "${@ dict([('1.5','linux-sysmocom'), ('1.5.1', 'linux-sysmocom'), ('1.5.1', 'linux-sysmocom'), ('1.1.2','linux')])[d.getVar('DISTRO_VERSION', True)]}"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "${@ dict([('1.5','linux-sysmocom'), ('1.1','linux')])[d.getVar('DISTRO_VERSION', True)[0:3]]}"
|
||||
|
||||
require conf/machine/include/tune-geode.inc
|
||||
|
||||
|
|
Loading…
Reference in New Issue