yocto-bsp: Add missing format specifier in bblayers error message
PATCH 1/1 yocto-bsp: Add missing format specifier in bblayers error message
If the build environment is misconfigured (e.g. a bad path for a layer in bblayers.conf) the yocto-bsp script crashes with a standard python error, not very explicit. This fixes the problem.
Signed-off-by Bastien JAUNY <[email protected]>
--- scripts/lib/bsp/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/bsp/kernel.py +0 -1
@@ -62,7 +62,7 @@ def find_bblayers(): break if not bblayers: - print "Couldn't find BBLAYERS in 'bitbake -e' output, exiting."
% \
+ print "Couldn't find BBLAYERS in %s output, exiting." % \
bitbake_env_cmd
sys.exit(1)Signature · 1 line
1.7.10.4
Quoted 6 lines · Bastien JAUNY
If the build environment is misconfigured (e.g. a bad path for a layer in bblayers.conf) the yocto-bsp script crashes with a standard python error, not very explicit. This fixes the problem.
Signed-off-by Bastien JAUNY <[email protected]>
Acked-by Tom Zanussi <[email protected]>
Quoted 18 lines
--- scripts/lib/bsp/kernel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/lib/bsp/kernel.py +1
-1@@ -62,7 +62,7 @@ def find_bblayers(): break if not bblayers: - print "Couldn't find BBLAYERS in 'bitbake -e' output, exiting." % \ + print "Couldn't find BBLAYERS in %s output, exiting." % \ bitbake_env_cmd sys.exit(1)