From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build
Date: Fri, 25 May 2018 10:03:55 +0200 [thread overview]
Message-ID: <20180525100355.1b23d9eb@jawa> (raw)
In-Reply-To: <20180525045704.21658-1-alex.kiernan@gmail.com>
Hi Alex,
> As we're building the boards, extract the default U-Boot environment
> to uboot.env so we can interrogate it later.
If applicable, you may also consider using:
scripts/get_default_envs.sh
script to extract default envs (to txt file).
>
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
>
> tools/buildman/builderthread.py | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tools/buildman/builderthread.py
> b/tools/buildman/builderthread.py index 0efe80d945..688322ced2 100644
> --- a/tools/buildman/builderthread.py
> +++ b/tools/buildman/builderthread.py
> @@ -351,6 +351,16 @@ class BuilderThread(threading.Thread):
> lines.append(size_result.stdout.splitlines()[1]
> + ' ' + rodata_size)
>
> + # Extract the environment from U-Boot and dump it out
> + cmd = ['%sobjcopy' % self.toolchain.cross, '-O',
> 'binary',
> + '-j', '.rodata.default_environment',
> + 'env/built-in.o', 'uboot.env']
> + command.RunPipe([cmd], capture=False,
> + capture_stderr=False, cwd=result.out_dir,
> + raise_on_error=False, env=env)
> + ubootenv = os.path.join(result.out_dir, 'uboot.env')
> + self.CopyFiles(result.out_dir, build_dir, '',
> ['uboot.env']) +
> # Write out the image sizes file. This is similar to the
> output # of binutil's 'size' utility, but it omits the header line and
> # adds an additional hex value at the end of each line
> for the
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180525/b11efeb7/attachment.sig>
next prev parent reply other threads:[~2018-05-25 8:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 4:57 [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build Alex Kiernan
2018-05-25 4:57 ` [U-Boot] [PATCH v1 2/2] buildman: Add support for environment delta in summary Alex Kiernan
2018-05-26 2:07 ` Simon Glass
2018-05-25 8:03 ` Lukasz Majewski [this message]
2018-05-25 8:56 ` [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build Alex Kiernan
2018-05-25 10:03 ` Alex Kiernan
2018-05-26 2:07 ` Simon Glass
2018-05-26 5:19 ` Alex Kiernan
2018-05-26 22:18 ` Simon Glass
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=20180525100355.1b23d9eb@jawa \
--to=lukma@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox