summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy MacLeod <Randy.MacLeod@windriver.com>2013-06-11 14:27:34 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-11 21:46:07 +0100
commitad276d7d89190c57a152867d7278ee18f784ff2c (patch)
treed9c96aec42058e7bbb420cc653140eb6c28999fe
parent8c8483dc98b2715e2963658be91ffe5775758bc0 (diff)
downloadpoky-ad276d7d89190c57a152867d7278ee18f784ff2c.tar.gz
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. (From OE-Core rev: 217fd857df78c66eae853f935e9cdafcbeb3bc31) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 6cad4bc612..1c45b5baac 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -348,7 +348,7 @@ def check_gcc_march(sanity_data):
348 if status != 0: 348 if status != 0:
349 # Check if GCC could work with march 349 # Check if GCC could work with march
350 status,result = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test") 350 status,result = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test")
351 if status == 0: 351 if status != 0:
352 result = True 352 result = True
353 else: 353 else:
354 result = False 354 result = False