mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
native.bbclass: use BUILD_* variables
Instead of replicating the logic for the host compiler naming from bitbake.conf,
use the BUILD_* variables directly.
Also change BUILD_CPP to use gcc -E (which native.bbclass previously used), as
some recipes (e.g. grub-efi) use ${CPP} with multiple input files, which gcc -E
can handle but cpp can't.
(From OE-Core rev: 9237d18964ff0bf76f5c37fca21ab3974d81d0d2)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9f33c2858c
commit
ac638b7bd1
@@ -459,7 +459,7 @@ PYTHON = "${@sys.executable}"
|
||||
export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
|
||||
export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
|
||||
export BUILD_FC = "${CCACHE}${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
|
||||
export BUILD_CPP = "${BUILD_PREFIX}cpp ${BUILD_CC_ARCH}"
|
||||
export BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
|
||||
export BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
|
||||
export BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
|
||||
export BUILD_AR = "${BUILD_PREFIX}ar"
|
||||
|
||||
Reference in New Issue
Block a user