diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-02 21:08:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-03 16:45:05 +0100 |
commit | d9d7b0515fcf47c4cf7533a12915ea92298ce834 (patch) | |
tree | 565d7f5d0da60fc3bba1151b5590a466508a22a2 /meta | |
parent | 3c5fdd10c3fe70d650469556b501055ebaecd628 (diff) | |
download | openembedded-core-d9d7b0515fcf47c4cf7533a12915ea92298ce834.tar.gz openembedded-core-d9d7b0515fcf47c4cf7533a12915ea92298ce834.tar.bz2 openembedded-core-d9d7b0515fcf47c4cf7533a12915ea92298ce834.zip |
sanity.bbclass: Add libsdl-native check
If libsdl-native is in ASSUME_PROVIDED, check for it in the sanity tests.
This warns the user if they've said its being provided but it isn't and
prevents silent build issues.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 989bdcd7cd..4b42b17145 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -550,6 +550,10 @@ def check_sanity_version_change(status, d): if not check_app_exists("qemu-arm", d): status.addresult("qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH") + if "libsdl-native" in assume_provided: + if not check_app_exists("sdl-config", d): + status.addresult("libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be found in PATH. Please either install it, or configure qemu not to require sdl.") + (result, message) = check_gcc_march(d) if result and message: status.addresult("Your gcc version is older than 4.5, please add the following param to local.conf\n \ |