aboutsummaryrefslogtreecommitdiff
path: root/drivers/dfu
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2019-01-17 13:43:03 -0600
committerTom Rini <trini@konsulko.com>2019-01-26 08:13:55 -0500
commit2d59ec84829ff339041667c857afe94d5160f4b4 (patch)
tree1ac6f7e8bb9491f041c8f26579cac5bb6f763d4b /drivers/dfu
parent6536ca4d6676bf38e50784298e713edc30b9cde9 (diff)
downloadu-boot-2d59ec84829ff339041667c857afe94d5160f4b4.zip
u-boot-2d59ec84829ff339041667c857afe94d5160f4b4.tar.gz
u-boot-2d59ec84829ff339041667c857afe94d5160f4b4.tar.bz2
dfu: Make DFU support more SPL friendly
Do this by using $(SPL_) in Makefiles and CONFIG_IS_ENABLED in C code. This ensures the files and features are only built into the right build for which they are enabled. Using the macros to simplify this patch was made possible by the config symbol rename done in the last patch. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'drivers/dfu')
-rw-r--r--drivers/dfu/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/dfu/Makefile b/drivers/dfu/Makefile
index 56f9b0c..4164f34 100644
--- a/drivers/dfu/Makefile
+++ b/drivers/dfu/Makefile
@@ -3,9 +3,9 @@
# Copyright (C) 2012 Samsung Electronics
# Lukasz Majewski <l.majewski@samsung.com>
-obj-$(CONFIG_DFU) += dfu.o
-obj-$(CONFIG_DFU_MMC) += dfu_mmc.o
-obj-$(CONFIG_DFU_NAND) += dfu_nand.o
-obj-$(CONFIG_DFU_RAM) += dfu_ram.o
-obj-$(CONFIG_DFU_SF) += dfu_sf.o
-obj-$(CONFIG_DFU_TFTP) += dfu_tftp.o
+obj-$(CONFIG_$(SPL_)DFU) += dfu.o
+obj-$(CONFIG_$(SPL_)DFU_MMC) += dfu_mmc.o
+obj-$(CONFIG_$(SPL_)DFU_NAND) += dfu_nand.o
+obj-$(CONFIG_$(SPL_)DFU_RAM) += dfu_ram.o
+obj-$(CONFIG_$(SPL_)DFU_SF) += dfu_sf.o
+obj-$(CONFIG_$(SPL_)DFU_TFTP) += dfu_tftp.o