Skip to contentSkip to conversation

sanity.bbclass: Add libsdl-native check

PATCH New Richard Purdie 1 participant 1 message Jun 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

meta/classes/sanity.bbclass +4 -0
index 989bdcd..4b42b17 100644
@@ -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 \