From: Ned Kittlitz <nkittlitz@anovadata.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] mk/rte.vars.mk testopt, not
Date: Fri, 8 Jul 2016 13:27:29 +0000 [thread overview]
Message-ID: <CY1PR11MB0556C439E845AFF6A449EEE8B53C0@CY1PR11MB0556.namprd11.prod.outlook.com> (raw)
Hello,
can somebody please explain what is the purpose of these lines in mk/rte.vars.mk?
# helper: return y if option is set to y, else return an empty string
testopt = $(if $(strip $(subst y,,$(1)) $(subst $(1),,y)),,y)
# helper: return an empty string if option is set, else return y
not = $(if $(strip $(subst y,,$(1)) $(subst $(1),,y)),,y)
I've grepped over the full 16.04 source and there are no other "testopt" hits.
I also grepped over all Makefile and *.mk files for "not" and nothing looks interesting.
I did some quick searching for testopt and gnu make, in case it was some kind of magical thing, but didn't find anything there, either.
DETAILS:
I'm working with somebody who is trying to integrate 16.04 into our environment. We already have a complex makefile infrastructure, so we probably cannot just follow the documented procedure of including rte.vars.mk near the top of the makefile and then including rte.extapp.mk later in the makefile.
Our standard app makefiles include multiple .mk helper files from our build infrastructure.
Right now our developer can get his external app to build by defining RTE_SDK and RTE_TARGET variables in his makefile, then including $(RTE_SDK)/mk/rte.vars.mk first.
But if we move the rte.vars.mk include down, it is apparently damaging something that one of our other mk helpers established. I suppose the "SRCDIR" lines are the most likely culprits, but I wanted to understand the testopt/not too.
Thank you,
Ned
reply other threads:[~2016-07-08 13:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY1PR11MB0556C439E845AFF6A449EEE8B53C0@CY1PR11MB0556.namprd11.prod.outlook.com \
--to=nkittlitz@anovadata.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).