mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
b1992c3772
Kbuild conventionally uses $(obj)/ for generated files, and $(src)/ for checked-in source files. It is merely a convention without any functional difference. In fact, $(obj) and $(src) are exactly the same, as defined in scripts/Makefile.build: src := $(obj) When the kernel is built in a separate output directory, $(src) does not accurately reflect the source directory location. While Kbuild resolves this discrepancy by specifying VPATH=$(srctree) to search for source files, it does not cover all cases. For example, when adding a header search path for local headers, -I$(srctree)/$(src) is typically passed to the compiler. This introduces inconsistency between upstream and downstream Makefiles because $(src) is used instead of $(srctree)/$(src) for the latter. To address this inconsistency, this commit changes the semantics of $(src) so that it always points to the directory in the source tree. Going forward, the variables used in Makefiles will have the following meanings: $(obj) - directory in the object tree $(src) - directory in the source tree (changed by this commit) $(objtree) - the top of the kernel object tree $(srctree) - the top of the kernel source tree Consequently, $(srctree)/$(src) in upstream Makefiles need to be replaced with $(src). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> |
||
---|---|---|
.. | ||
cpu.c | ||
cpu.h | ||
cpuidle-s3c64xx.c | ||
crag6410.h | ||
dev-audio-s3c64xx.c | ||
dev-uart-s3c64xx.c | ||
dev-uart.c | ||
devs.c | ||
devs.h | ||
fb.h | ||
gpio-cfg-helpers.h | ||
gpio-cfg.h | ||
gpio-core.h | ||
gpio-samsung-s3c64xx.h | ||
gpio-samsung.c | ||
gpio-samsung.h | ||
iic-core.h | ||
init.c | ||
irq-pm-s3c64xx.c | ||
irq-uart-s3c64xx.h | ||
irqs-s3c64xx.h | ||
irqs.h | ||
Kconfig | ||
Kconfig.s3c64xx | ||
keypad.h | ||
mach-crag6410-module.c | ||
mach-crag6410.c | ||
mach-s3c64xx-dt.c | ||
Makefile | ||
Makefile.s3c64xx | ||
map-base.h | ||
map-s3c64xx.h | ||
map-s3c.h | ||
map-s5p.h | ||
map.h | ||
pl080.c | ||
platformdata.c | ||
pm-common.c | ||
pm-common.h | ||
pm-core-s3c64xx.h | ||
pm-core.h | ||
pm-gpio.c | ||
pm-s3c64xx.c | ||
pm.c | ||
pm.h | ||
pwm-core.h | ||
regs-clock-s3c64xx.h | ||
regs-clock.h | ||
regs-gpio-memport-s3c64xx.h | ||
regs-gpio-s3c64xx.h | ||
regs-gpio.h | ||
regs-irq-s3c64xx.h | ||
regs-irq.h | ||
regs-irqtype.h | ||
regs-modem-s3c64xx.h | ||
regs-sys-s3c64xx.h | ||
regs-syscon-power-s3c64xx.h | ||
regs-usb-hsotg-phy-s3c64xx.h | ||
s3c64xx.c | ||
s3c64xx.h | ||
s3c6410.c | ||
sdhci.h | ||
setup-fb-24bpp-s3c64xx.c | ||
setup-i2c0-s3c64xx.c | ||
setup-i2c1-s3c64xx.c | ||
setup-keypad-s3c64xx.c | ||
setup-sdhci-gpio-s3c64xx.c | ||
setup-spi-s3c64xx.c | ||
setup-usb-phy-s3c64xx.c | ||
sleep-s3c64xx.S | ||
usb-phy.h | ||
wakeup-mask.c | ||
wakeup-mask.h |