All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/5] tools: buildman: Honor output directory when generating boards.cfg
Date: Mon, 28 Oct 2019 21:32:08 -0600	[thread overview]
Message-ID: <CAPnjgZ0P56zbrgK2WQK40gD_qJXJk65jjaGi1Nkbp5CXwsrWiA@mail.gmail.com> (raw)
In-Reply-To: <1572272704-31204-2-git-send-email-bmeng.cn@gmail.com>

Hi Bin,

On Mon, 28 Oct 2019 at 08:25, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> buildman always generates boards.cfg in the U-Boot source tree.
> When '-o' is given, we should generate boards.cfg to the given
> output directory.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v2: None
>
>  tools/buildman/control.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

Does this preserve existing behaviour when -o is not given? I suppose
it doesn't matter so long as buildman uses the right file?

> diff --git a/tools/buildman/control.py b/tools/buildman/control.py
> index fcf531c..9787b86 100644
> --- a/tools/buildman/control.py
> +++ b/tools/buildman/control.py
> @@ -201,14 +201,14 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
>
>      # Work out what subset of the boards we are building
>      if not boards:
> -        board_file = os.path.join(options.git, 'boards.cfg')
> -        status = subprocess.call([os.path.join(options.git,
> -                                                'tools/genboardscfg.py')])
> +        board_file = os.path.join(options.output_dir, 'boards.cfg')
> +        genboardscfg = os.path.join(options.git, 'tools/genboardscfg.py')
> +        status = subprocess.call([genboardscfg, '-o', board_file])
>          if status != 0:
> -                sys.exit("Failed to generate boards.cfg")
> +            sys.exit("Failed to generate boards.cfg")
>
>          boards = board.Boards()
> -        boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
> +        boards.ReadBoards(board_file)
>
>      exclude = []
>      if options.exclude:
> --
> 2.7.4
>

Regards,
Simon

  reply	other threads:[~2019-10-29  3:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28 14:24 [U-Boot] [PATCH v2 0/5] Bring all testings in gitlab and travis CI to Azure Pipelines Bin Meng
2019-10-28 14:24 ` [U-Boot] [PATCH v2 1/5] tools: buildman: Honor output directory when generating boards.cfg Bin Meng
2019-10-29  3:32   ` Simon Glass [this message]
2019-10-29  7:11     ` Bin Meng
2019-10-30 17:03   ` Tom Rini
2019-10-28 14:25 ` [U-Boot] [PATCH v2 2/5] tools: buildman: Remove useless mkdir() in Make() in test.py Bin Meng
2019-10-29  3:37   ` Simon Glass
2019-10-29 13:56     ` Bin Meng
2019-10-30  0:03       ` Simon Glass
2019-10-30 17:03   ` Tom Rini
2019-10-28 14:25 ` [U-Boot] [PATCH v2 3/5] arm: mvebu: Avoid generating kwbimage.cfg in the source tree Bin Meng
2019-10-29  3:37   ` Simon Glass
2019-10-30 17:03   ` Tom Rini
2019-10-28 14:25 ` [U-Boot] [PATCH v2 4/5] .travis.yml: Remove the unneeded '&' for ls20xx buildman Bin Meng
2019-10-29  3:37   ` Simon Glass
2019-10-30 17:03   ` Tom Rini
2019-10-28 14:25 ` [U-Boot] [PATCH v2 5/5] Bring all testings in gitlab and travis CI to Azure Pipelines Bin Meng
2019-10-30 17:03   ` Tom Rini

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=CAPnjgZ0P56zbrgK2WQK40gD_qJXJk65jjaGi1Nkbp5CXwsrWiA@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /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.