Commit b46da0567d3baa6783106e7463801292cdc79ddd

Authored by Sam Ravnborg
1 parent 1417ae0869

kbuild: use relative path to -I

Using a relative path has the advantage that when the kernel source
tree is moved the relevant .o files will not be rebuild just because
the path to the kernel src has changed.
This also got rid of a user of TOPDIR - which has been deprecated for a long time now.

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

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

arch/ppc/boot/lib/Makefile
... ... @@ -3,7 +3,7 @@
3 3 #
4 4  
5 5 CFLAGS_kbd.o := -Idrivers/char
6   -CFLAGS_vreset.o := -I$(srctree)/arch/ppc/boot/include
  6 +CFLAGS_vreset.o := -Iarch/ppc/boot/include
7 7  
8 8 zlib := infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c
9 9  
arch/sparc/math-emu/Makefile
... ... @@ -5,5 +5,5 @@
5 5 obj-y := math.o
6 6  
7 7 EXTRA_AFLAGS := -ansi
8   -EXTRA_CFLAGS = -I. -I$(TOPDIR)/include/math-emu -w
  8 +EXTRA_CFLAGS = -I. -Iinclude/math-emu -w
drivers/media/video/bt8xx/Makefile
... ... @@ -9,5 +9,5 @@
9 9 obj-$(CONFIG_VIDEO_BT848) += bttv.o
10 10  
11 11 EXTRA_CFLAGS += -I$(src)/..
12   -EXTRA_CFLAGS += -I$(srctree)/drivers/media/dvb/dvb-core
  12 +EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core