diff options
author | Heiko Schocher <hs@denx.de> | 2015-04-27 07:42:05 +0200 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-06-30 00:40:11 +0530 |
commit | 09c3280754f8f68a4d7fc0ee397a92b38c4f59e4 (patch) | |
tree | 689e7996e2475d0199f9b16dc66009457dd66b6a /drivers/mtd/Makefile | |
parent | 9fe6d8716e090f3b2dd3f4604acfced124b8a2fc (diff) | |
download | talos-obmc-uboot-09c3280754f8f68a4d7fc0ee397a92b38c4f59e4.tar.gz talos-obmc-uboot-09c3280754f8f68a4d7fc0ee397a92b38c4f59e4.zip |
mtd, nand: Move common functions from cmd_nand.c to common place
Move common functions from cmd_nand.c (for calculating offset
and size from cmdline paramter) to common place, so they could
used from other commands which use mtd partitions.
For onenand the arg_off_size() is left in common/cmd_onenand.c.
It should use now the common arg_off() function, but as I could
not test onenand I let it there ...
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/mtd/Makefile')
-rw-r--r-- | drivers/mtd/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 5467a951bb..a623f4c9fa 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile @@ -5,8 +5,8 @@ # SPDX-License-Identifier: GPL-2.0+ # -ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND))) -obj-y += mtdcore.o +ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)$(CONFIG_CMD_SF))) +obj-y += mtdcore.o mtd_uboot.o endif obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o |