mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-28 21:09:00 +09:00
![Andrew F. Davis](/assets/img/avatar_default.png)
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>
12 lines
369 B
Makefile
12 lines
369 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2012 Samsung Electronics
|
|
# Lukasz Majewski <l.majewski@samsung.com>
|
|
|
|
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
|