kbuild: expand -I in KBUILD_CPPFLAGS
authorSam Ravnborg <sam@ravnborg.org>
Fri, 21 Nov 2008 20:50:02 +0000 (21:50 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 3 Dec 2008 20:31:59 +0000 (21:31 +0100)
kbuild failed to expand include flags in KBUILD_CPPFLAGS
resulting in code like this in arch Makefiles:

ifeq ($(KBUILD_SRC),)
KBUILD_CPPFLAGS += -Iinclude/foo
else
KBUILD_CPPFLAGS += -I$(srctree)/include/foo
endif

Move use of LINUXINCLUDE into Makefile.lib to allow
us to expand -I directives of KBUILD_CPPFLAGS so
we can avoid the above code.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

No differences found