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

login
register
mail settings
Submitter Randy MacLeod
Date June 11, 2013, 6:27 p.m.
Message ID <1370975254-4851-1-git-send-email-Randy.MacLeod@windriver.com>
Download mbox | patch
Permalink /patch/51559/
State Accepted
Commit ad276d7d89190c57a152867d7278ee18f784ff2c
Headers show

Comments

Randy MacLeod - June 11, 2013, 6:27 p.m.
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.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
 meta/classes/sanity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 6cad4bc..1c45b5b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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