From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200316191555.GC16217@lenoch> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Fri, 27 Mar 2020 10:52:20 +0100 Subject: Re: [ptxdist] [2/4] dnsmasq: use ptx/ifdef List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Thanks, applied. Michael [sent from post-receive hook] On Fri, 27 Mar 2020 10:52:20 +0100, Ladislav Michl wrote: > Signed-off-by: Ladislav Michl > --- > rules/dnsmasq.make | 50 +++++++++++++++------------------------------- > 1 file changed, 16 insertions(+), 34 deletions(-) > > diff --git a/rules/dnsmasq.make b/rules/dnsmasq.make > index bce8dd651..256b0f000 100644 > --- a/rules/dnsmasq.make > +++ b/rules/dnsmasq.make > @@ -33,40 +33,22 @@ DNSMASQ_LICENSE_FILES := \ > # Prepare > # ---------------------------------------------------------------------------- > > -DNSMASQ_PATH := PATH=$(CROSS_PATH) > -DNSMASQ_MAKE_ENV := $(CROSS_ENV) > - > -DNSMASQ_COPT := > - > -ifndef PTXCONF_DNSMASQ_TFTP > -DNSMASQ_COPT += -DNO_TFTP > -endif > - > -ifndef PTXCONF_GLOBAL_IPV6 > -DNSMASQ_COPT += -DNO_IPV6 > -endif > - > -ifndef PTXCONF_DNSMASQ_DHCP > -DNSMASQ_COPT += -DNO_DHCP > -else > -ifndef PTXCONF_DNSMASQ_SCRIPT > -DNSMASQ_COPT += -DNO_SCRIPT > -else > -ifdef PTXCONF_DNSMASQ_SCRIPT_LUA > -DNSMASQ_COPT += -DHAVE_LUASCRIPT > -endif > -endif > -endif > - > -ifdef DNSMASQ_DNSSEC > -DNSMASQ_COPT += -DHAVE_DNSSEC > -endif > - > -DNSMASQ_MAKEVARS := PREFIX=/usr AWK=awk COPTS='$(DNSMASQ_COPT)' "CFLAGS+=-Wall -Wextra -ggdb3 -O2" > - > -$(STATEDIR)/dnsmasq.prepare: > - @$(call targetinfo) > - @$(call touch) > +DNSMASQ_CONF_TOOL := NO > + > +DNSMASQ_COPT := > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_DNSMASQ_TFTP,,-DNO_TFTP) > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_GLOBAL_IPV6,,-DNO_IPV6) > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_DNSMASQ_DNSSEC,-DHAVE_DNSSEC,) > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_DNSMASQ_SCRIPT,,-DNO_SCRIPT) > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_DNSMASQ_SCRIPT_LUA,-DHAVE_LUASCRIPT,) > +DNSMASQ_COPT += $(call ptx/ifdef,PTXCONF_DNSMASQ_DHCP,,-DNO_DHCP) > + > +DNSMASQ_MAKE_OPT := \ > + $(CROSS_ENV_CC) \ > + PREFIX=/usr \ > + AWK=awk \ > + COPTS='$(DNSMASQ_COPT)' \ > + "CFLAGS+=-Wall -Wextra -ggdb3 -O2" > > # ---------------------------------------------------------------------------- > # Target-Install > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de