From: Jeremy Rosen <jeremy.rosen@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] BR2_EXTERNAL: check it is a valid BR2_EXTERNAL dir before using it
Date: Wed, 22 Jan 2014 13:43:13 +0100 (CET) [thread overview]
Message-ID: <1880877953.4607498.1390394593186.JavaMail.root@openwide.fr> (raw)
In-Reply-To: <1410002893.284525363.1390386070110.JavaMail.root@zimbra96-e16.priv.proxad.net>
Ok, thx Yann
my remark about the error message still not being clean still stands
and the doc is not explicit about Config.in and external.mk being
required
if you don't want to add these to your patch I can post a separate
one, but for the technical part :
Tested-by: J?r?my Rosen <jeremy.rosen@openwide.fr>
Cordialement
J?r?my Rosen
+33 (0)1 42 68 28 04
fight key loggers : write some perl using vim
Open Wide Ingenierie
23, rue Daviel
75012 Paris - France
www.openwide.fr
----- Mail original -----
> J?r?my, All,
>
> ----- Original Message -----
> From: "Jeremy Rosen" <jeremy.rosen@openwide.fr>
> To: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: "Peter Korsgaard" <jacmet@uclibc.org>, "Romain Naour"
> <romain.naour@openwide.fr>, buildroot at busybox.net
> Sent: Wednesday, January 22, 2014 10:00:40 AM
> Subject: Re: [PATCH] BR2_EXTERNAL: check it is a valid BR2_EXTERNAL
> dir before using it
>
> ok, I tried your patch and I have a couple of problems
>
> [--SNIP--]
> > diff --git a/Makefile b/Makefile
> > index 9dfb1e0..5753f81 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -118,7 +118,15 @@ ifeq ($(BR2_EXTERNAL),)
> > override BR2_EXTERNAL = support/dummy-external
> > $(shell rm -f $(BR2_EXTERNAL_FILE))
> > else
> > - $(shell echo BR2_EXTERNAL ?= $(BR2_EXTERNAL) >
> > $(BR2_EXTERNAL_FILE))
> > + _BR2_EXTERNAL = $(shell cd $(BR2_EXTERNAL) >/dev/null 2>&1 &&
> > pwd)
> > + ifeq ($(and $(_BR2_EXTERNAL),$(wildcard
> > $(_BR2_EXTERNAL)/external.mk),$(wildcard
> > $(_BR2_EXTERNAL)/Config.in)),)
> > + ifeq ($(patsubst /%,/,$(BR2_EXTERNAL)),)
> > + $(error BR2_EXTERNAL='$(BR2_EXTERNAL)' does not exist)
> > + else
> > + $(error BR2_EXTERNAL='$(BR2_EXTERNAL)' does not exist,
> > relatively to $(TOPDIR))
> > + endif
> > + endif
>
> Doh, I forgot to commit with this line:
> override BR2_EXTERNAL := $(_BR2_EXTERNAL)
>
> > + $(shell echo BR2_EXTERNAL ?= $(_BR2_EXTERNAL) >
> > $(BR2_EXTERNAL_FILE))
> > endif
>
> Care to test again, please?
>
> Regards,
> Yann E. MORIN.
>
next prev parent reply other threads:[~2014-01-22 12:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 21:04 [Buildroot] [PATCH] BR2_EXTERNAL: check it is a valid BR2_EXTERNAL dir before using it Yann E. MORIN
2014-01-22 9:00 ` Jeremy Rosen
2014-01-22 10:21 ` yann.morin.1998 at free.fr
2014-01-22 12:43 ` Jeremy Rosen [this message]
2014-01-22 21:10 ` Yann E. MORIN
2014-01-22 18:55 ` Yann E. MORIN
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=1880877953.4607498.1390394593186.JavaMail.root@openwide.fr \
--to=jeremy.rosen@openwide.fr \
--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