From: Peng Fan <[email protected]>

Linux Kernel has shipped a in-house stdarg.h under include/linux/
and drop using the header files with -isystem.

However jailhouse need to support multiple kernel versions, instead
to add Kernel version check in various source files, update to still
use toolchain stdarg.h with -isystem option.

Signed-off-by: Peng Fan <[email protected]>
---
 Kbuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Kbuild b/Kbuild
index 2863c121..fecf61f7 100644
--- a/Kbuild
+++ b/Kbuild
@@ -58,6 +58,8 @@ subdir-y := hypervisor configs inmates tools
 
 obj-m := driver/
 
+NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+
 # Do not generate files by creating dependencies if we are cleaning up
 ifeq ($(filter %/Makefile.clean,$(MAKEFILE_LIST)),)
 
-- 
2.25.1

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20210917074630.2585329-2-peng.fan%40oss.nxp.com.

Reply via email to