[Buildroot] [PATCH 1/4] Makefile: export a few variables to help support scripts

Peter Korsgaard jacmet at uclibc.org
Mon Jan 14 08:52:50 UTC 2013

>>>>> "Peter" == Peter Korsgaard <jacmet at uclibc.org> writes:

>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
 Yann> Support scripts (in support/) may need to parse the .config file, so give
 Yann> them an easy access to it, by exporting BUILDROOT_CONFIG with the fully-
 Yann> qualified path to .config.

 Yann> Also, post-build scripts may need to reference a few locations, so export
 Yann> those, too.

 Yann> Note: we export both O and BASE_DIR. Although they are the same,
 Yann> BASE_DIR is used internally, while O is used on the command line,
 Yann> which makes it a bit ambiguous to know which to use. As users use
 Yann> O= on the command line, they will probably tend to use that in
 Yann> their post-build scripts.

 Peter> Ok. I guess most people don't need the upper O/BASE_DIR variables, but
 Peter> lets add the for completeness.

And even worse, other projects also use the O=<dir> syntax for out of
tree, and atleast uClibc doesn't check that it gets explictly passed on
the command line, breaking the build.

So I'll remove the O.

Bye, Peter Korsgaard

More information about the buildroot mailing list