From 217fd857df78c66eae853f935e9cdafcbeb3bc31 Mon Sep 17 00:00:00 2001 From: Randy MacLeod Date: Tue, 11 Jun 2013 14:27:34 -0400 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/sanity.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes') 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): 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 -- cgit 1.2.3-korg