Also add support for a native version of bluez5 package, which has only the library PACKAGECONFIG explicitly enabled. The main goal with this is to allow other packages, like Python 3, to include the library files at compile-time. Using the native package is preferred to avoid dependency loops.
Signed-off-by: Guðni Már Gilbert <[email protected]> --- meta/recipes-connectivity/bluez5/bluez5.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index d31f4e2295..f0551a052e 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc @@ -15,6 +15,7 @@ RCONFLICTS:${PN} = "bluez4" PACKAGECONFIG ??= "obex-profiles \ readline \ + library \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ a2dp-profiles \ avrcp-profiles \ @@ -33,6 +34,9 @@ PACKAGECONFIG ??= "obex-profiles \ deprecated \ udev \ " + +PACKAGECONFIG:class-native = "library" + PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical" PACKAGECONFIG[readline] = "--enable-client,--disable-client,readline," PACKAGECONFIG[testing] = "--enable-testing,--disable-testing" @@ -40,6 +44,7 @@ PACKAGECONFIG[midi] = "--enable-midi,--disable-midi,alsa-lib" PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" PACKAGECONFIG[cups] = "--enable-cups,--disable-cups,,cups" PACKAGECONFIG[nfc] = "--enable-nfc,--disable-nfc" +PACKAGECONFIG[library] = "--enable-library,--disable-library" PACKAGECONFIG[sap-profiles] = "--enable-sap,--disable-sap" PACKAGECONFIG[a2dp-profiles] = "--enable-a2dp,--disable-a2dp" PACKAGECONFIG[avrcp-profiles] = "--enable-avrcp,--disable-avrcp" @@ -80,7 +85,6 @@ inherit autotools pkgconfig systemd update-rc.d ptest gobject-introspection-data EXTRA_OECONF = "\ --enable-test \ --enable-datafiles \ - --enable-library \ --enable-pie \ --without-zsh-completion-dir \ " @@ -166,3 +170,5 @@ do_install_ptest() { } RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-utf-16" + +BBCLASSEXTEND = "native" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206964): https://lists.openembedded.org/g/openembedded-core/message/206964 Mute This Topic: https://lists.openembedded.org/mt/109519518/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
