summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 98345ce103..202b5db793 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -459,19 +459,19 @@ def check_gcc_march(sanity_data):
459 459
460 # Check if GCC could work without march 460 # Check if GCC could work without march
461 if not result: 461 if not result:
462 status,res = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc gcc_test.c -o gcc_test") 462 status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_PREFIX}gcc gcc_test.c -o gcc_test"))
463 if status == 0: 463 if status == 0:
464 result = True; 464 result = True;
465 465
466 if not result: 466 if not result:
467 status,res = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test") 467 status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test"))
468 if status == 0: 468 if status == 0:
469 message = "BUILD_CFLAGS_append = \" -march=native\"" 469 message = "BUILD_CFLAGS_append = \" -march=native\""
470 result = True; 470 result = True;
471 471
472 if not result: 472 if not result:
473 build_arch = sanity_data.getVar('BUILD_ARCH', True) 473 build_arch = sanity_data.getVar('BUILD_ARCH', True)
474 status,res = oe.utils.getstatusoutput("${BUILD_PREFIX}gcc -march=%s gcc_test.c -o gcc_test" % build_arch) 474 status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_PREFIX}gcc -march=%s gcc_test.c -o gcc_test" % build_arch))
475 if status == 0: 475 if status == 0:
476 message = "BUILD_CFLAGS_append = \" -march=%s\"" % build_arch 476 message = "BUILD_CFLAGS_append = \" -march=%s\"" % build_arch
477 result = True; 477 result = True;