package/dhcpcd: add udev optional dependency

udev is an optional dependency (enabled by default) since version 6.1.0:
12bbc8cb5c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2020-12-26 18:17:45 +01:00 committed by Thomas Petazzoni
parent 9e20f09109
commit 580eac9468

View File

@ -16,6 +16,13 @@ DHCPCD_CONFIG_OPTS = \
--os=linux \ --os=linux \
--privsepuser=dhcpcd --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) ifeq ($(BR2_STATIC_LIBS),y)
DHCPCD_CONFIG_OPTS += --enable-static DHCPCD_CONFIG_OPTS += --enable-static
endif endif