Skip to contentSkip to conversation

imx-base: Stop using base_contains

PATCH New Otavio Salvador 1 participant 14 messages May 4, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/14 imx-base: Stop using base_contains

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 conf/machine/include/imx-base.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/imx-base.inc +1 -1
index 65ff04d..a898987 100644
@@ -85,7 +85,7 @@ MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}"
 
 # Extra audio support
 # FIXME: Add support for ALL SoC families
-MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " ${@base_contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
+MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'imx-alsa-plugins', '', d)}"
 
 # Extra udev rules
 MACHINE_EXTRA_RRECOMMENDS += "udev-rules-imx"
Signature · 1 line
2.8.2
#1 lore raw

PATCH 2/14 qtbase: Stop using base_contains

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend +6 -6
index b18bf17..d336c0f 100644
@@ -1,6 +1,6 @@
 # Copyright (C) 2013 Eric Bénard - Eukréa Electromatique
 
-HAS_X11 = "${@base_contains('DISTRO_FEATURES', 'x11', 1, 0, d)}"
+HAS_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 1, 0, d)}"
 
 IS_MX6SL = "0"
 IS_MX6SL_mx6sl = "1"
@@ -8,11 +8,11 @@ IS_MX6SL_mx6sl = "1"
 PACKAGECONFIG_GL_mx6q = "gles2"
 PACKAGECONFIG_GL_mx6dl = "gles2"
 PACKAGECONFIG_GL_mx6sx = "gles2"
-PACKAGECONFIG_GL_mx6sl = "${@base_contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
-QT_CONFIG_FLAGS_append_mx6q = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
-QT_CONFIG_FLAGS_append_mx6dl = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
-QT_CONFIG_FLAGS_append_mx6sx = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
-QT_CONFIG_FLAGS_append_mx6sl = "${@base_contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', \
+PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' gl', '', d)}"
+QT_CONFIG_FLAGS_append_mx6q = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6dl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6sx = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', ' -eglfs', d)}"
+QT_CONFIG_FLAGS_append_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' -no-eglfs', \
                                                  ' -no-opengl -linuxfb -no-eglfs', d)}"
 
 do_configure_prepend_mx6() {
Signature · 1 line
2.8.2
#2 lore raw

PATCH 3/14 barebox: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-bsp/barebox/barebox.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-bsp/barebox/barebox.inc +1 -1
index 172e748..20e5a4f 100644
@@ -27,7 +27,7 @@ do_pre_configure() {
 addtask pre_configure before do_configure after do_patch
 
 do_compile () {
-	if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
+	if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
 		sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' Makefile
 	fi
 	unset LDFLAGS
Signature · 1 line
2.8.2
#3 lore raw

PATCH 4/14 imx-test: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-bsp/imx-test/imx-test.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-bsp/imx-test/imx-test.inc +1 -1
index 1fcb632..10dbb4d 100644
@@ -29,7 +29,7 @@ PLATFORM_mx6sx = "IMX6SX"
 PLATFORM_mx7 = "IMX7D"
 PLATFORM_mx6ul = "IMX6UL"
 
-PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
 PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
 
 # Required so the fixdep binary is generated
Signature · 1 line
2.8.2
#4 lore raw

PATCH 5/14 packagegroup-fsl-mfgtool: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb +1 -1
index 135c7ee..5638f08 100644
@@ -30,7 +30,7 @@ RDEPENDS_${PN}-base = " \
     base-files \
     base-passwd \
     busybox \
-    ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
+    ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \
 "
 
Signature · 1 line
2.8.2
#5 lore raw

PATCH 6/14 cairo: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/cairo/cairo_%.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/cairo/cairo_%.bbappend +2 -2
index 66e019a..6f9e09d 100644
@@ -1,6 +1,6 @@
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                                        base_contains('DISTRO_FEATURES', 'wayland', \
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                                        bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                       '-DEGL_API_FB -DEGL_API_WL',  '-DEGL_API_FB', d), d)}"
 
 PACKAGECONFIG_append_mx6q = " egl glesv2"
Signature · 1 line
2.8.2
#6 lore raw

PATCH 7/14 clutter-1.0: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/clutter/clutter-1.0_%.bbappend | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-graphics/clutter/clutter-1.0_%.bbappend +4 -4
index cdeac1f..85cbd50 100644
@@ -1,9 +1,9 @@
 # Provide the need flags and backend settings to work with Vivante GPU
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                                       base_contains('DISTRO_FEATURES', 'wayland', \
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                                       bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                      '-DEGL_API_WL -DEGL_API_FB', '', d), d)}"
 
-PACKAGECONFIG_mx6 ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'glx x11', \
-                                        base_contains('DISTRO_FEATURES', 'wayland', \
+PACKAGECONFIG_mx6 ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glx x11', \
+                                        bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                       'wayland egl', '', d), d)}"
Signature · 1 line
2.8.2
#7 lore raw

PATCH 8/14 cogl-1.0: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/cogl/cogl-1.0_%.bbappend | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-graphics/cogl/cogl-1.0_%.bbappend +4 -4
index f77581d..102461d 100644
@@ -1,10 +1,10 @@
 # Provide the need flags and backend settings to work with Vivante GPU
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                                        base_contains('DISTRO_FEATURES', 'wayland', \
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                                        bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                       '-DEGL_API_WL -DEGL_API_FB', '', d), d)}"
 
 PACKAGECONFIG_mx6 ??= "cogl-pango gles2 \
-                       ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', \
-                                         base_contains('DISTRO_FEATURES', 'wayland', \
+                       ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', \
+                                         bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                        'egl-wayland', '', d), d)}"
Signature · 1 line
2.8.2
#8 lore raw

