Re: [linux-yocto] [linux-yocto-dev] [oe-core] [PATCH v2] kernel.bbclass: Configuration for environment with HOSTCXX

2020-08-13 Thread Bruce Ashfield
On Thu, Aug 13, 2020 at 2:03 AM Zhang, Qiang 
wrote:

> Hi Bruce.
>
> please merge
>

It's in the pull request that I sent to the oe core mailing list yesterday.
So once it passes sanity there, Richard will merge it.

Bruce



>
> 
> 发件人: linux-yocto@lists.yoctoproject.org <
> linux-yocto@lists.yoctoproject.org> 代表 Zhang, Qiang <
> qiang.zh...@windriver.com>
> 发送时间: 2020年8月10日 15:29
> 收件人: bruce.ashfi...@gmail.com
> 抄送: linux-yocto@lists.yoctoproject.org
> 主题: [linux-yocto] [linux-yocto-dev] [oe-core] [PATCH v2] kernel.bbclass:
> Configuration for environment with HOSTCXX
>
> From: Zhang Qiang 
>
> 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 
> ---
>  v1->v2:
>  Remove variable "HOSTCPP" multiple assignments.
>
>  meta/classes/kernel.bbclass | 2 ++
>  1 file changed, 2 insertions(+)
>
> 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}"
>  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() {
> --
> 2.26.2
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8952): 
https://lists.yoctoproject.org/g/linux-yocto/message/8952
Mute This Topic: https://lists.yoctoproject.org/mt/76167309/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


回复: [linux-yocto] [linux-yocto-dev] [oe-core] [PATCH v2] kernel.bbclass: Configuration for environment with HOSTCXX

2020-08-13 Thread Zhang, Qiang
Hi Bruce.

please merge


发件人: linux-yocto@lists.yoctoproject.org  代表 
Zhang, Qiang 
发送时间: 2020年8月10日 15:29
收件人: bruce.ashfi...@gmail.com
抄送: linux-yocto@lists.yoctoproject.org
主题: [linux-yocto] [linux-yocto-dev] [oe-core] [PATCH v2] kernel.bbclass: 
Configuration for environment with HOSTCXX

From: Zhang Qiang 

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 
---
 v1->v2:
 Remove variable "HOSTCPP" multiple assignments.

 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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}"
 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() {
--
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8951): 
https://lists.yoctoproject.org/g/linux-yocto/message/8951
Mute This Topic: https://lists.yoctoproject.org/mt/76162888/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [linux-yocto-dev] [oe-core] [PATCH v2] kernel.bbclass: Configuration for environment with HOSTCXX

2020-08-10 Thread Zhang, Qiang
From: Zhang Qiang 

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 
---
 v1->v2:
 Remove variable "HOSTCPP" multiple assignments.

 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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}"
 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() {
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8945): 
https://lists.yoctoproject.org/g/linux-yocto/message/8945
Mute This Topic: https://lists.yoctoproject.org/mt/76100157/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-