diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-11-28 12:09:59 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-12-16 08:59:42 -0500 |
commit | e8a8b8246a5e7dee9db19b14b31039389ccf99af (patch) | |
tree | 37cc7a667f5daf371a6df2a8636da4b9c27b2e81 /spl/Makefile | |
parent | 6bb6049bf2ecde91b62a4b3d55fa6ee8ed61520e (diff) | |
download | u-boot-imx-e8a8b8246a5e7dee9db19b14b31039389ccf99af.zip u-boot-imx-e8a8b8246a5e7dee9db19b14b31039389ccf99af.tar.gz u-boot-imx-e8a8b8246a5e7dee9db19b14b31039389ccf99af.tar.bz2 |
Makefile: Select objects by CONFIG_ rather than $(ARCH) or $(CPU)
Convert like follows:
CPU mpc83xx -> CONFIG_MPC83xx
CPU mpc85xx -> CONFIG_MPC85xx
CPU mpc86xx -> CONFIG_MPC86xx
CPU mpc5xxx -> CONFIG_MPC5xxx
CPU mpc8xx -> CONFIG_8xx
CPU mpc8260 -> CONFIG_8260
CPU ppc4xx -> CONFIG_4xx
CPU x86 -> CONFIG_X86
ARCH x86 -> CONFIG_X86
ARCH powerpc -> CONFIG_PPC
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r-- | spl/Makefile | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/spl/Makefile b/spl/Makefile index ec09831..1e88d74 100644 --- a/spl/Makefile +++ b/spl/Makefile @@ -42,17 +42,10 @@ else START_PATH := $(CPUDIR) endif -START := $(START_PATH)/start.o -ifeq ($(CPU),x86) -START += $(START_PATH)/start16.o -START += $(START_PATH)/resetvec.o -endif -ifeq ($(CPU),ppc4xx) -START += $(START_PATH)/resetvec.o -endif -ifeq ($(CPU),mpc85xx) -START += $(START_PATH)/resetvec.o -endif +head-y := $(START_PATH)/start.o +head-$(CONFIG_X86) += $(START_PATH)/start16.o $(START_PATH)/resetvec.o +head-$(CONFIG_4xx) += $(START_PATH)/resetvec.o +head-$(CONFIG_MPC85xx) += $(START_PATH)/resetvec.o LIBS-y += arch/$(ARCH)/lib/ @@ -105,7 +98,7 @@ PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/libgcc.o PLATFORM_LIBS := $(filter-out %/libgcc.o, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC) endif -START := $(addprefix $(SPLTREE)/,$(START)) +START := $(addprefix $(SPLTREE)/,$(head-y)) LIBS := $(addprefix $(SPLTREE)/,$(sort $(LIBS-y))) __START := $(subst $(obj),,$(START)) |