From: John O'Sullivan <John.OSullivan@BlackBox.com>
To: buildroot@busybox.net
Subject: [Buildroot] Using CFLAGS_MODULE in linux.mk
Date: Thu, 9 Mar 2017 16:05:34 +0000 [thread overview]
Message-ID: <1489075532553.82021@BlackBox.com> (raw)
Hi,
I am trying to build a kernel module that can have a number of conditional compile options depending on the product variant I am building.
Outside of buildroot I can do
make ARCH=arm modules CFLAGS_MODULE=-DVARIANT_PPG
The module picks up the VARIANT_PPG and I can conditionally build the module.
I am trying to do something similar in buildroot (2013-05). To test this out I tried amending the linux.mk file as follows:
LINUX_MAKE_FLAGS+=CFLAGS_MODULE=-DVARIANT_PPG
However when I add this line to linux.mk the variable VARIANT_PPG never seems to be seen in the module.
Has anyone any suggestions? Is there a reason its not working in the .mk file.
Is there a better way of doing this?
regards
John
________________________________
This email and any files transmitted with it are confidential and are intended for the sole use of the individual to whom they are addressed. Black Box Corporation reserves the right to scan all e-mail traffic for restricted content and to monitor all e-mail in general. If you are not the intended recipient or you have received this email in error, any use, dissemination or forwarding of this email is strictly prohibited. If you have received this email in error, please notify the sender by replying to this email.
reply other threads:[~2017-03-09 16:05 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=1489075532553.82021@BlackBox.com \
--to=john.osullivan@blackbox.com \
--cc=buildroot@busybox.net \
/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