On 17.09.21 09:46, Peng Fan (OSS) wrote: > 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. >
Also here: 5.15+? > 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) > + Shouldn't we prepare for phasing this out at some point, i.e. indeed make these flags version-dependent? Would be a single point, no? > # Do not generate files by creating dependencies if we are cleaning up > ifeq ($(filter %/Makefile.clean,$(MAKEFILE_LIST)),) > > Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -- 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/65d5f035-decd-c602-4a53-4ce898b22cfc%40siemens.com.
