diff options
-rw-r--r-- | meta/classes/sanity.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 202b5db793..f17e2d4cd0 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(sanity_data.expand("${BUILD_PREFIX}gcc gcc_test.c -o gcc_test")) | 462 | status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_CC} 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(sanity_data.expand("${BUILD_PREFIX}gcc -march=native gcc_test.c -o gcc_test")) | 467 | status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_CC} -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(sanity_data.expand("${BUILD_PREFIX}gcc -march=%s gcc_test.c -o gcc_test" % build_arch)) | 474 | status,res = oe.utils.getstatusoutput(sanity_data.expand("${BUILD_CC} -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; |
@@ -673,11 +673,11 @@ def check_sanity_version_change(status, d): | |||
673 | if not check_app_exists("${MAKE}", d): | 673 | if not check_app_exists("${MAKE}", d): |
674 | missing = missing + "GNU make," | 674 | missing = missing + "GNU make," |
675 | 675 | ||
676 | if not check_app_exists('${BUILD_PREFIX}gcc', d): | 676 | if not check_app_exists('${BUILD_CC}', d): |
677 | missing = missing + "C Compiler (%sgcc)," % d.getVar("BUILD_PREFIX", True) | 677 | missing = missing + "C Compiler (%s)," % d.getVar("BUILD_CC", True) |
678 | 678 | ||
679 | if not check_app_exists('${BUILD_PREFIX}g++', d): | 679 | if not check_app_exists('${BUILD_CXX}', d): |
680 | missing = missing + "C++ Compiler (%sg++)," % d.getVar("BUILD_PREFIX", True) | 680 | missing = missing + "C++ Compiler (%s)," % d.getVar("BUILD_CXX", True) |
681 | 681 | ||
682 | required_utilities = d.getVar('SANITY_REQUIRED_UTILITIES', True) | 682 | required_utilities = d.getVar('SANITY_REQUIRED_UTILITIES', True) |
683 | 683 | ||