From: Randy Dunlap Change all -I$(srctree) in Makefiles to -I$(objtree). New (full) patch file with only that change is below. Signed-off-by: Randy Dunlap Cc: Sam Ravnborg Signed-off-by: Andrew Morton --- Documentation/accounting/Makefile | 2 +- Documentation/auxdisplay/Makefile | 2 +- Documentation/connector/Makefile | 2 +- Documentation/pcmcia/Makefile | 2 +- Documentation/spi/Makefile | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff -puN Documentation/accounting/Makefile~documentation-build-source-files-in-documentation-sub-dir-update Documentation/accounting/Makefile --- a/Documentation/accounting/Makefile~documentation-build-source-files-in-documentation-sub-dir-update +++ a/Documentation/accounting/Makefile @@ -7,4 +7,4 @@ hostprogs-y := getdelays # Tell kbuild to always build the programs always := $(hostprogs-y) -HOSTCFLAGS_getdelays.o += -I$(srctree)/usr/include +HOSTCFLAGS_getdelays.o += -I$(objtree)/usr/include diff -puN Documentation/auxdisplay/Makefile~documentation-build-source-files-in-documentation-sub-dir-update Documentation/auxdisplay/Makefile --- a/Documentation/auxdisplay/Makefile~documentation-build-source-files-in-documentation-sub-dir-update +++ a/Documentation/auxdisplay/Makefile @@ -7,4 +7,4 @@ hostprogs-y := cfag12864b-example # Tell kbuild to always build the programs always := $(hostprogs-y) -HOSTCFLAGS_cfag12864b-example.o += -I$(srctree)/usr/include +HOSTCFLAGS_cfag12864b-example.o += -I$(objtree)/usr/include diff -puN Documentation/connector/Makefile~documentation-build-source-files-in-documentation-sub-dir-update Documentation/connector/Makefile --- a/Documentation/connector/Makefile~documentation-build-source-files-in-documentation-sub-dir-update +++ a/Documentation/connector/Makefile @@ -6,4 +6,4 @@ hostprogs-y := ucon # Tell kbuild to always build the programs always := $(hostprogs-y) -HOSTCFLAGS_ucon.o += -I$(srctree)/usr/include +HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include diff -puN Documentation/pcmcia/Makefile~documentation-build-source-files-in-documentation-sub-dir-update Documentation/pcmcia/Makefile --- a/Documentation/pcmcia/Makefile~documentation-build-source-files-in-documentation-sub-dir-update +++ a/Documentation/pcmcia/Makefile @@ -7,4 +7,4 @@ hostprogs-y := crc32hash # Tell kbuild to always build the programs always := $(hostprogs-y) -HOSTCFLAGS_crc32hash.o += -I$(srctree)/usr/include +HOSTCFLAGS_crc32hash.o += -I$(objtree)/usr/include diff -puN Documentation/spi/Makefile~documentation-build-source-files-in-documentation-sub-dir-update Documentation/spi/Makefile --- a/Documentation/spi/Makefile~documentation-build-source-files-in-documentation-sub-dir-update +++ a/Documentation/spi/Makefile @@ -7,5 +7,5 @@ hostprogs-y := spidev_test spidev_fdx # Tell kbuild to always build the programs always := $(hostprogs-y) -HOSTCFLAGS_spidev_test.o += -I$(srctree)/usr/include -HOSTCFLAGS_spidev_fdx.o += -I$(srctree)/usr/include +HOSTCFLAGS_spidev_test.o += -I$(objtree)/usr/include +HOSTCFLAGS_spidev_fdx.o += -I$(objtree)/usr/include _