linux/arch/arm/mach-s3c
Masahiro Yamada b1992c3772 kbuild: use $(src) instead of $(srctree)/$(src) for source directory
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>
2024-05-10 04:34:52 +09:00
..
cpu.c
cpu.h ARM: s3c64xx: make bus_type const 2024-02-12 08:28:44 +01:00
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 ARM: s3c: remove obsolete config S3C64XX_SETUP_IDE 2023-05-08 09:38:49 +02:00
keypad.h
mach-crag6410-module.c ASoC: wm8996: Convert to GPIO descriptors 2023-12-08 14:32:00 +00:00
mach-crag6410.c ASoC: wm1250-ev1: Convert to GPIO descriptors 2023-12-08 14:31:58 +00:00
mach-s3c64xx-dt.c
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00
Makefile.s3c64xx
map-base.h
map-s3c.h
map-s3c64xx.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 ARM: s3c64xx: make bus_type const 2024-02-12 08:28:44 +01:00
s3c64xx.h
s3c6410.c ARM: s3c64xx: make bus_type const 2024-02-12 08:28:44 +01:00
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