From e444392715cde9db8aad9d3cb4563355961167de Mon Sep 17 00:00:00 2001 From: Stefan Schmidt <stefan.schmidt@huawei.com> Date: Mon, 29 Mar 2021 15:38:35 +0200 Subject: [PATCH] linux-yocto-all: add sysroot native include path for gcc plugin build For qemuarm builds we have seen the case that ths gcc plugins build inside the linux kernel has been failing on missing header files gmp.h, mcp.h and others. The native dependencies have been available, but the kernel Makefile did not have the correct include path for the headers. Neither poky dunfell nor master has this problem. No upstreaming needed. Closes: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/merge_requests/93 Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> --- meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc b/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc index 57bbce21..81334c2d 100644 --- a/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc +++ b/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc @@ -5,3 +5,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" SRC_URI += "file://misc.cfg" + +# For the gcc-plugins build of the kernel we need to ensure the right include +# path for headers is picked up to use the natively build dependencies. +export HOSTCXXFLAGS = " -I${RECIPE_SYSROOT_NATIVE}/usr/include" -- GitLab