summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2014-11-21 23:51:33 +0100
committerTom Rini <trini@ti.com>2014-12-08 09:35:45 -0500
commite19db555b4ac79dafa04cc5ff98bdbff01e19388 (patch)
tree37b107cf8d2a3e6f25c07cd481a0868ecd9e391c /arch/sh
parenteb8a4fe0dc5db5f586ae26d04aa132c76535b27c (diff)
downloadu-boot-e19db555b4ac79dafa04cc5ff98bdbff01e19388.tar.gz
u-boot-e19db555b4ac79dafa04cc5ff98bdbff01e19388.tar.bz2
u-boot-e19db555b4ac79dafa04cc5ff98bdbff01e19388.zip
Kbuild: introduce Makefile in arch/$ARCH/
Introduce a Makefile under arch/$ARCH/ and include it in the top Makefile (similar to Linux kernel). This allows further refactoringi like moving architecture-specific code out of global makefiles, deprecating config variables (CPU, CPUDIR, SOC) or deprecating arch/$ARCH/config.mk. In contrary to Linux kernel, U-Boot defines the ARCH variable by Kconfig, thus the arch Makefile can only included conditionally after the top config.mk. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
new file mode 100644
index 0000000000..ca55fac920
--- /dev/null
+++ b/arch/sh/Makefile
@@ -0,0 +1,8 @@
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+head-y := arch/sh/cpu/$(CPU)/start.o
+
+libs-y += arch/sh/cpu/$(CPU)/
+libs-y += arch/sh/lib/