]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: Fix build for X11 backend
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 11 Apr 2016 12:38:49 +0000 (09:38 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:06:34 +0000 (15:06 -0300)
The root case of the addition of the dependencies on the recipe was
that it were not being correctly included in the .inc file. This fixes
it and remove the duplication.

Change-Id: Ie9ee5fbc2a61915ce109473f5df2b8e88d3966c4
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/imx-test/imx-test.inc
recipes-bsp/imx-test/imx-test_5.4.bb

index 3c463c75b19a123eb1b9052eab245c7f9de941d4..1fcb632c3f6e6d9df35ca493eb4633bc5ea011e5 100644 (file)
@@ -11,10 +11,6 @@ DEPENDS_mx6sx = "virtual/kernel imx-lib"
 DEPENDS_mx6ul = "virtual/kernel imx-lib"
 DEPENDS_mx7   = "virtual/kernel imx-lib"
 
-DEPENDS_append = " \
-    ${@base_contains('DISTRO_FEATURES', 'x11', 'libx11 libxdamage libxrender libxrandr', '', d)} \
-"
-
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
@@ -33,6 +29,9 @@ PLATFORM_mx6sx = "IMX6SX"
 PLATFORM_mx7 = "IMX7D"
 PLATFORM_mx6ul = "IMX6UL"
 
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
+
 # Required so the fixdep binary is generated
 addtask make_scripts after do_patch before do_compile
 do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
index de4e5badaca978579256c4805668deadb21bdae0..6a12c0551938e0067c6417c25e530dd876225149 100644 (file)
@@ -2,19 +2,6 @@
 
 include imx-test.inc
 
-DEPENDS_mx6q += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-DEPENDS_mx6dl += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-DEPENDS_mx6sl += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-DEPENDS_mx6sx += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-DEPENDS_mx6ul += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-DEPENDS_mx7d += "${@base_contains('DISTRO_FEATURES', 'x11', \
-                   ' libx11 libxdamage libxrender libxrandr', '', d)}"
-
 SRC_URI[md5sum] = "46ddd6d1631cc0f7328383e13632d5bb"
 SRC_URI[sha256sum] = "cae6ec9b4d5cc1c402a7683cc8c2c35cccdd9598283caefcea2804baa47a15b6"