[Buildroot] Evaluation of make variables
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jul 30 08:33:54 UTC 2010
On Tue, 27 Jul 2010 12:54:53 +0100
Quotient Remainder <quotientvremainder at gmail.com> wrote:
> Well my reason for looking at this was so that I could use Maxime's
> git/svn patches to use a git repo to hold the U-Boot source. As it
> stands only Makefiles using gentargets can use this. I would want to
> do this for the linux kernel too.
As we discussed in another thread (if I remember correctly), I'm not
sure the gentargets infrastructure is appropriate for building the
kernel and bootloaders. But definitely, some sort of infrastructure
for building these would be good.
> Is this an inherent limitation of the make syntax or specific to the
> layout of the buildroot makefiles?
Inherent limitation of the make syntax. Try a simple test.mk file that
does:
FOOBAR=y
define BARFOO
ifeq ($(FOOBAR),y)
echo "Hello World"
endif
endef
all:
$(BARFOO)
it doesn't work, while:
FOOBAR=y
ifeq ($(FOOBAR),y)
define BARFOO
echo "Hello World"
endef
endif
all:
$(BARFOO)
does work.
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