aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2017-09-15 16:24:37 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-09-20 19:31:17 +0200
commit883eb058afeaa345886d0bb617f5134ca206cd93 (patch)
treebac22440d46b454e9be749087e2114d28e74c1ba
parentfd70d0b4348d20b3965da2c4b02debc4a8e987da (diff)
downloadbuildroot-883eb058afeaa345886d0bb617f5134ca206cd93.tar.gz
buildroot-883eb058afeaa345886d0bb617f5134ca206cd93.tar.bz2
chrony: add optional seccomp support
seccomp support has been available since chrony-2.2 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/chrony/chrony.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk
index 3b10c8cbff..e78d4b4857 100644
--- a/package/chrony/chrony.mk
+++ b/package/chrony/chrony.mk
@@ -13,7 +13,6 @@ CHRONY_CONF_OPTS = \
--host-system=Linux \
--host-machine=$(BR2_ARCH) \
--prefix=/usr \
- --without-seccomp \
--without-tomcrypt
ifeq ($(BR2_PACKAGE_LIBCAP),y)
@@ -28,6 +27,13 @@ else
CHRONY_CONF_OPTS += --without-nss
endif
+ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
+CHRONY_CONF_OPTS += --enable-scfilter
+CHRONY_DEPENDENCIES += libseccomp
+else
+CHRONY_CONF_OPTS += --without-seccomp
+endif
+
ifeq ($(BR2_PACKAGE_READLINE),y)
CHRONY_DEPENDENCIES += readline
else