mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
kernel-yocto: improve fatal error messages of symbol_why.py
Improve the fatal error message of the yocto-kernel-tools symbol_why.py and shows the command that generate the error as it can help understand the root cause of the error. (From OE-Core rev: 97cb48ce09d80e5496e4f887a8cf02125c66c6c5) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 54ae08779071f2e97bff0ff6514ede3124312c3b) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0771c25330
commit
d18ec217b3
@@ -506,7 +506,7 @@ python do_config_analysis() {
|
||||
try:
|
||||
analysis = subprocess.check_output(['symbol_why.py', '--dotconfig', '{}'.format( d.getVar('B') + '/.config' ), '--blame', c], cwd=s, env=env ).decode('utf-8')
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal( "config analysis failed: %s" % e.output.decode('utf-8'))
|
||||
bb.fatal( "config analysis failed when running '%s': %s" % (" ".join(e.cmd), e.output.decode('utf-8')))
|
||||
|
||||
outfile = d.getVar( 'CONFIG_ANALYSIS_FILE' )
|
||||
|
||||
@@ -514,7 +514,7 @@ python do_config_analysis() {
|
||||
try:
|
||||
analysis = subprocess.check_output(['symbol_why.py', '--dotconfig', '{}'.format( d.getVar('B') + '/.config' ), '--summary', '--extended', '--sanity', c], cwd=s, env=env ).decode('utf-8')
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal( "config analysis failed: %s" % e.output.decode('utf-8'))
|
||||
bb.fatal( "config analysis failed when running '%s': %s" % (" ".join(e.cmd), e.output.decode('utf-8')))
|
||||
|
||||
outfile = d.getVar( 'CONFIG_AUDIT_FILE' )
|
||||
|
||||
@@ -575,7 +575,7 @@ python do_kernel_configcheck() {
|
||||
try:
|
||||
analysis = subprocess.check_output(['symbol_why.py', '--dotconfig', '{}'.format( d.getVar('B') + '/.config' ), '--mismatches', extra_params], cwd=s, env=env ).decode('utf-8')
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal( "config analysis failed: %s" % e.output.decode('utf-8'))
|
||||
bb.fatal( "config analysis failed when running '%s': %s" % (" ".join(e.cmd), e.output.decode('utf-8')))
|
||||
|
||||
if analysis:
|
||||
outfile = "{}/{}/cfg/mismatch.txt".format( s, kmeta )
|
||||
@@ -597,7 +597,7 @@ python do_kernel_configcheck() {
|
||||
try:
|
||||
analysis = subprocess.check_output(['symbol_why.py', '--dotconfig', '{}'.format( d.getVar('B') + '/.config' ), '--invalid', extra_params], cwd=s, env=env ).decode('utf-8')
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal( "config analysis failed: %s" % e.output.decode('utf-8'))
|
||||
bb.fatal( "config analysis failed when running '%s': %s" % (" ".join(e.cmd), e.output.decode('utf-8')))
|
||||
|
||||
if analysis:
|
||||
outfile = "{}/{}/cfg/invalid.txt".format(s,kmeta)
|
||||
@@ -616,7 +616,7 @@ python do_kernel_configcheck() {
|
||||
try:
|
||||
analysis = subprocess.check_output(['symbol_why.py', '--dotconfig', '{}'.format( d.getVar('B') + '/.config' ), '--sanity'], cwd=s, env=env ).decode('utf-8')
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.fatal( "config analysis failed: %s" % e.output.decode('utf-8'))
|
||||
bb.fatal( "config analysis failed when running '%s': %s" % (" ".join(e.cmd), e.output.decode('utf-8')))
|
||||
|
||||
if analysis:
|
||||
outfile = "{}/{}/cfg/redefinition.txt".format(s,kmeta)
|
||||
|
||||
Reference in New Issue
Block a user