From: Thomas De Schampheleire <patrickdepinguin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] Makefile: internally use absolute paths to BR2_EXTERNAL
Date: Sat, 22 Feb 2014 13:06:48 +0100 [thread overview]
Message-ID: <95fe8a6d-a049-4ff1-a33e-e5d282c07770@email.android.com> (raw)
In-Reply-To: <fe4af64de250841875483a827e6f4684fad64f71.1393020340.git.yann.morin.1998@free.fr>
"Yann E. MORIN" <yann.morin.1998@free.fr> schreef:
>From: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
>Using a relative path for BR2_EXTERNAL, and using an external defconfig,
>such as in (from a Buildroot top-dir):
> make O=.. BR2_EXTERNAL=.. foo_defconfig
>
>is broken. It is unclear why the %_defconfig rule recurses in that case.
>
>This patch internaly makes BR2_EXTERNAL canonical (ie. makes it an absolute
>path), and checks the directory exists.
>
>Reported-by: J?r?my Rosen <jeremy.rosen@openwide.fr>
>Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>Cc: Peter Korsgaard <jacmet@uclibc.org>
>Cc: Romain Naour <romain.naour@openwide.fr>
>Cc: Arnout Vandecappelle <arnout@mind.be>
>
>---
>Changes v1->v2:
> - fix override BR2_EXTERNAL (J?r?my)
> - only one error message (Arnout)
>---
> Makefile | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/Makefile b/Makefile
>index 98d32c0..4766160 100644
>--- a/Makefile
>+++ b/Makefile
>@@ -119,6 +119,11 @@ ifeq ($(BR2_EXTERNAL),)
> override BR2_EXTERNAL = support/dummy-external
> $(shell rm -f $(BR2_EXTERNAL_FILE))
> else
>+ _BR2_EXTERNAL = $(shell cd $(BR2_EXTERNAL) >/dev/null 2>&1 && pwd)
>+ ifeq ($(_BR2_EXTERNAL),)
>+ $(error BR2_EXTERNAL='$(BR2_EXTERNAL)' does not exist, relatively to $(TOPDIR))
I think this should be 'relative to'.
Best regards,
Thomas
next prev parent reply other threads:[~2014-02-22 12:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-21 22:17 [Buildroot] [PATCH 0/3 v3] BR2_EXTERNAL, O: misc fixes and docs Yann E. MORIN
2014-02-21 22:17 ` [Buildroot] [PATCH 1/3] Makefile: internally use absolute paths to BR2_EXTERNAL Yann E. MORIN
2014-02-22 12:06 ` Thomas De Schampheleire [this message]
2014-02-22 20:40 ` Peter Korsgaard
2014-02-21 22:17 ` [Buildroot] [PATCH 2/3] manual: switch BR2_EXTERNAL examples to use absolute paths Yann E. MORIN
2014-02-22 12:09 ` Thomas De Schampheleire
2014-02-22 20:45 ` Peter Korsgaard
2014-02-21 22:17 ` [Buildroot] [PATCH 3/3] manual: add explanations on limitations about using O= Yann E. MORIN
2014-02-22 12:51 ` Thomas De Schampheleire
2014-02-22 13:37 ` Samuel Martin
2014-02-22 20:46 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95fe8a6d-a049-4ff1-a33e-e5d282c07770@email.android.com \
--to=patrickdepinguin@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox