summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2015-10-15 14:34:17 +0200
committerTom Rini <trini@konsulko.com>2015-11-12 13:18:58 -0500
commitbf8940d35b91ef87e0e4e691c5d8cc356fcae035 (patch)
tree5a1668056971215c558fb2b1256c7b560931adde /common/Makefile
parent1f8690aa950ad1f42a64d07c4a31e47dcf1090b7 (diff)
fastboot: Implement NAND backend
So far the fastboot code was only supporting MMC-backed devices for its flashing operations (flash and erase). Add a storage backend for NAND-backed devices. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index d986cde7b9..4c1b2f00ab 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -276,10 +276,15 @@ obj-y += memsize.o
obj-y += stdio.o
# This option is not just y/n - it can have a numeric value
-ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
+ifdef CONFIG_FASTBOOT_FLASH
obj-y += aboot.o
+ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
obj-y += fb_mmc.o
endif
+ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
+obj-y += fb_nand.o
+endif
+endif
obj-$(CONFIG_CMD_BLOB) += cmd_blob.o