aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-07-05 17:20:29 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2018-07-05 17:24:36 -0300
commit43c910982810964492d268cd0d2d84af399776ff (patch)
treec4db4dceeec3eb526dc3511e0fe0a5ac79374533
parentccbd0921becb0a54e473963c0bd11aa0df56e567 (diff)
downloadmeta-freescale-43c910982810964492d268cd0d2d84af399776ff.tar.gz
meta-freescale-43c910982810964492d268cd0d2d84af399776ff.tar.bz2
meta-freescale-43c910982810964492d268cd0d2d84af399776ff.zip
imx-test: Rework DEPENDS and VPU support
All variants depends on `virtual/kernel`, `imx-lib` and `alsa-lib`, so this can be added by default. The VPU support has been moved to a `PACKAGECONFIG` so it adds the respective `make` parameter, and dependency, depending on the `MACHINEOVERRIDES` value. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> (cherry picked from commit 6fdd26a72b923044351674f4172c85f160c6f301)
-rw-r--r--recipes-bsp/imx-test/imx-test_git.bb21
1 files changed, 6 insertions, 15 deletions
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb
index 6e6971e5..0932d410 100644
--- a/recipes-bsp/imx-test/imx-test_git.bb
+++ b/recipes-bsp/imx-test/imx-test_git.bb
@@ -8,16 +8,7 @@ SECTION = "base"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-DEPENDS_mx6q = "virtual/kernel imx-lib"
-DEPENDS_mx6dl = "virtual/kernel imx-lib"
-DEPENDS_mx6sl = "virtual/kernel imx-lib"
-DEPENDS_mx6sll = "virtual/kernel imx-lib"
-DEPENDS_mx6sx = "virtual/kernel imx-lib"
-DEPENDS_mx6ul = "virtual/kernel imx-lib"
-DEPENDS_mx7d = "virtual/kernel imx-lib"
-DEPENDS_mx7ulp = "virtual/kernel imx-lib"
-DEPENDS_append_imxvpu = " virtual/imxvpu"
-DEPENDS_append = " alsa-lib"
+DEPENDS = "virtual/kernel imx-lib alsa-lib"
PE = "1"
PV = "7.0+${SRCPV}"
@@ -46,14 +37,14 @@ PLATFORM_mx6ul = "IMX6UL"
PLATFORM_mx7d = "IMX7D"
PLATFORM_mx7ulp = "IMX7D"
-PARALLEL_MAKE="-j 1"
+PARALLEL_MAKE = "-j 1"
+EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
-IMX_HAS_VPU = "false"
-IMX_HAS_VPU_imxvpu = "true"
-EXTRA_OEMAKE += "HAS_VPU=${IMX_HAS_VPU}"
+PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG_append_imxvpu = " vpu"
-PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
+PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu"
do_compile() {
CFLAGS="${TOOLCHAIN_OPTIONS}"