mirror of
https://git.yoctoproject.org/poky
synced 2026-06-09 03:40:18 +00:00
alsa-utils: Add PACKAGECONFIG for udev
Commit b92a3e9d093bc9421aa38a40bc6bfd559a16b3be introduced a dependency on udev, which is undesirable for distros which don't otherwise require or build udev (and, as such, don't have any interest in the rules.d files). Make this conditional on a PACKAGECONFIG setting so that it can be turned off. If it's off, we don't depend on udev and don't ship the rules. (From OE-Core rev: 262e69c9c7acf0beb7bb6b96299e3c993c906434) Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
66055fbedd
commit
492240ac22
@@ -7,6 +7,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://alsactl/utils.c;beginline=1;endline=20;md5=fe9526b055e246b5558809a5ae25c0b9"
|
||||
DEPENDS = "alsa-lib ncurses libsamplerate0 udev"
|
||||
|
||||
PACKAGECONFIG ??= "udev"
|
||||
PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,,udev"
|
||||
|
||||
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
|
||||
file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \
|
||||
"
|
||||
@@ -18,7 +21,7 @@ SRC_URI[sha256sum] = "02bfac39092f3b68d743c23ad3d688d6c5aa8df69f2ccd692c5b8282ed
|
||||
# http://bugs.openembedded.org/show_bug.cgi?id=2348
|
||||
# please close bug and remove this comment when properly fixed
|
||||
#
|
||||
EXTRA_OECONF = "--disable-xmlto --with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d "
|
||||
EXTRA_OECONF = "--disable-xmlto"
|
||||
EXTRA_OECONF_append_libc-uclibc = " --disable-nls"
|
||||
|
||||
inherit autotools gettext
|
||||
@@ -82,4 +85,10 @@ do_install() {
|
||||
# We don't ship this here because it requires a dependency on bash.
|
||||
# See alsa-utils-alsaconf_${PV}.bb
|
||||
rm ${D}${sbindir}/alsaconf
|
||||
|
||||
if ${@base_contains('PACKAGECONFIG', 'udev', 'false', 'true', d)}; then
|
||||
# This is where alsa-utils will install its rules if we don't tell it anything else.
|
||||
rm -rf ${D}/lib/udev
|
||||
rmdir --ignore-fail-on-non-empty ${D}/lib
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user