udev: Don't introduce pci dependencies without pci being featured
PATCH 2/2 udev: Don't introduce pci dependencies without pci being featured
Fixes that udev always requires PCI, idenpendently from machine or distro features.
--- meta/recipes-core/udev/udev.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
meta/recipes-core/udev/udev.inc +5 -5
@@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ LDFLAGS += "-lrt" -DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS = "glib-2.0 glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'usbhost', 'libusb usbutils', '', d)}" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'pci', 'pciutils', '', d)}" RPROVIDES_${PN} = "hotplug" PROVIDES = "libgudev"
@@ -39,10 +41,6 @@ RDEPENDS_${PN}-ptest += "make perl python" libexecdir = "${base_libdir}" EXTRA_OECONF = "--disable-introspection \ --with-rootlibdir=${base_libdir} \ - --with-pci-ids-path=${datadir}/pci.ids \ - ac_cv_file__usr_share_pci_ids=no \ - ac_cv_file__usr_share_hwdata_pci_ids=no \ - ac_cv_file__usr_share_misc_pci_ids=yes \ --sbindir=${base_sbindir} \ --libexecdir=${nonarch_base_libdir} \ --with-rootlibdir=${base_libdir} \
@@ -50,6 +48,8 @@ EXTRA_OECONF = "--disable-introspection \ --without-systemdsystemunitdir \ " +EXTRA_OECONF += " ${@base_contains('MACHINE_FEATURES', 'pci', '--with-pci-ids-path=${datadir}/pci.ids ac_cv_file__usr_share_pci_ids=no ac_cv_file__usr_share_hwdata_pci_ids=no ac_cv_file__usr_share_misc_pci_ids=yes', '--without-pci-ids-path', d)}" + PACKAGES =+ "udev-cache" PACKAGES =+ "libudev" PACKAGES =+ "libgudev"
Signature · 4 lines
2.4.3 -- Jens Rehsack - [email protected]
Martin Jansa
NAKQuoted 12 lines · Jens Rehsack
Fixes that udev always requires PCI, idenpendently from machine or distro features.
Signed-off-by Jens Rehsack <[email protected]>--- meta/recipes-core/udev/udev.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)meta/recipes-core/udev/udev.inc +0
-0
meta/recipes-core/udev/udev.inc LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ · line 17
Quoted 7 lines
meta/recipes-core/udev/udev.inc +3
-1@@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ LDFLAGS += "-lrt" -DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS = "glib-2.0 glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'usbhost', 'libusb usbutils', '', d)}" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'pci', 'pciutils', '', d)}"
NAK
udev isn't (and shouldn't be) MACHINE_ARCH, so it cannot use MACHINE_FEATURES variable.
Please change them to PACKAGECONFIG options and distro can decide to disable them for all MACHINEs (or at least for whole set of MACHINEs sharing the same TUNE_PKGARCH)
Quoted 34 lines
meta/recipes-core/udev/udev.inc +2
-4RPROVIDES_${PN} = "hotplug" PROVIDES = "libgudev"@@ -39,10 +41,6 @@ RDEPENDS_${PN}-ptest += "make perl python" libexecdir = "${base_libdir}" EXTRA_OECONF = "--disable-introspection \ --with-rootlibdir=${base_libdir} \ - --with-pci-ids-path=${datadir}/pci.ids \ - ac_cv_file__usr_share_pci_ids=no \ - ac_cv_file__usr_share_hwdata_pci_ids=no \ - ac_cv_file__usr_share_misc_pci_ids=yes \ --sbindir=${base_sbindir} \ --libexecdir=${nonarch_base_libdir} \ --with-rootlibdir=${base_libdir} \@@ -50,6 +48,8 @@ EXTRA_OECONF = "--disable-introspection \ --without-systemdsystemunitdir \ " +EXTRA_OECONF += " ${@base_contains('MACHINE_FEATURES', 'pci', '--with-pci-ids-path=${datadir}/pci.ids ac_cv_file__usr_share_pci_ids=no ac_cv_file__usr_share_hwdata_pci_ids=no ac_cv_file__usr_share_misc_pci_ids=yes', '--without-pci-ids-path', d)}" + PACKAGES =+ "udev-cache" PACKAGES =+ "libudev" PACKAGES =+ "libgudev"Signature · 10 lines
2.4.3 -- Jens Rehsack - [email protected] -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 26 lines
Am 08.10.2015 um 19:22 schrieb Martin Jansa <[email protected]>:
Quoted 15 lines · Jens Rehsack
Fixes that udev always requires PCI, idenpendently from machine or distro features.
Signed-off-by Jens Rehsack <[email protected]>---
meta/recipes-core/udev/udev.inc | 10 +++++-----1 file changed, 5 insertions(+), 5 deletions(-)meta/recipes-core/udev/udev.inc +0
-0@@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \LDFLAGS += "-lrt"
meta/recipes-core/udev/udev.inc LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ · line 17
Quoted 4 lines
meta/recipes-core/udev/udev.inc +3
-1-DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS = "glib-2.0 glib-2.0-native gperf-native libxslt-native util-linux" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'usbhost', 'libusb usbutils', '', d)}" +DEPENDS += " ${@base_contains('MACHINE_FEATURES', 'pci', 'pciutils', '', d)}"NAK
Quoted 2 lines
udev isn't (and shouldn't be)
MACHINE_ARCH, so it cannot useMACHINE_FEATURESvariable.
Why shouldn't be?
We have 2 machines, both iMX6 based, one with Multimedia and one without. For the -lite one, we wouldn't want provide rules for dealing with hdmi, audio, ...
The other ARM machines we have which are complete different platforms (iMX6 vs. Kirkwood) are distinguished by armv5 vs. armv7 - but what happens when another platform joins the farm which is ARMv7 but no i.MX?
Quoted 3 lines
Please change them to PACKAGECONFIG options and distro can decide to disable them for all MACHINEs (or at least for whole set of MACHINEs sharing the same
TUNE_PKGARCH)
This should be done along with some reasonable documentation how to tune that - can you give me (depending on my question above) a hint where to add such a notice for platform integrators?
Cheers
Signature · 1 line
Jens Rehsack - [email protected]