[oe-commits] Randy MacLeod : sanity.bbclass: non-zero status means that we need -march.
git at git.openembedded.org
git at git.openembedded.org
Tue Jun 11 20:39:41 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 217fd857df78c66eae853f935e9cdafcbeb3bc31
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=217fd857df78c66eae853f935e9cdafcbeb3bc31
Author: Randy MacLeod <Randy.MacLeod at windriver.com>
Date: Tue Jun 11 14:27:34 2013 -0400
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sanity.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
More information about the Openembedded-commits
mailing list