aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-03-25 18:59:33 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-25 19:25:17 +0100
commit93f77125112ee5335719065cdfcfb1593caa7c27 (patch)
tree6a47bfe143520905457e329eff9458516b49d677 /package
parent6c849a63ac9507f624a003abb326fc7f21bfc072 (diff)
downloadbuildroot-93f77125112ee5335719065cdfcfb1593caa7c27.tar.gz
buildroot-93f77125112ee5335719065cdfcfb1593caa7c27.tar.bz2
package/odhcp6c: add optional libubox dependency
libubox dependency has been added in https://github.com/openwrt/odhcp6c/commit/33a2ba1c14eb5447326945c120e0b64a587ed151 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
-rw-r--r--package/odhcp6c/odhcp6c.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/odhcp6c/odhcp6c.mk b/package/odhcp6c/odhcp6c.mk
index 735b47420f..3b4e7580a2 100644
--- a/package/odhcp6c/odhcp6c.mk
+++ b/package/odhcp6c/odhcp6c.mk
@@ -16,4 +16,11 @@ endef
ODHCP6C_POST_INSTALL_TARGET_HOOKS += ODHCP6C_INSTALL_SCRIPT
+ifeq ($(BR2_PACKAGE_LIBUBOX),y)
+ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=1
+ODHCP6C_DEPENDENCIES += libubox
+else
+ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=0
+endif
+
$(eval $(cmake-package))