From: Randy MacLeod Date: Tue, 11 Jun 2013 18:27:34 +0000 (-0400) Subject: sanity.bbclass: non-zero status means that we need -march. X-Git-Tag: rev_ivi_2015_02_04~12207 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01215e66c61c3fbaac25d112cddb214e48a1e954;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Richard Purdie --- 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