mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
2d59ec8482
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>
11 lines
369 B
Makefile
11 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
|