aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
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:03 +0100
commit217fd857df78c66eae853f935e9cdafcbeb3bc31 (patch)
treedfe40da3226df0395974e50ec149dd03db1398b4 /meta/classes/sanity.bbclass
parent15e3c72bdcabf0a21efff60333323ac04908efb0 (diff)
downloadopenembedded-core-contrib-217fd857df78c66eae853f935e9cdafcbeb3bc31.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. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-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 6cad4bc6120..1c45b5baac7 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