From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 25 May 2018 10:03:55 +0200 Subject: [U-Boot] [PATCH v1 1/2] buildman: Extract environment as part of each build In-Reply-To: <20180525045704.21658-1-alex.kiernan@gmail.com> References: <20180525045704.21658-1-alex.kiernan@gmail.com> Message-ID: <20180525100355.1b23d9eb@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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: