]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: Configuration for environment with HOSTCXX
authorZhang Qiang <qiang.zhang@windriver.com>
Fri, 12 Mar 2021 14:16:18 +0000 (15:16 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 3 May 2021 14:56:23 +0000 (04:56 -1000)
commit9a14fb4aefb3a0bad1d1a98f44eaa10177737e04
tree98f877c3a1975daaf57f11186a949cb983c51d52
parent79d216817c16237a9d660fc7956bf782ff60c65a
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 <qiang.zhang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass