diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-10-17 17:34:59 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-10-31 13:26:44 -0400 |
commit | 0ccf54c6f4b6d07a0c31cce3e31e27c36349cbd4 (patch) | |
tree | 471406e63e90f79ed9cb9b556772ad3d54b5e6cb /common/spl/Makefile | |
parent | 35c792754c0feb894781e1eee6ab6b6624beb309 (diff) | |
download | u-boot-imx-0ccf54c6f4b6d07a0c31cce3e31e27c36349cbd4.zip u-boot-imx-0ccf54c6f4b6d07a0c31cce3e31e27c36349cbd4.tar.gz u-boot-imx-0ccf54c6f4b6d07a0c31cce3e31e27c36349cbd4.tar.bz2 |
common: convert makefiles to Kbuild style
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'common/spl/Makefile')
-rw-r--r-- | common/spl/Makefile | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/common/spl/Makefile b/common/spl/Makefile index e8144f7..5c0637b 100644 --- a/common/spl/Makefile +++ b/common/spl/Makefile @@ -8,34 +8,12 @@ # Based on common/Makefile. # -include $(TOPDIR)/config.mk - -LIB = $(obj)libspl.o - ifdef CONFIG_SPL_BUILD -COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o -COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o -COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o -COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o -COBJS-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o -COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o -COBJS-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o +obj-$(CONFIG_SPL_FRAMEWORK) += spl.o +obj-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o +obj-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o +obj-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o +obj-$(CONFIG_SPL_ONENAND_SUPPORT) += spl_onenand.o +obj-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o +obj-$(CONFIG_SPL_MMC_SUPPORT) += spl_mmc.o endif - -COBJS := $(sort $(COBJS-y)) -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS-y)) - -all: $(obj).depend $(LIB) - -$(LIB): $(OBJS) - $(call cmd_link_o_target, $(OBJS)) - -######################################################################### - -# defines $(obj).depend target -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend - -######################################################################### |