[Buildroot] [PATCH 2/3] Add support for BR2_EXTERNAL
Yann E. MORIN
yann.morin.1998 at free.fr
Wed Sep 11 17:03:40 UTC 2013
Ryan, All,
On 2013-09-10 21:03 -0500, rjbarnet at rockwellcollins.com spake thusly:
> Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote on 09/08/2013
> 08:15:28 AM:
>
> >
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> > ---
> > Config.in | 6 ++++--
> > Makefile | 29 +++++++++++++++++++++++++----
> > docs/manual/manual.mk | 2 +-
>
> One idea that I have, is for the make file that is genreated for the an
> external output directory, if we could preserve the the value of
> BR2_EXTERNAL
> as follows. I don't think my logic is fully there but there is more of a
> sudo implementation:
>
> diff --git a/support/scripts/mkmakefile b/support/scripts/mkmakefile
> --- a/support/scripts/mkmakefile
> +++ b/support/scripts/mkmakefile
> @@ -27,6 +27,7 @@ makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
>
> MAKEARGS := -C $1
> MAKEARGS += O=\$(if \$(patsubst /%,,\$(makedir)),\$(CURDIR)/)\$(patsubst
> %/,%,\$(makedir))
> +MAKEARGS += BR2_EXTERNAL=\$(realpath \$(BR2_EXTERNAL))
Why realpath? I think we should pass the exact value of BR2_EXTERNAL.
Otherwise, I agree that this could be usefull.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list