sanity.bbclass: non-zero status means that we need -march.
authorRandy MacLeod <Randy.MacLeod@windriver.com>
Tue, 11 Jun 2013 18:27:34 +0000 (14:27 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Jun 2013 20:46:07 +0000 (21:46 +0100)
A non-zero status from the march test for gcc means that the "march" flag
is needed. Correct the logic to return True in this case.

(From OE-Core rev: 217fd857df78c66eae853f935e9cdafcbeb3bc31)

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index 6cad4bc..1c45b5b 100644 (file)
@@ -348,7 +348,7 @@ def check_gcc_march(sanity_data):
         if status != 0:
             # Check if GCC could work with march
             status,result = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test")
-            if status == 0: 
+            if status != 0: 
                 result = True
             else:
                 result = False