PATCH 9/14 gtk+3: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/gtk+/gtk+3_%.bbappend | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-graphics/gtk+/gtk+3_%.bbappend +3 -3
index 649ebd8..0076d29 100644
@@ -1,6 +1,6 @@
-PACKAGECONFIG_remove_mx6 = "${@base_contains("DISTRO_FEATURES", "x11", "wayland", "", d)}"
+PACKAGECONFIG_remove_mx6 = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "wayland", "", d)}"
 
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                                        base_contains('DISTRO_FEATURES', 'wayland', \
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                                        bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                       '-DEGL_API_FB -DEGL_API_WL',  '', d), d)}"
Signature · 1 line
2.8.2
#9 lore raw

PATCH 10/14 imx-gpu-viv: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc +4 -4
index 38099cd..4ad7a02 100644
@@ -7,8 +7,8 @@ SECTION = "libs"
 LICENSE = "Proprietary"
 LIC_FILES_CHKSUM = "file://gpu-core/usr/include/gc_vdk.h;beginline=5;endline=11;md5=12c028cbbbedb4b8770267131500592c"
 
-DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', \
-                             base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
+DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', \
+                             bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
                                            '', d), d)} \
             libpng"
 
@@ -53,8 +53,8 @@ python __anonymous () {
                 raise bb.parse.SkipPackage('The kernel of machine needs to have Vivante kernel driver support for this recipe to be used.')
 }
 
-HAS_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
-HAS_WL = "${@base_contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}"
+HAS_X11 = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
+HAS_WL = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}"
 
 # Inhibit warnings about files being stripped.
 INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.8.2
#10 lore raw

PATCH 11/14 piglit: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-graphics/piglit/piglit_git.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-graphics/piglit/piglit_git.bbappend +2 -2
index 316bec9..d682c8c 100644
@@ -2,6 +2,6 @@ DEPENDS_append_mx6 = " virtual/egl"
 
 # Provide the need flags and backend settings to work with Vivante GPU
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '-DEGL_API_FB', \
-                                        base_contains('DISTRO_FEATURES', 'wayland', \
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '-DEGL_API_FB', \
+                                        bb.utils.contains('DISTRO_FEATURES', 'wayland', \
                                                       '-DEGL_API_WL', '', d), d)}"
Signature · 1 line
2.8.2
#11 lore raw

PATCH 12/14 gstreamer1.0-plugins-bad: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend +3 -3
index 7e6f3ff..11c4eb9 100644
@@ -3,11 +3,11 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 CFLAGS_append_mx6 = " -DLINUX \
-                      ${@base_contains('DISTRO_FEATURES', 'x11', '', \
-                         base_contains('DISTRO_FEATURES', 'wayland', '-DEGL_API_FB -DWL_EGL_PLATFORM', '-DEGL_API_FB', d), d)}"
+                      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                         bb.utils.contains('DISTRO_FEATURES', 'wayland', '-DEGL_API_FB -DWL_EGL_PLATFORM', '-DEGL_API_FB', d), d)}"
 
 PACKAGECONFIG_GL_mx6sl = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
-                           base_contains('DISTRO_FEATURES', 'x11', \
+                           bb.utils.contains('DISTRO_FEATURES', 'x11', \
                                     'opengl', '', d), '', d)}"
 
 SRC_URI_append_mx6 = " file://0001-PATCH-install-gstaggregator-and-gstvideoaggregator-h.patch"
Signature · 1 line
2.8.2
#12 lore raw

PATCH 13/14 gstreamer1.0-plugins-imx: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.12.1.bb +4 -4
index c20b942..6f81341 100644
@@ -27,8 +27,8 @@ do_compile[depends] += "virtual/kernel:do_shared_workdir"
 # X11 if x11 is present in DISTRO_FEATURES
 # Wayland if x11 is not present in DISTRO_FEATURES, but wayland is
 # Framebuffer otherwise
-EGLVIVSINK_PLATFORM = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', \
-                          base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
+EGLVIVSINK_PLATFORM = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \
+                          bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
                           'fb', d),d)}"
 
 EGL_PLATFORM_CONF = "--egl-platform=${EGLVIVSINK_PLATFORM}"
@@ -36,8 +36,8 @@ EXTRA_OECONF = "--kernel-headers=${STAGING_KERNEL_DIR}/include"
 
 EGLVIVSINK_DEPENDS = " \
     virtual/egl virtual/libgles2 \
-    ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', \
-       base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', \
+       bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
        '', d),d)}"
 
 PACKAGECONFIG ?= ""
Signature · 1 line
2.8.2
#13 lore raw

PATCH 14/14 imx-gst1.0-plugin: Stop using base_contains

In reply to Otavio Salvador

The base_contains function is deprecated and we ought to use bb.utils.contains instead.

---

 recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.0.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.0.9.bb +1 -1
index c32ccb3..19259d1 100644
@@ -47,7 +47,7 @@ PLATFORM_mx7= "MX7D"
 EXTRA_OECONF = "PLATFORM=${PLATFORM} \
                 CPPFLAGS="-I${STAGING_KERNEL_BUILDDIR}/include/generated/uapi -I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include" \
                 CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \
-                ${@base_contains('DISTRO_FEATURES', 'wayland', base_contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}"
+                ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', bb.utils.contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}"
 
 PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine"
 
Signature · 1 line
2.8.2