From: Zhang Qiang Date: Fri, 12 Mar 2021 14:16:18 +0000 (+0100) Subject: kernel.bbclass: Configuration for environment with HOSTCXX X-Git-Tag: 2020-04.8-dunfell~67 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9a14fb4aefb3a0bad1d1a98f44eaa10177737e04;p=openembedded-core.git kernel.bbclass: Configuration for environment with HOSTCXX When compiling xilinx-zynq board linux-kernel-dev(v5.8) if "GCC_PLUGINS=y", The following error will appear: "HOSTCXX -fPIC scripts/gcc-plugins/arm_ssp_per_task_plugin.o fatal error: gmp.h: No such file or directory" the GCC_PLUGINS depend on return result of gcc-plugin.sh execution however in gcc-plugin.sh use HOSTCC to detect the feature of GNU extension of gcc, this will result that HOSTCC can compile the file successfully, but HOSTCXX is used in the actual compilation process. Signed-off-by: Zhang Qiang Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie Cc: Armin Kuster Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 83a574efcd..22b1224d79 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -194,6 +194,8 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" KERNEL_EXTRA_ARGS ?= "" EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" +EXTRA_OEMAKE += " HOSTCXX="${BUILD_CXX} ${BUILD_CXXFLAGS} ${BUILD_LDFLAGS}"" + KERNEL_ALT_IMAGETYPE ??= "" copy_initramfs() {