[Buildroot] using a variable within a buildroot menuconfig
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Jun 25 19:41:05 UTC 2013
Dear Jan Pohanka,
On Tue, 25 Jun 2013 09:58:00 +0200, Jan Pohanka wrote:
> I have another /weird/ question.
>
> I would like to know if it is possible to create an item in
> configuration which will for example contain some (absolute) path on my
> filesystem. Then I would like to use this variable for example in
> --extra-cflags configure option for applications like ffmpeg etc.
>
> I know that it is not very nice way, but I need to integrate buildroot
> with Texas Instruments SDK, which is not very GNU build tools friendy.
I'm not sure to really understand what you want to do here. You can
always create string options:
config BR2_SOME_PATH
string
default "/path/to/somewhere/"
and then in some .mk file, you can use:
$(BR2_SOME_PATH)
to refer to still variable, or:
$(call qstrip,$(BR2_SOME_PATH))
if you want to get rid of the quotes around the variable value.
Does this answer your questions?
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list