diff options
author | Zhang Qiang <qiang.zhang@windriver.com> | 2020-08-12 13:03:25 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-13 08:07:00 +0100 |
commit | d23cfcf72722d1a7bd0a92c3ab610c4f4fbe13c9 (patch) | |
tree | 870d11e57f1c819a54d3e8637a3ad7f5c6f3aeec /meta | |
parent | 2323531c107a6c4061bdbd46ac1bb2d98af8e1a8 (diff) | |
download | poky-d23cfcf72722d1a7bd0a92c3ab610c4f4fbe13c9.tar.gz |
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.
(From OE-Core rev: 740d87766cb87f75c477666d97cb0480c10217f4)
Signed-off-by: Zhang Qiang <qiang.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index cf43a5d604..e2ceb6a333 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -212,6 +212,8 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" | |||
212 | KERNEL_EXTRA_ARGS ?= "" | 212 | KERNEL_EXTRA_ARGS ?= "" |
213 | 213 | ||
214 | EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" | 214 | EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" |
215 | EXTRA_OEMAKE += " HOSTCXX="${BUILD_CXX} ${BUILD_CXXFLAGS} ${BUILD_LDFLAGS}"" | ||
216 | |||
215 | KERNEL_ALT_IMAGETYPE ??= "" | 217 | KERNEL_ALT_IMAGETYPE ??= "" |
216 | 218 | ||
217 | copy_initramfs() { | 219 | copy_initramfs() { |