From patchwork Fri May 20 12:54:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 8310 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B723C4332F for ; Fri, 20 May 2022 12:55:22 +0000 (UTC) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by mx.groups.io with SMTP id smtpd.web09.8301.1653051314220056578 for ; Fri, 20 May 2022 05:55:14 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.20, mailfrom: f_l_k@t-online.de) Received: from fwd77.dcpf.telekom.de (fwd77.aul.t-online.de [10.223.144.103]) by mailout08.t-online.de (Postfix) with SMTP id 4C30356E for ; Fri, 20 May 2022 14:54:31 +0200 (CEST) Received: from localhost.localdomain ([84.154.173.254]) by fwd77.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ns29G-3AtqF70; Fri, 20 May 2022 14:54:30 +0200 From: Markus Volk To: openembedded-core@lists.openembedded.org Cc: Markus Volk Subject: [oe-core][RFC PATCHv3 1/3] allow to build more native packages Date: Fri, 20 May 2022 14:54:17 +0200 Message-Id: <20220520125419.4115417-1-f_l_k@t-online.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1653051270-0001606D-B5005B2E/0/0 CLEAN NORMAL X-TOI-MSGID: cd28057f-ed4d-4b23-8c37-c17632e5c11b List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 20 May 2022 12:55:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/165938 basically this would fix build for pipewire-native, libpam-native and openssh-native. Hopefully without breaking things ;) --- .../openssh/openssh_9.0p1.bb | 2 +- meta/recipes-core/udev/eudev_3.2.11.bb | 2 ++ meta/recipes-extended/pam/libpam_1.5.2.bb | 24 +++++++++++-------- .../recipes-graphics/xorg-lib/libxv_1.0.11.bb | 1 + meta/recipes-multimedia/flac/flac_1.3.4.bb | 1 + .../gstreamer1.0-plugins-base_1.20.1.bb | 2 ++ .../gstreamer/gstreamer1.0_1.20.1.bb | 2 ++ .../recipes-multimedia/libogg/libogg_1.3.5.bb | 2 ++ .../libsamplerate/libsamplerate0_0.2.2.bb | 2 ++ .../libsndfile/libsndfile1_1.1.0.bb | 2 ++ .../libtheora/libtheora_1.1.1.bb | 2 ++ .../libvorbis/libvorbis_1.3.7.bb | 2 ++ .../iso-codes/iso-codes_4.9.0.bb | 2 ++ 13 files changed, 35 insertions(+), 11 deletions(-) diff --git a/meta/recipes-connectivity/openssh/openssh_9.0p1.bb b/meta/recipes-connectivity/openssh/openssh_9.0p1.bb index b63ea2b137..d2cf8a6cf8 100644 --- a/meta/recipes-connectivity/openssh/openssh_9.0p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_9.0p1.bb @@ -180,4 +180,4 @@ ALTERNATIVE_PRIORITY = "90" ALTERNATIVE:${PN}-scp = "scp" ALTERNATIVE:${PN}-ssh = "ssh" -BBCLASSEXTEND += "nativesdk" +BBCLASSEXTEND += "native nativesdk" diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb index 841039f6d7..2c1c59b993 100644 --- a/meta/recipes-core/udev/eudev_3.2.11.bb +++ b/meta/recipes-core/udev/eudev_3.2.11.bb @@ -89,3 +89,5 @@ pkg_postinst:eudev-hwdb () { pkg_prerm:eudev-hwdb () { rm -f $D${sysconfdir}/udev/hwdb.bin } + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-extended/pam/libpam_1.5.2.bb b/meta/recipes-extended/pam/libpam_1.5.2.bb index 081986ef43..1b0bb0d51c 100644 --- a/meta/recipes-extended/pam/libpam_1.5.2.bb +++ b/meta/recipes-extended/pam/libpam_1.5.2.bb @@ -54,7 +54,7 @@ FILES:${PN}-dev += "${base_libdir}/security/*.la ${base_libdir}/*.la ${base_libd FILES:${PN}-runtime = "${sysconfdir} ${sbindir} ${systemd_system_unitdir}" FILES:${PN}-xtests = "${datadir}/Linux-PAM/xtests" -PACKAGES_DYNAMIC += "^${MLPREFIX}pam-plugin-.*" +PACKAGES_DYNAMIC:class-target += "^${MLPREFIX}pam-plugin-.*" def get_multilib_bit(d): baselib = d.getVar('baselib') or '' @@ -65,23 +65,24 @@ libpam_suffix = "suffix${@get_multilib_bit(d)}" RPROVIDES:${PN} += "${PN}-${libpam_suffix}" RPROVIDES:${PN}-runtime += "${PN}-runtime-${libpam_suffix}" -RDEPENDS:${PN}-runtime = "${PN}-${libpam_suffix} \ +RDEPENDS:${PN}-xtests = "bash coreutils" + +RRECOMMENDS:${PN}-runtime = "${PN}-${libpam_suffix} \ + ${PN}-runtime-${libpam_suffix} \ ${MLPREFIX}pam-plugin-deny-${libpam_suffix} \ ${MLPREFIX}pam-plugin-permit-${libpam_suffix} \ ${MLPREFIX}pam-plugin-warn-${libpam_suffix} \ ${MLPREFIX}pam-plugin-unix-${libpam_suffix} \ " -RDEPENDS:${PN}-xtests = "${PN}-${libpam_suffix} \ +RRECOMMENDS:${PN}-xtests = "${PN}-${libpam_suffix} \ ${MLPREFIX}pam-plugin-access-${libpam_suffix} \ ${MLPREFIX}pam-plugin-debug-${libpam_suffix} \ ${MLPREFIX}pam-plugin-pwhistory-${libpam_suffix} \ ${MLPREFIX}pam-plugin-succeed-if-${libpam_suffix} \ ${MLPREFIX}pam-plugin-time-${libpam_suffix} \ - bash coreutils" + " -# FIXME: Native suffix breaks here, disable it for now -RRECOMMENDS:${PN} = "${PN}-runtime-${libpam_suffix}" -RRECOMMENDS:${PN}:class-native = "" +RRECOMMENDS:${PN} = "${PN}-runtime" python populate_packages:prepend () { def pam_plugin_hook(file, pkg, pattern, format, basename): @@ -148,6 +149,9 @@ do_install() { if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session fi +} + +do_install:append:class-target() { if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','false','true',d)}; then install -d ${D}/${libdir}/ mv ${D}/${base_libdir}/pkgconfig ${D}/${libdir}/ @@ -169,9 +173,7 @@ pkg_postinst:${PN}() { } inherit features_check -REQUIRED_DISTRO_FEATURES = "pam" - -BBCLASSEXTEND = "nativesdk native" +REQUIRED_DISTRO_FEATURES:class-target = "pam" CONFFILES:${PN}-runtime += "${sysconfdir}/pam.d/common-session" CONFFILES:${PN}-runtime += "${sysconfdir}/pam.d/common-auth" @@ -183,3 +185,5 @@ CONFFILES:${PN}-runtime += "${sysconfdir}/security/limits.conf" UPSTREAM_CHECK_URI = "https://github.com/linux-pam/linux-pam/releases" CVE_PRODUCT = "linux-pam" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-graphics/xorg-lib/libxv_1.0.11.bb b/meta/recipes-graphics/xorg-lib/libxv_1.0.11.bb index 3c8bf08153..0eb8f97181 100644 --- a/meta/recipes-graphics/xorg-lib/libxv_1.0.11.bb +++ b/meta/recipes-graphics/xorg-lib/libxv_1.0.11.bb @@ -17,3 +17,4 @@ XORG_PN = "libXv" SRC_URI[md5sum] = "210b6ef30dda2256d54763136faa37b9" SRC_URI[sha256sum] = "d26c13eac99ac4504c532e8e76a1c8e4bd526471eb8a0a4ff2a88db60cb0b088" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/flac/flac_1.3.4.bb b/meta/recipes-multimedia/flac/flac_1.3.4.bb index 012da0a0a0..e177c90b0a 100644 --- a/meta/recipes-multimedia/flac/flac_1.3.4.bb +++ b/meta/recipes-multimedia/flac/flac_1.3.4.bb @@ -43,3 +43,4 @@ FILES:libflac++ = "${libdir}/libFLAC++.so.*" FILES:liboggflac = "${libdir}/libOggFLAC.so.*" FILES:liboggflac++ = "${libdir}/libOggFLAC++.so.*" +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.1.bb index 0953261a98..b52a80d3e1 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.1.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.1.bb @@ -92,3 +92,5 @@ def get_opengl_cmdline_list(switch_name, options, d): return '' CVE_PRODUCT += "gst-plugins-base" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.20.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.20.1.bb index 81b94928d9..fa5ec44a23 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.20.1.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.20.1.bb @@ -71,3 +71,5 @@ FILES:${PN}-dbg += "${datadir}/gdb ${datadir}/gstreamer-1.0/gdb" CVE_PRODUCT = "gstreamer" PTEST_BUILD_HOST_FILES = "" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/libogg/libogg_1.3.5.bb b/meta/recipes-multimedia/libogg/libogg_1.3.5.bb index b4f02e404c..87362cb6cf 100644 --- a/meta/recipes-multimedia/libogg/libogg_1.3.5.bb +++ b/meta/recipes-multimedia/libogg/libogg_1.3.5.bb @@ -15,3 +15,5 @@ SRC_URI[md5sum] = "3178c98341559657a15b185bf5d700a5" SRC_URI[sha256sum] = "c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705" inherit autotools pkgconfig + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.2.2.bb b/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.2.2.bb index ed2b6437dd..2ddbd411ee 100644 --- a/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.2.2.bb +++ b/meta/recipes-multimedia/libsamplerate/libsamplerate0_0.2.2.bb @@ -24,3 +24,5 @@ inherit autotools pkgconfig # normal builds. It should be safe to ignore these, but explicitly disabling # them adds some extra certainty that builds are deterministic. EXTRA_OECONF = "--disable-fftw --disable-alsa" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1_1.1.0.bb b/meta/recipes-multimedia/libsndfile/libsndfile1_1.1.0.bb index 70626b3c16..85c11c7ca9 100644 --- a/meta/recipes-multimedia/libsndfile/libsndfile1_1.1.0.bb +++ b/meta/recipes-multimedia/libsndfile/libsndfile1_1.1.0.bb @@ -30,3 +30,5 @@ inherit autotools lib_package pkgconfig multilib_header do_install:append() { oe_multilib_header sndfile.h } + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb b/meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb index 178e1a9240..45b5f5c358 100644 --- a/meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb +++ b/meta/recipes-multimedia/libtheora/libtheora_1.1.1.bb @@ -20,3 +20,5 @@ UPSTREAM_CHECK_REGEX = "libtheora-(?P\d+(\.\d)+)\.(tar\.gz|tgz)" inherit autotools pkgconfig EXTRA_OECONF = "--disable-examples" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-multimedia/libvorbis/libvorbis_1.3.7.bb b/meta/recipes-multimedia/libvorbis/libvorbis_1.3.7.bb index 023bce0abe..9b7e2d8ad6 100644 --- a/meta/recipes-multimedia/libvorbis/libvorbis_1.3.7.bb +++ b/meta/recipes-multimedia/libvorbis/libvorbis_1.3.7.bb @@ -17,3 +17,5 @@ SRC_URI[md5sum] = "50902641d358135f06a8392e61c9ac77" SRC_URI[sha256sum] = "b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b" inherit autotools pkgconfig + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-support/iso-codes/iso-codes_4.9.0.bb b/meta/recipes-support/iso-codes/iso-codes_4.9.0.bb index f51edf09a4..f69e67961d 100644 --- a/meta/recipes-support/iso-codes/iso-codes_4.9.0.bb +++ b/meta/recipes-support/iso-codes/iso-codes_4.9.0.bb @@ -20,3 +20,5 @@ S = "${WORKDIR}/git" inherit allarch autotools FILES:${PN} += "${datadir}/xml/" + +BBCLASSEXTEND = "native nativesdk" From patchwork Fri May 20 12:54:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 8309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FAA2C433F5 for ; Fri, 20 May 2022 12:55:22 +0000 (UTC) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by mx.groups.io with SMTP id smtpd.web09.8302.1653051315220071925 for ; Fri, 20 May 2022 05:55:15 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.20, mailfrom: f_l_k@t-online.de) Received: from fwd77.dcpf.telekom.de (fwd77.aul.t-online.de [10.223.144.103]) by mailout08.t-online.de (Postfix) with SMTP id 547055AEA for ; Fri, 20 May 2022 14:54:35 +0200 (CEST) Received: from localhost.localdomain ([84.154.173.254]) by fwd77.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ns29J-3AtqF80; Fri, 20 May 2022 14:54:33 +0200 From: Markus Volk To: openembedded-core@lists.openembedded.org Cc: Markus Volk Subject: [oe-core][RFC PATCHv3 2/3] libdecor: initial add recipe Date: Fri, 20 May 2022 14:54:18 +0200 Message-Id: <20220520125419.4115417-2-f_l_k@t-online.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520125419.4115417-1-f_l_k@t-online.de> References: <20220520125419.4115417-1-f_l_k@t-online.de> MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1653051273-0001606D-496B63C1/0/0 CLEAN NORMAL X-TOI-MSGID: 1f18b726-b800-4301-bc50-1d146f9fbacf List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 20 May 2022 12:55:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/165939 libdecor is a client-side decoration library for Wayland clients. It is used by libsdl2 for window decoration and is required to provide decoration for shells that use client-side decoration such as gnome-shell or weston. Signed-off-by: Markus Volk --- .../libdecor/libdecor_0.1.0.bb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-graphics/libdecor/libdecor_0.1.0.bb diff --git a/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb b/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb new file mode 100644 index 0000000000..3223d914ad --- /dev/null +++ b/meta/recipes-graphics/libdecor/libdecor_0.1.0.bb @@ -0,0 +1,30 @@ +SUMMARY = "libdecor - A client-side decorations library for Wayland clients" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7ae2be7fb1637141840314b51970a9f7" + +SRC_URI = "git://gitlab.gnome.org/jadahl/libdecor.git;protocol=https;branch=master" + +DEPENDS = " \ + cairo \ + libxkbcommon \ + pango \ + wayland \ + wayland-native \ + wayland-protocols \ +" + +S = "${WORKDIR}/git" +SRCREV = "3ec3fadd59a21835079fbb3046d2bec6c649d6fa" + +PACKAGECONFIG ?= "dbus" + +PACKAGECONFIG[dbus] = "-Ddbus=enabled,-Ddbus=disabled,dbus" +PACKAGECONFIG[demo] = "-Ddemo=true,-Ddemo=false,virtual/libgl" + +inherit meson pkgconfig + +EXTRA_OEMESON += "--buildtype release" + + +BBCLASSEXTEND = "native nativesdk" + From patchwork Fri May 20 12:54:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 8306 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81C28C433F5 for ; Fri, 20 May 2022 12:55:12 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx.groups.io with SMTP id smtpd.web08.8320.1653051307712213086 for ; Fri, 20 May 2022 05:55:08 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.84, mailfrom: f_l_k@t-online.de) Received: from fwd77.dcpf.telekom.de (fwd77.aul.t-online.de [10.223.144.103]) by mailout09.t-online.de (Postfix) with SMTP id 644011C89C for ; Fri, 20 May 2022 14:54:35 +0200 (CEST) Received: from localhost.localdomain ([84.154.173.254]) by fwd77.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ns29K-3AtqF90; Fri, 20 May 2022 14:54:34 +0200 From: Markus Volk To: openembedded-core@lists.openembedded.org Cc: Markus Volk Subject: [oe-core][RFC PATCHv3 3/3] libsdl2: rework and cleanup Date: Fri, 20 May 2022 14:54:19 +0200 Message-Id: <20220520125419.4115417-3-f_l_k@t-online.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520125419.4115417-1-f_l_k@t-online.de> References: <20220520125419.4115417-1-f_l_k@t-online.de> MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1653051274-0001606D-35206E04/0/0 CLEAN NORMAL X-TOI-MSGID: 1ff34bcd-796f-4e59-8cf4-fb845534f037 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 20 May 2022 12:55:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/165937 - add libusb PACKAGECONFIG because libsdl2 is looking for it - remove xvm and xinerama since support has been dropped in sdl code - allow native build for libxkbcommon and xkeyboard-config to allow alignment of native/target build - align native and target build - add PACKAGECONFIG options for pipewire and libdecor Signed-off-by: Markus Volk --- .../recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 18 +++++++++--------- .../xorg-lib/libxkbcommon_1.4.0.bb | 2 ++ .../xorg-lib/xkeyboard-config_2.35.1.bb | 2 ++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb index 7678319770..391e52b403 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb @@ -43,9 +43,7 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ -DSDL_PTHREADS=ON \ -DSDL_RPATH=OFF \ -DSDL_SNDIO=OFF \ - -DSDL_X11_XVM=OFF \ -DSDL_X11_XCURSOR=OFF \ - -DSDL_X11_XINERAMA=OFF \ -DSDL_X11_XDBE=OFF \ -DSDL_X11_XFIXES=OFF \ -DSDL_X11_XINPUT=OFF \ @@ -55,24 +53,26 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ " # opengl packageconfig factored out to make it easy for distros -# and BSP layers to pick either (desktop) opengl, gles2, or no GL -PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" +# and BSP layers to pick either (desktop) opengl, gles, or no GL +PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl gles', d)}" -PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" -PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}" PACKAGECONFIG ??= " \ ${PACKAGECONFIG_GL} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio pipewire x11 wayland', d)} \ ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ " PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,directfb" -PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" +PACKAGECONFIG[gles] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm" +PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor" +# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers, +# so we'll just use libusb when it's available. +PACKAGECONFIG[libusb] = ",,libusb1" PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" +PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE=ON,-DSDL_PIPEWIRE=OFF,pipewire" PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon" PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender" diff --git a/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb index 34652e9c4e..9840b0797b 100644 --- a/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb +++ b/meta/recipes-graphics/xorg-lib/libxkbcommon_1.4.0.bb @@ -34,3 +34,5 @@ python populate_packages:prepend () { # Fix a following runtime error: # xkbcommon: ERROR: couldn't find a Compose file for locale "C" RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', 'libx11-compose-data', d)}" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb index 5215131e3e..46c73879e6 100644 --- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb +++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.35.1.bb @@ -28,3 +28,5 @@ do_install:append () { install -d ${D}${datadir}/X11/xkb/compiled cd ${D}${datadir}/X11/xkb/rules && ln -sf base xorg } + +BBCLASSEXTEND = "native nativesdk"