bitbake: cooker: Ensure parsing failures stop the build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Aug 2012 19:33:39 +0000 (20:33 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2012 08:22:43 +0000 (09:22 +0100)
commit6345fb15f4c026a13d79262e3c6311ba77ddee3d
treea8de406f4f950802530c3fb08086fcec5844d5cc
parent80cdcd1c53b411cab45b26485e156bf958eae16a
bitbake: cooker: Ensure parsing failures stop the build

Currently parsing failures still allow bitbake to continue on and try
and execute a build. This is clearly a bad idea and this patch adds in
more correct error handling and stops the build.

The use of sys.exit is nasty but this patches other usage in this function
so is at least consisent and its better than the current situation of
trying to execure a half parsed set of recipes. There are probably better
ways this could be improved to use to stop the build.

(Bitbake rev: 22756e9c0f1da33ba2c6e881b214577a610b7986)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py