diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2013-10-17 17:34:55 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-10-31 13:22:13 -0400 |
commit | 2fc7ef6196d955f3a708ff60d0e549fb0ff6e431 (patch) | |
tree | 6217da344e1e57d823907399441e2956373a01b5 /drivers/mtd/onenand | |
parent | e32459e24aa9f7778b9394c94bd4af2b6524b3a0 (diff) | |
download | u-boot-2fc7ef6196d955f3a708ff60d0e549fb0ff6e431.zip u-boot-2fc7ef6196d955f3a708ff60d0e549fb0ff6e431.tar.gz u-boot-2fc7ef6196d955f3a708ff60d0e549fb0ff6e431.tar.bz2 |
drivers: mtd: convert makefiles to Kbuild style
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/Makefile | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/drivers/mtd/onenand/Makefile b/drivers/mtd/onenand/Makefile index 993d317..b249348 100644 --- a/drivers/mtd/onenand/Makefile +++ b/drivers/mtd/onenand/Makefile @@ -5,30 +5,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -include $(TOPDIR)/config.mk - -LIB := $(obj)libonenand.o - ifndef CONFIG_SPL_BUILD -COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o -COBJS-$(CONFIG_SAMSUNG_ONENAND) += samsung.o +obj-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o +obj-$(CONFIG_SAMSUNG_ONENAND) += samsung.o else -COBJS-y := onenand_spl.o +obj-y := onenand_spl.o endif - -COBJS := $(COBJS-y) -SRCS := $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS)) - -all: $(LIB) - -$(LIB): $(obj).depend $(OBJS) - $(call cmd_link_o_target, $(OBJS)) - -######################################################################### - -include $(SRCTREE)/rules.mk - -sinclude $(obj).depend - -######################################################################### |