mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-20 02:03:09 +00:00
6d91f0a3a1
split the file stm32mp_dfu.c in two files to simplify the Makefile - stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO - stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO. This patch also remove some remaining #ifdef CONFIG and avoid compilation error when CONFIG_SET_DFU_ALT_INFO is not activated. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
14 lines
388 B
Makefile
14 lines
388 B
Makefile
# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
#
|
|
# Copyright (C) 2020, STMicroelectronics - All Rights Reserved
|
|
#
|
|
|
|
obj-$(CONFIG_CMD_STBOARD) += cmd_stboard.o
|
|
obj-$(CONFIG_PMIC_STPMIC1) += stpmic1.o
|
|
|
|
ifeq ($(CONFIG_ARCH_STM32MP),y)
|
|
obj-$(CONFIG_SET_DFU_ALT_INFO) += stm32mp_dfu.o
|
|
obj-$(CONFIG_$(SPL_)DFU_VIRT) += stm32mp_dfu_virt.o
|
|
endif
|
|
|
|
obj-$(CONFIG_TYPEC_STUSB160X) += stusb160x.o
|