All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/9 v4] core: get rid of our dummy br2-external tree
Date: Tue, 6 Sep 2016 22:49:20 +0200	[thread overview]
Message-ID: <20160906204920.GA12105@free.fr> (raw)
In-Reply-To: <e20f1363-7c24-6995-81bf-1b7ad163406b@ecagroup.com>

Julien, All,

On 2016-09-06 10:21 +0000, Julien CORJON spake thusly:
> I've just done a static read of your series and my comments are just 
> superficial as I'm not a kconfig/Makefile expert...
> 
> I will test all theses before any review/test tag but I do not have 
> enough time yet to do this in the few next days.

No problem. Thanks!

[--SNIP--]
> > diff --git a/support/scripts/br2-external b/support/scripts/br2-external
> > index c15c21c..91f854a 100755
> > --- a/support/scripts/br2-external
> > +++ b/support/scripts/br2-external
> > @@ -19,9 +19,6 @@ main() {
> >      # Forget options; keep only positional args
> >      shift $((OPTIND-1))
> >
> > -    if [ ${#} -ne 1 ]; then
> > -        error "need exactly one br2-external tree to be specified\n"
> > -    fi
> 
> I don't understand why do you remove this check in this commit rather 
> than in patch "7 - core: add support for multiple br2-external trees"?

Because now, the script can be called with no br2-external tree as well.

But you are right, the test should not go away entirely. Instead, it
should test for 0 or 1 tree.

Good catch, I'll fix that. Thanks! :-)

Regards,
Yann E. MORIN.

> Regards,
> 
> Julien Corjon
> 
> >      br2_ext="${1}"
> >
> >      if [ -z "${ofile}" ]; then
> > @@ -38,6 +35,11 @@ main() {
> >  do_validate() {
> >      local br2_ext="${1}"
> >
> > +    # No br2-external tree is valid
> > +    if [ -z "${br2_ext}" ]; then
> > +        return
> > +    fi
> > +
> >      if [ ! -d "${br2_ext}" ]; then
> >          error "'%s': no such file or directory\n" "${br2_ext}"
> >      fi
> > @@ -49,12 +51,17 @@ do_validate() {
> >  do_kconfig() {
> >      printf '#\n# Automatically generated file; DO NOT EDIT.\n#\n'
> >      printf '\n'
> > +
> > +    if [ -z "${BR2_EXT}" ]; then
> > +        printf '# No br2-external tree defined.\n'
> > +        return
> > +    fi
> > +
> >      printf 'config BR2_EXTERNAL\n'
> >      printf '\tstring\n'
> >      printf '\tdefault "%s"\n' "${BR2_EXT}"
> >      printf '\n'
> >      printf 'menu "User-provided options"\n'
> > -    printf '\tdepends on BR2_EXTERNAL != "support/dummy-external"\n'
> >      printf '\n'
> >      printf 'source "%s/Config.in"\n' "${BR2_EXT}"
> >      printf '\n'
> >
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2016-09-06 20:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 21:49 [Buildroot] [PATCH 0/9 v4] br2-external: support multiple trees at once (branch yem/multi-br2-external-10) Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 1/9 v4] core: do not hard-code inclusion of br2-external in Kconfig Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 2/9 v4] core: get rid of our dummy br2-external tree Yann E. MORIN
2016-09-06 10:21   ` Julien CORJON
2016-09-06 20:49     ` Yann E. MORIN [this message]
2016-09-05 21:49 ` [Buildroot] [PATCH 3/9 v4] core: offload handling of BR2_EXTERNAL into the script Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 4/9 v4] core/br2-external: validate even more Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 5/9 v4] core: introduce per br2-external NAME Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 6/9 v4] docs/manual: document the " Yann E. MORIN
2016-09-06 10:21   ` Julien CORJON
2016-09-06 20:58     ` Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 7/9 v4] core: add support for multiple br2-external trees Yann E. MORIN
2016-09-06 10:21   ` Julien CORJON
2016-09-05 21:49 ` [Buildroot] [PATCH 8/9 v4] docs/manual: document multi br2-external Yann E. MORIN
2016-09-05 21:49 ` [Buildroot] [PATCH 9/9 v4] docs/manual: add appendix to convert old br2-external trees Yann E. MORIN
2016-09-06 10:21   ` Julien CORJON
2016-09-06 21:06     ` Yann E. MORIN
2016-09-06 10:29 ` [Buildroot] [PATCH 0/9 v4] br2-external: support multiple trees at once (branch yem/multi-br2-external-10) 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=20160906204920.GA12105@free.fr \
    --to=yann.morin.1998@free.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.