dfu: Make DFU support more SPL friendly
authorAndrew F. Davis <afd@ti.com>
Thu, 17 Jan 2019 19:43:03 +0000 (13:43 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 26 Jan 2019 13:13:55 +0000 (08:13 -0500)
commit2d59ec84829ff339041667c857afe94d5160f4b4
tree1ac6f7e8bb9491f041c8f26579cac5bb6f763d4b
parent6536ca4d6676bf38e50784298e713edc30b9cde9
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>
drivers/Makefile
drivers/dfu/Makefile
include/dfu.h