Patch kernel.py to prevent a crash from yocto-bsp
Hello there,
I found that 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.
First time I use mailing lists, I hope I did everything right! :)
From b962a11f17ab213ae311828a5d4bdd5a787fbb7e Mon Sep 17 00:00:00 2001
From: Bastien JAUNY <[email protected]>
Date: Wed, 13 Nov 2013 18:51:43 +0100
Subject: [PATCH] Fix an error message in python bsp script, preventing a
crash with a python error in case of a misconfiguration.
--- 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)
Signature · 1 line
1.7.10.4
Quoted 7 lines · Bastien JAUNY
Hello there,
I found that 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.
First time I use mailing lists, I hope I did everything right! :)
Hi,
Thanks for your patch, it looks like it will fix the problem.
Just a couple things, though, if you wouldn't mind resubmitting:
- please don't submit patches as attachments, but rather submit them in-line i.e. use 'insert as text' in your mailer, for example, rather than 'as attachment'.
- please include the text explaining the problem and fix in the commit message e.g. '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'
- please preface the subject with the component and a short one-line description e.g. instead of:
'Fix an error message in python bsp script, preventing a crash with a python error in case of a misconfiguration.'
something more like:
'yocto-bsp: Add missing format specifier in bblayers error message'
Thanks,
Tom
Quoted 4 lines
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Quoted 30 lines · Tom Zanussi
Quoted 7 lines · Bastien JAUNY
Hello there,
I found that 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.
First time I use mailing lists, I hope I did everything right! :)
Hi,
Thanks for your patch, it looks like it will fix the problem.
Just a couple things, though, if you wouldn't mind resubmitting:
- please don't submit patches as attachments, but rather submit them in-line i.e. use 'insert as text' in your mailer, for example, rather than 'as attachment'.
- please include the text explaining the problem and fix in the commit message e.g. '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'
- please preface the subject with the component and a short one-line description e.g. instead of:
'Fix an error message in python bsp script, preventing a crash with a python error in case of a misconfiguration.'
Quoted 14 lines
something more like:
'yocto-bsp: Add missing format specifier in bblayers error message'
Thanks,
Tom
Quoted 4 lines
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
No problem, thanks a lot for your input Tom!
Regards,
Bastien