mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
dcb081ba95
Compile-off mp.c and libfdt.c in case of SPL build. SPL size reduces by approx 2k. Signed-off-by: Sumit Garg <sumit.garg@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
46 lines
1,011 B
Makefile
46 lines
1,011 B
Makefile
#
|
|
# Copyright 2014-2015, Freescale Semiconductor
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y += cpu.o
|
|
obj-y += lowlevel.o
|
|
obj-y += soc.o
|
|
ifndef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_MP) += mp.o
|
|
obj-$(CONFIG_OF_LIBFDT) += fdt.o
|
|
endif
|
|
obj-$(CONFIG_SPL) += spl.o
|
|
obj-$(CONFIG_$(SPL_)FSL_LS_PPA) += ppa.o
|
|
|
|
ifneq ($(CONFIG_FSL_LSCH3),)
|
|
obj-y += fsl_lsch3_speed.o
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += fsl_lsch3_serdes.o
|
|
else
|
|
ifneq ($(CONFIG_FSL_LSCH2),)
|
|
obj-y += fsl_lsch2_speed.o
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += fsl_lsch2_serdes.o
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(CONFIG_ARCH_LS2080A),)
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls2080a_serdes.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_ARCH_LS1043A),)
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls1043a_serdes.o
|
|
obj-$(CONFIG_ARMV8_PSCI) += ls1043a_psci.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_ARCH_LS1012A),)
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls1012a_serdes.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_ARCH_LS1046A),)
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls1046a_serdes.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_ARCH_LS1088A),)
|
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls1088a_serdes.o
|
|
endif
|