Skip to content

Commit

Permalink
stop using base_contains
Browse files Browse the repository at this point in the history
base_contains is deprecated, use bb.utils.contains instead
  • Loading branch information
Andy Voltz committed Oct 19, 2016
1 parent 2ea7974 commit c792089
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion conf/distro/include/imx6-egl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ MACHINE_EXTRA_INSTALL_SDK += " \
libegl-mx6-dev \
libgles2-mx6 \
libgles2-mx6-dev \
${@base_contains("DISTRO_FEATURES", "wayland", "libwayland-egl-mx6-dev", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "libwayland-egl-mx6-dev", "", d)} \
"
4 changes: 2 additions & 2 deletions conf/distro/include/imx6.inc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ IMAGE_FSTYPES += "ext3 sdcard"

MACHINE_EXTRA_INSTALL += "\
libgal-mx6 \
${@base_contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \
${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer010", "gst-fsl-plugin", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-plugins-imx-meta", "", d)} \
"

MACHINE_EXTRA_INSTALL_SDK += " \
Expand Down
4 changes: 2 additions & 2 deletions conf/distro/include/rcar-gen2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ MACHINE_EXTRA_INSTALL = " \
gles-kernel-module \
gles-user-module \
${RENESAS_WORKAROUNGS} \
${@base_contains("MACHINE_FEATURES", "multimedia", "${MULTIMEDIA_PACKAGES}", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "multimedia", "${MULTIMEDIA_PACKAGES}", "", d)} \
"

MACHINE_EXTRA_INSTALL_append_lcb = " \
can-utils \
libsocketcan \
${@base_contains("MACHINE_FEATURES", "multimedia", "packagegroup-lcb-oss-codecs", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "multimedia", "packagegroup-lcb-oss-codecs", "", d)} \
"

BB_MULTIMEDIA_TEST_MODULE = "\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DESCRIPTION = "GPU driver and apps for imx6"
SECTION = "libs"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', '', d)}"
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', '', d)}"
PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg"

PE = "1"
Expand Down Expand Up @@ -47,7 +47,7 @@ PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \

# Skip package if it does not match the machine float-point type in use
python __anonymous () {
is_machine_hardfp = base_contains("TUNE_FEATURES", "callconvention-hard", True, False, d)
is_machine_hardfp = bb.utils.contains("TUNE_FEATURES", "callconvention-hard", True, False, d)
is_package_hardfp = d.getVar("PACKAGE_FP_TYPE", True) == "hardfp"

if is_package_hardfp != is_machine_hardfp:
Expand All @@ -57,9 +57,9 @@ python __anonymous () {
raise bb.parse.SkipPackage("Package Float-Point is not compatible with the machine")
}

USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}"
USE_WL = "${@base_contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}"
USE_X11 = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "yes", "no", d)}"
USE_DFB = "${@bb.utils.contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}"
USE_WL = "${@bb.utils.contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}"

# Inhibit warnings about files being stripped.
INHIBIT_PACKAGE_STRIP = "1"
Expand Down
2 changes: 1 addition & 1 deletion meta-architech-extras/recipes/u-boot/u-boot.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}"
SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}"

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' config.mk
fi

Expand Down
6 changes: 3 additions & 3 deletions meta-ti-extras/recipes/libgles/libgles-omap3_4.10.00.01.bb
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos.bin"
MD5SUM_HARDFP = "15a3ccb66e98580e474fc112565f66b6"
SHA256SUM_HARDFP = "4d94d5a1869b228ce12027783fc5425c92e9b66685c501247889f1f167e66c9d"

BINFILE = "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"
BINFILE = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"

SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
file://cputype \
file://rc.pvr \
file://99-bufferclass.rules \
"

SRC_URI[md5sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}"
SRC_URI[md5sum] := "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
SRC_URI[sha256sum] := "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}"

S = "${WORKDIR}/Graphics_SDK_${SGXPV}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ BINFILE_HARDFP = "Graphics_SDK_setuplinux_${SGXPV}_hardfp_minimal_demos.bin"
MD5SUM_HARDFP = "15a3ccb66e98580e474fc112565f66b6"
SHA256SUM_HARDFP = "4d94d5a1869b228ce12027783fc5425c92e9b66685c501247889f1f167e66c9d"

BINFILE = "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"
BINFILE = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${BINFILE_HARDFP}', '${BINFILE_SOFTFP}', d)}"

SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
file://Change-for-interfacing-with-SGX-DT-node.patch \
file://linux-3.8.patch \
file://0001-Graphics-SDK-04.10.00.01-AM335x-sgx-irq-change.patch \
"

SRC_URI[md5sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
SRC_URI[sha256sum] := "${@base_contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}"
SRC_URI[md5sum] := "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${MD5SUM_HARDFP}', '${MD5SUM_SOFTFP}', d)}"
SRC_URI[sha256sum] := "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '${SHA256SUM_HARDFP}', '${SHA256SUM_SOFTFP}', d)}"

TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
Expand Down
2 changes: 1 addition & 1 deletion recipes-qt/automotive/neptune-ui_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SRCREV = "3d36a7b8e53770c91db60cec9586ef572a2f2814"

DEPENDS = "qtbase qtdeclarative"
RDEPENDS_${PN} = "qtapplicationmanager qtivi qtvirtualkeyboard \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"

do_configure_prepend() {
echo "qml.path = /opt/neptune" >> ${S}/neptuneui.pro
Expand Down
4 changes: 2 additions & 2 deletions recipes-qt/automotive/qtapplicationmanager_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ require recipes-qt/qt5/qt5-git.inc
SRCREV = "8a4b17fade4507860919fbbf9ea42f813a26be76"

DEPENDS = "qtbase qtdeclarative libyaml libarchive \
${@base_contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
RDEPENDS_${PN} = "libcrypto"

EXTRA_QMAKEVARS_PRE += "\
${@base_contains("DISTRO_FEATURES", "wayland", "-config force-multiprocess", "-config force-singleprocess", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "-config force-multiprocess", "-config force-singleprocess", d)} \
-config enable-dummydata \
-config enable-ivi-logging \
-config install-prefix=/usr \
Expand Down
2 changes: 1 addition & 1 deletion recipes-qt/b2qt-addons/b2qt-demos.bb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SRC_URI[video2.sha256sum] = "651e0b4d2b3272dc10bfc9edba4f0c1a7084cd087c75e8a098f
S = "${WORKDIR}/git/basicsuite"

DEPENDS = "qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtgraphicaleffects qtsensors qtmultimedia qtcanvas3d \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"

do_install_append() {
# we only need plugins from the demos
Expand Down
2 changes: 1 addition & 1 deletion recipes-qt/b2qt-addons/b2qt-launcher.bb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SRC_URI += " \
SRCREV = "7ff96b74f8721dbaf50722561770815a4530b6a0"

DEPENDS = "qtbase qtdeclarative \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine', '', d)}"

do_install_append() {
install -m 0755 -d ${D}${sysconfdir}/init.d
Expand Down
4 changes: 2 additions & 2 deletions recipes-qt/images/b2qt-automotive-qt5-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ IMAGE_INSTALL += "\
${MACHINE_EXTRA_INSTALL_QT} \
packagegroup-b2qt-embedded-base \
packagegroup-b2qt-embedded-tools \
${@base_contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@base_contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
packagegroup-b2qt-qt5-modules \
packagegroup-b2qt-automotive-addons \
"
4 changes: 2 additions & 2 deletions recipes-qt/images/b2qt-embedded-qt5-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ IMAGE_INSTALL += "\
${MACHINE_EXTRA_INSTALL_QT} \
packagegroup-b2qt-embedded-base \
packagegroup-b2qt-embedded-tools \
${@base_contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@base_contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
packagegroup-b2qt-qt5-modules \
packagegroup-b2qt-embedded-addons \
"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RDEPENDS_${PN} += " \
qtivi \
neptune-ui \
neptune-ui-apps \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebbrowser', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebbrowser', '', d)} \
gammaray \
qmllive-target \
"
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ RDEPENDS_${PN} += " \
b2qt-appcontroller \
b2qt-launcher \
b2qt-demos \
${@base_contains("DISTRO_FEATURES", "wayland", "democompositor", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "democompositor", "", d)} \
"
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ RDEPENDS_${PN} += " \
qttools-dev \
qttools-staticdev \
qtvirtualkeyboard-dev \
${@base_contains('DISTRO_FEATURES', 'wayland', 'qtwayland-dev', '', d)} \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine-dev', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland-dev', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine-dev', '', d)} \
qtwebsockets-dev \
qtwebchannel-dev \
qtxmlpatterns-dev \
Expand Down
4 changes: 2 additions & 2 deletions recipes-qt/packagegroups/packagegroup-b2qt-qt5-modules.bb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ RDEPENDS_${PN} += " \
qttranslations-qtserialport \
qttranslations-qtwebsockets \
qttranslations-qtxmlpatterns \
${@base_contains('DISTRO_FEATURES', 'wayland', 'qtwayland', '', d)} \
${@base_contains('DISTRO_FEATURES', 'webengine', 'qtwebengine qttranslations-qtwebengine', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'qtwayland', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine qttranslations-qtwebengine', '', d)} \
qtwebsockets \
qtwebchannel \
qtxmlpatterns \
Expand Down
4 changes: 2 additions & 2 deletions recipes/dbus/dbus_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ FILES_${PN}-session-init = " \
do_install_append_class-target() {
sed 's:@bindir@:${bindir}:' < ${WORKDIR}/dbus-session.init >${WORKDIR}/dbus-session.init

if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/dbus-session.init ${D}${sysconfdir}/init.d/dbus-session
fi

if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -m 0755 -d ${D}${bindir}/
install -m 0755 ${WORKDIR}/dbus-session.init ${D}${bindir}/

Expand Down
4 changes: 2 additions & 2 deletions recipes/images/b2qt-embedded-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ inherit bootfs-image
IMAGE_INSTALL += "\
packagegroup-b2qt-embedded-base \
packagegroup-b2qt-embedded-tools \
${@base_contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@base_contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer010", "packagegroup-b2qt-embedded-gstreamer010", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer", "packagegroup-b2qt-embedded-gstreamer", "", d)} \
"
2 changes: 1 addition & 1 deletion recipes/ostree/ostree.bb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ DEPENDS = "glib-2.0 e2fsprogs gpgme attr libsoup-2.4 libgsystem libassuan xz sys
RDEPENDS_${PN} += "bash"
RRECOMMENDS_${PN} += "gnupg"

PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,"

SYSTEMD_SERVICE_${PN} = "ostree-prepare-root.service ostree-remount.service"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RDEPENDS_${PN}_append_linux = "\
nativesdk-python-modules \
nativesdk-python-misc \
nativesdk-perl-modules \
${@base_contains("DISTRO_FEATURES", "wayland", "nativesdk-wayland", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "nativesdk-wayland", "", d)} \
"

RDEPENDS_${PN}_append_mingw32 = "\
Expand Down
2 changes: 1 addition & 1 deletion recipes/packagegroup/packagegroup-b2qt-embedded-base.bb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ RDEPENDS_${PN} = "\
ostree \
dracut \
connman \
${@base_contains("DISTRO_FEATURES", "wayland", "wayland weston weston-examples", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland weston weston-examples", "", d)} \
${MACHINE_EXTRA_INSTALL} \
"
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ RDEPENDS_${PN} += "\
dbus-dev \
freetype-dev \
fontconfig-dev \
${@base_contains("DISTRO_FEATURES", "gstreamer010", "gstreamer-dev gst-plugins-base-dev", "", d)} \
${@base_contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-dev gstreamer1.0-plugins-base-dev", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer010", "gstreamer-dev gst-plugins-base-dev", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "gstreamer", "gstreamer1.0-dev gstreamer1.0-plugins-base-dev", "", d)} \
icu-dev \
libxslt-dev \
${@base_contains("DISTRO_FEATURES", "systemd", "systemd-dev", "udev-dev", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-dev", "udev-dev", d)} \
tslib-dev \
hunspell-dev \
libcap-dev \
Expand All @@ -59,7 +59,7 @@ RDEPENDS_${PN} += "\
atk-dev \
libevent-dev \
ostree-dev \
${@base_contains("DISTRO_FEATURES", "wayland", "libxkbcommon-dev libgbm-dev libdrm-dev", "", d)} \
${@base_contains("DISTRO_FEATURES", "bluetooth", "${BLUEZ}-dev", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "libxkbcommon-dev libgbm-dev libdrm-dev", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "bluetooth", "${BLUEZ}-dev", "", d)} \
${MACHINE_EXTRA_INSTALL_SDK} \
"
2 changes: 1 addition & 1 deletion recipes/packagegroup/packagegroup-b2qt-embedded-tools.bb
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ RDEPENDS_${PN} = "\
connman-client \
iproute2 \
rsync \
${@base_contains("DISTRO_FEATURES", "systemd", "systemd-analyze", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-analyze", "", d)} \
"

0 comments on commit c792089

Please sign in to comment.