aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRosy Song <rosysong@rosinson.com>2019-01-07 09:52:43 +0800
committerHans Dedecker <dedeckeh@gmail.com>2019-01-17 22:07:06 +0100
commit27be78ef461af31015a6c9cfc334b3c5c69b3953 (patch)
tree2bdfad84e9d3f77318e4e829c69d19e5841dcc13 /package
parent59e62809e6127b349e9ae43403a689bdeecb6894 (diff)
downloadupstream-27be78ef461af31015a6c9cfc334b3c5c69b3953.tar.gz
upstream-27be78ef461af31015a6c9cfc334b3c5c69b3953.tar.bz2
upstream-27be78ef461af31015a6c9cfc334b3c5c69b3953.zip
dnsmasq: allow building without tftp server support
It saves 2871 bytes on package size while 4 bytes on memory size. Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/dnsmasq/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index daa01042e9..a3a0b12ab1 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -30,7 +30,8 @@ PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_dhcp \
CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_ipset \
CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_conntrack \
CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_noid \
- CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_broken_rtc
+ CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_broken_rtc \
+ CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_tftp
include $(INCLUDE_DIR)/package.mk
@@ -115,6 +116,9 @@ define Package/dnsmasq-full/config
config PACKAGE_dnsmasq_full_broken_rtc
bool "Build with HAVE_BROKEN_RTC."
default n
+ config PACKAGE_dnsmasq_full_tftp
+ bool "Build with TFTP server support."
+ default y
endif
endef
@@ -139,7 +143,8 @@ ifeq ($(BUILD_VARIANT),full)
$(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_ipset),,-DNO_IPSET) \
$(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_conntrack),-DHAVE_CONNTRACK,) \
$(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_noid),-DNO_ID,) \
- $(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_broken_rtc),-DHAVE_BROKEN_RTC)
+ $(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_broken_rtc),-DHAVE_BROKEN_RTC) \
+ $(if $(CONFIG_PACKAGE_dnsmasq_$(BUILD_VARIANT)_tftp),,-DNO_TFTP)
COPTS += $(if $(CONFIG_LIBNETTLE_MINI),-DNO_GMP,)
else
COPTS += -DNO_AUTH -DNO_IPSET -DNO_ID