xref: /openbmc/u-boot/board/freescale/common/Makefile (revision cbd2fba1)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6MINIMAL=
7
8ifdef CONFIG_SPL_BUILD
9ifdef CONFIG_SPL_INIT_MINIMAL
10MINIMAL=y
11endif
12endif
13
14ifdef MINIMAL
15# necessary to create built-in.o
16obj- := __dummy__.o
17else
18obj-$(CONFIG_FSL_CADMUS)	+= cadmus.o
19obj-$(CONFIG_FSL_VIA)		+= cds_via.o
20obj-$(CONFIG_FMAN_ENET)	+= fman.o
21obj-$(CONFIG_FSL_PIXIS)	+= pixis.o
22ifndef CONFIG_SPL_BUILD
23obj-$(CONFIG_FSL_NGPIXIS)	+= ngpixis.o
24endif
25obj-$(CONFIG_VID)		+= vid.o
26obj-$(CONFIG_FSL_QIXIS)	+= qixis.o
27obj-$(CONFIG_PQ_MDS_PIB)	+= pq-mds-pib.o
28ifndef CONFIG_SPL_BUILD
29obj-$(CONFIG_ID_EEPROM)	+= sys_eeprom.o
30endif
31obj-$(CONFIG_FSL_SGMII_RISER)	+= sgmii_riser.o
32ifndef CONFIG_RAMBOOT_PBL
33obj-$(CONFIG_FSL_FIXED_MMC_LOCATION)	+= sdhc_boot.o
34endif
35
36obj-$(CONFIG_FSL_DIU_CH7301)	+= diu_ch7301.o
37
38ifdef CONFIG_ARM
39obj-$(CONFIG_DEEP_SLEEP)		+= arm_sleep.o
40else
41obj-$(CONFIG_DEEP_SLEEP)		+= mpc85xx_sleep.o
42endif
43
44obj-$(CONFIG_FSL_DCU_SII9022A)    += dcu_sii9022a.o
45
46obj-$(CONFIG_TARGET_MPC8541CDS)	+= cds_pci_ft.o
47obj-$(CONFIG_TARGET_MPC8548CDS)	+= cds_pci_ft.o
48obj-$(CONFIG_TARGET_MPC8555CDS)	+= cds_pci_ft.o
49
50obj-$(CONFIG_TARGET_MPC8536DS)	+= ics307_clk.o
51obj-$(CONFIG_TARGET_MPC8572DS)	+= ics307_clk.o
52obj-$(CONFIG_TARGET_P1022DS)		+= ics307_clk.o
53obj-$(CONFIG_P2020DS)		+= ics307_clk.o
54obj-$(CONFIG_TARGET_P3041DS)		+= ics307_clk.o
55obj-$(CONFIG_TARGET_P4080DS)		+= ics307_clk.o
56obj-$(CONFIG_TARGET_P5020DS)		+= ics307_clk.o
57obj-$(CONFIG_TARGET_P5040DS)		+= ics307_clk.o
58obj-$(CONFIG_VSC_CROSSBAR)    += vsc3316_3308.o
59obj-$(CONFIG_IDT8T49N222A)	+= idt8t49n222a_serdes_clk.o
60obj-$(CONFIG_ZM7300)		+= zm7300.o
61obj-$(CONFIG_POWER_PFUZE100)	+= pfuze.o
62obj-$(CONFIG_DM_PMIC_PFUZE100)	+= pfuze.o
63obj-$(CONFIG_POWER_MC34VR500)	+= mc34vr500.o
64
65obj-$(CONFIG_LS102XA_STREAM_ID)	+= ls102xa_stream_id.o
66
67# deal with common files for P-series corenet based devices
68obj-$(CONFIG_TARGET_P2041RDB)	+= p_corenet/
69obj-$(CONFIG_TARGET_P3041DS)	+= p_corenet/
70obj-$(CONFIG_TARGET_P4080DS)	+= p_corenet/
71obj-$(CONFIG_TARGET_P5020DS)	+= p_corenet/
72obj-$(CONFIG_TARGET_P5040DS)	+= p_corenet/
73
74obj-$(CONFIG_LAYERSCAPE_NS_ACCESS)	+= ns_access.o
75
76ifdef CONFIG_SECURE_BOOT
77obj-$(CONFIG_CMD_ESBC_VALIDATE) += fsl_validate.o cmd_esbc_validate.o
78endif
79obj-$(CONFIG_CHAIN_OF_TRUST) += fsl_chain_of_trust.o
80
81endif
82