* [PATCH 2/2] udev: Don't introduce pci dependencies without pci being featured
@ 2015-10-08 15:26 Jens Rehsack
2015-10-08 17:22 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Jens Rehsack @ 2015-10-08 15:26 UTC (permalink / raw)
To: OE-core
Fixes that udev always requires PCI, idenpendently from machine or distro features.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
meta/recipes-core/udev/udev.inc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index c378ae3..573ecca 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -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"
--
2.4.3
--
Jens Rehsack - rehsack@gmail.com
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] udev: Don't introduce pci dependencies without pci being featured
2015-10-08 15:26 [PATCH 2/2] udev: Don't introduce pci dependencies without pci being featured Jens Rehsack
@ 2015-10-08 17:22 ` Martin Jansa
2015-10-09 7:30 ` Jens Rehsack
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2015-10-08 17:22 UTC (permalink / raw)
To: Jens Rehsack; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 2753 bytes --]
On Thu, Oct 08, 2015 at 05:26:11PM +0200, Jens Rehsack wrote:
> Fixes that udev always requires PCI, idenpendently from machine or distro features.
>
> Signed-off-by: Jens Rehsack <sno@netbsd.org>
> ---
> meta/recipes-core/udev/udev.inc | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
> index c378ae3..573ecca 100644
> --- a/meta/recipes-core/udev/udev.inc
> +++ b/meta/recipes-core/udev/udev.inc
> @@ -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)
> 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"
> --
> 2.4.3
>
> --
> Jens Rehsack - rehsack@gmail.com
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] udev: Don't introduce pci dependencies without pci being featured
2015-10-08 17:22 ` Martin Jansa
@ 2015-10-09 7:30 ` Jens Rehsack
0 siblings, 0 replies; 3+ messages in thread
From: Jens Rehsack @ 2015-10-09 7:30 UTC (permalink / raw)
To: Martin Jansa; +Cc: OE-core
> Am 08.10.2015 um 19:22 schrieb Martin Jansa <martin.jansa@gmail.com>:
>
> On Thu, Oct 08, 2015 at 05:26:11PM +0200, Jens Rehsack wrote:
>> Fixes that udev always requires PCI, idenpendently from machine or distro features.
>>
>> Signed-off-by: Jens Rehsack <sno@netbsd.org>
>> ---
>> meta/recipes-core/udev/udev.inc | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
>> index c378ae3..573ecca 100644
>> --- a/meta/recipes-core/udev/udev.inc
>> +++ b/meta/recipes-core/udev/udev.inc
>> @@ -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.
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?
> 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
--
Jens Rehsack - rehsack@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-09 7:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 15:26 [PATCH 2/2] udev: Don't introduce pci dependencies without pci being featured Jens Rehsack
2015-10-08 17:22 ` Martin Jansa
2015-10-09 7:30 ` Jens Rehsack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox