Skip to contentSkip to conversation

sanity.bbclass: non-zero status means that we need -march.

PATCH New Randy MacLeod 1 participant 1 message Jun 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sanity.bbclass: non-zero status means that we need -march.

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.

---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sanity.bbclass +1 -1
index 6cad4bc..1c45b5b 100644
@@ -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
Signature · 1 line
1.8.2.1