[Buildroot] RFC: option to Makefile.autotools.in to build in $(PROJECT_BUILD_DIR)

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Feb 19 12:34:30 UTC 2009


On Thu, Feb 19, 2009 at 01:14:56PM +0100, Peter Korsgaard wrote:
>>>>>> "Bernhard" == Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> writes:
>
>Hi,
>
> Bernhard> I admit that i didn't look but it sounds a bit like you
> Bernhard> would want to do the same like i did for THIS_SRCDIR
> Bernhard> (THIS_BUILDDIR comes to mind).  HTH,
>
>The target-specific-variable make feature is indeed usefull, but I
>don't quite see how to apply it in this case.

in this case just pickup an eventually given per-package objdir instead
of always using BUILD_DIR, perhaps something like
OBJDIR=$(if $$($(2)_BUILDDIR),$$($(2)_BUILDDIR),$(BUILD_DIR))

so you can just
package/foo/foo.mk:FOO_BUILDDIR=$(PROJECT_BUILDDIR)
(modulo typos)



More information about the buildroot mailing list