diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2014-11-21 23:51:33 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-08 09:35:45 -0500 |
commit | e19db555b4ac79dafa04cc5ff98bdbff01e19388 (patch) | |
tree | 37b107cf8d2a3e6f25c07cd481a0868ecd9e391c /arch/x86 | |
parent | eb8a4fe0dc5db5f586ae26d04aa132c76535b27c (diff) | |
download | u-boot-imx-e19db555b4ac79dafa04cc5ff98bdbff01e19388.zip u-boot-imx-e19db555b4ac79dafa04cc5ff98bdbff01e19388.tar.gz u-boot-imx-e19db555b4ac79dafa04cc5ff98bdbff01e19388.tar.bz2 |
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/x86')
-rw-r--r-- | arch/x86/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile new file mode 100644 index 0000000..36a6018 --- /dev/null +++ b/arch/x86/Makefile @@ -0,0 +1,12 @@ +# +# SPDX-License-Identifier: GPL-2.0+ +# + +head-y := arch/x86/cpu/start.o +ifeq ($(CONFIG_SPL_BUILD),y) +head-y += arch/x86/cpu/start16.o +head-y += arch/x86/cpu/resetvec.o +endif + +libs-y += arch/x86/cpu/ +libs-y += arch/x86/lib/ |