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)
commitd8672b40d3a6f17de5b5bc71d6e531d7576a856a
treed0792fab67fbdc54f7d3eef7339f456625ed7f52
parent5b91c33cf295d9c235f587f29a8c0a7ae15a5320
kbuild: expand -I in KBUILD_CPPFLAGS

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>
Makefile
scripts/Makefile.lib