Re: [PATCH] Permanently fix kernel configuration include mess (was: Missing #include <config.h>)

Andrew Morton
2005-09-14T08:40:28Z

Russell King <rmk+lkml@arm.linux.org.uk> wrote:
>
> LINUXINCLUDE := -Iinclude \
> - $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
> + $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
> + -imacros include/linux/autoconf.h

This means that over time the kernel will fail to compile correctly without
`-imacros include/linux/autoconf.h'.

That's OK for the kernel, but not for out-of-tree stuff. Those drivers
will need to add the new gcc commandline option too.

Not that I'm saying it's a terrible thing. It's just a thing.