2017-12-25 20:54:35 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2009-11-10 00:14:58 +00:00
|
|
|
#
|
|
|
|
# Copyright 2009 Simtec Electronics
|
|
|
|
|
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-04-27 23:55:02 +09:00
|
|
|
include $(src)/Makefile.s3c64xx
|
2019-09-02 17:47:55 +02:00
|
|
|
|
2009-12-23 18:43:48 +00:00
|
|
|
# Objects we always build independent of SoC choice
|
|
|
|
|
2011-08-20 12:18:07 +09:00
|
|
|
obj-y += init.o cpu.o
|
2012-04-17 11:20:49 -07:00
|
|
|
|
2010-01-06 02:45:09 +09:00
|
|
|
# devices
|
|
|
|
|
2013-06-15 09:01:49 +09:00
|
|
|
obj-$(CONFIG_SAMSUNG_ATAGS) += platformdata.o
|
|
|
|
obj-$(CONFIG_SAMSUNG_ATAGS) += devs.o
|
|
|
|
obj-$(CONFIG_SAMSUNG_ATAGS) += dev-uart.o
|
2011-10-03 09:47:58 +09:00
|
|
|
|
2015-02-27 21:54:18 +01:00
|
|
|
obj-$(CONFIG_GPIO_SAMSUNG) += gpio-samsung.o
|
|
|
|
|
2010-01-18 10:47:45 +09:00
|
|
|
# PM support
|
2013-04-26 11:32:02 -07:00
|
|
|
|
2020-08-06 20:20:34 +02:00
|
|
|
obj-$(CONFIG_SAMSUNG_PM) += pm.o pm-common.o
|
2013-06-19 01:24:12 +09:00
|
|
|
obj-$(CONFIG_SAMSUNG_PM_GPIO) += pm-gpio.o
|
2010-05-20 14:05:33 +09:00
|
|
|
obj-$(CONFIG_SAMSUNG_WAKEMASK) += wakeup-mask.o
|