aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-12-26 18:17:45 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-12-27 09:10:28 +0100
commit6d02ca15508afe0f2ec749049a851727ed5c8328 (patch)
treeba4b4b417ccc0b85122e710c8bfde03a8940e5e9
parentbb5d61cf2b4be5c1be04a15b66e2921323b1f2fa (diff)
downloadbuildroot-6d02ca15508afe0f2ec749049a851727ed5c8328.tar.gz
buildroot-6d02ca15508afe0f2ec749049a851727ed5c8328.tar.bz2
package/dhcpcd: add udev optional dependency
udev is an optional dependency (enabled by default) since version 6.1.0: https://github.com/rsmarples/dhcpcd/commit/12bbc8cb5c7507be15a7e0af4140c3d81125c46c Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 580eac946886d04afa0d14e8cc90bd24bb10e191) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/dhcpcd/dhcpcd.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/dhcpcd/dhcpcd.mk b/package/dhcpcd/dhcpcd.mk
index 7b69602605..4900e0581f 100644
--- a/package/dhcpcd/dhcpcd.mk
+++ b/package/dhcpcd/dhcpcd.mk
@@ -16,6 +16,13 @@ DHCPCD_CONFIG_OPTS = \
--os=linux \
--privsepuser=dhcpcd
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+DHCPCD_CONFIG_OPTS += --with-udev
+DHCPCD_DEPENDENCIES += udev
+else
+DHCPCD_CONFIG_OPTS += --without-udev
+endif
+
ifeq ($(BR2_STATIC_LIBS),y)
DHCPCD_CONFIG_OPTS += --enable-static
endif