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 ARM: s3c: mark as deprecated and schedule removal 2022-04-21 15:11:40 +02:00
cpu.h ARM: s3c64xx: make bus_type const 2024-02-12 08:28:44 +01:00
cpuidle-s3c64xx.c cpuidle,arch: Mark all regular cpuidle_state:: Enter methods __cpuidle 2023-01-13 11:48:18 +01:00
crag6410.h
dev-audio-s3c64xx.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
dev-uart-s3c64xx.c ARM: s3c24xx: convert to sparse-irq 2022-04-07 09:31:31 +02:00
dev-uart.c
devs.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
devs.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
fb.h
gpio-cfg-helpers.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
gpio-cfg.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
gpio-core.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
gpio-samsung-s3c64xx.h
gpio-samsung.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
gpio-samsung.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
iic-core.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
init.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
irq-pm-s3c64xx.c
irq-uart-s3c64xx.h
irqs-s3c64xx.h ARM: s3c24xx: convert to sparse-irq 2022-04-07 09:31:31 +02:00
irqs.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
Kconfig ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
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 ARM: s3c: remove s3c6400 support 2023-01-16 09:26:05 +01:00
map-base.h ARM: s3c24xx: remove support for ISA drivers on BAST PC/104 2022-04-07 09:31:21 +02:00
map-s3c64xx.h ARM: s3c24xx: remove support for ISA drivers on BAST PC/104 2022-04-07 09:31:21 +02:00
map-s3c.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
map-s5p.h
map.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
pl080.c ARM: s3c24xx: convert to sparse-irq 2022-04-07 09:31:31 +02:00
platformdata.c
pm-common.c
pm-common.h
pm-core-s3c64xx.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
pm-core.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
pm-gpio.c
pm-s3c64xx.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
pm.c ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
pm.h ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
pwm-core.h
regs-clock-s3c64xx.h
regs-clock.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
regs-gpio-memport-s3c64xx.h
regs-gpio-s3c64xx.h
regs-gpio.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
regs-irq-s3c64xx.h
regs-irq.h ARM: s3c: remove s3c24xx specific hacks 2023-01-16 09:26:05 +01:00
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 ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
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 spi: s3c64xx: Delete unused boardfile helpers 2022-01-24 13:37:31 +00:00
setup-usb-phy-s3c64xx.c
sleep-s3c64xx.S ARM: s3c: simplify platform code 2023-01-16 09:26:05 +01:00
usb-phy.h
wakeup-mask.c
wakeup-mask.h