diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-04-11 11:03:47 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-05-17 04:07:13 -1000 |
commit | da27e5f5700f42748eda3376ba0fc29f6db77b91 (patch) | |
tree | b977077c8ef293bab7afb9d06c5dcaaa27c2d7bd /meta-poky | |
parent | 2c49e1c152da0e2d632d61b35e03d87ac9627b0e (diff) | |
download | poky-da27e5f5700f42748eda3376ba0fc29f6db77b91.tar.gz |
populate_sdk_ext.bbclass: redirect stderr to stdout so that both end in LOGFILE
* this in the end doesn't help much, I was debugging warning (about base-files.do_install
signature being different than expected) from:
python3 $target_sdk_dir/ext-sdk-prepare.py $LOGFILE '${SDK_INSTALL_TARGETS}'
this shows the warning on console, but it doesn't end in $LOGFILE, because it
writes only contents of cooker log into the $LOGFILE with:
with open(logfile, 'a') as logf:
logf.write('Preparing SDK for %s...\n' % ', '.join(sdk_targets))
ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets))
if not ret:
ret = run_command_interruptible('bitbake --quiet build-sysroots')
lastlog = get_last_consolelog()
if lastlog:
with open(lastlog, 'r') as f:
for line in f:
logf.write(line)
if ret:
print('ERROR: SDK preparation failed: error log written to %s' % logfile)
return ret
maybe we could remove whole support for $LOGFILE parameter and just redirect
the output like other commands on this line
(From OE-Core rev: 766c6f7ae72576cfab3654362ae949688f42acce)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit 719f22df160ebde303274ccfc04049cffdb51577)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta-poky')
0 files changed, 0 insertions, 0 deletions