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 57bbce21fd75ed33550f1421d2c6f6dcc97a5915..81334c2df238236dfc9284ce79fedb4f2196f0fa 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"