Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Kim Phillips | 53b3498 | 2007-08-21 17:00:17 -0500 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Kim Phillips | 53b3498 | 2007-08-21 17:00:17 -0500 | [diff] [blame] | 5 | |
Prabhakar Kushwaha | ab4ab01 | 2013-04-16 13:27:59 +0530 | [diff] [blame] | 6 | MINIMAL= |
| 7 | |
| 8 | ifdef CONFIG_SPL_BUILD |
Tom Rini | 6b15c16 | 2022-05-13 12:26:35 -0400 | [diff] [blame] | 9 | ifndef CONFIG_TPL_BUILD |
Prabhakar Kushwaha | ab4ab01 | 2013-04-16 13:27:59 +0530 | [diff] [blame] | 10 | ifdef CONFIG_SPL_INIT_MINIMAL |
| 11 | MINIMAL=y |
| 12 | endif |
| 13 | endif |
Tom Rini | 6b15c16 | 2022-05-13 12:26:35 -0400 | [diff] [blame] | 14 | endif |
Prabhakar Kushwaha | ab4ab01 | 2013-04-16 13:27:59 +0530 | [diff] [blame] | 15 | |
Masahiro Yamada | 350735c | 2014-02-04 17:24:25 +0900 | [diff] [blame] | 16 | ifdef MINIMAL |
| 17 | # necessary to create built-in.o |
| 18 | obj- := __dummy__.o |
| 19 | else |
Stephen Carlson | e36d49c | 2021-06-22 16:35:20 -0700 | [diff] [blame] | 20 | # include i2c_common.o once if either VID or FSL_USE_PCA9547_MUX |
| 21 | I2C_COMMON= |
| 22 | ifdef CONFIG_VID |
| 23 | I2C_COMMON=y |
| 24 | endif |
| 25 | ifdef CONFIG_FSL_USE_PCA9547_MUX |
| 26 | I2C_COMMON=y |
| 27 | endif |
| 28 | |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 29 | obj-$(CONFIG_FSL_CADMUS) += cadmus.o |
| 30 | obj-$(CONFIG_FSL_VIA) += cds_via.o |
| 31 | obj-$(CONFIG_FMAN_ENET) += fman.o |
Matthew McClintock | cd99caa | 2013-02-18 10:02:19 +0000 | [diff] [blame] | 32 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 33 | obj-$(CONFIG_FSL_NGPIXIS) += ngpixis.o |
Matthew McClintock | cd99caa | 2013-02-18 10:02:19 +0000 | [diff] [blame] | 34 | endif |
Stephen Carlson | e36d49c | 2021-06-22 16:35:20 -0700 | [diff] [blame] | 35 | obj-$(I2C_COMMON) += i2c_common.o |
| 36 | obj-$(CONFIG_FSL_USE_PCA9547_MUX) += i2c_mux.o |
Tom Rini | 89cdcab | 2021-12-12 22:12:31 -0500 | [diff] [blame] | 37 | obj-$(CONFIG_$(SPL_)VID) += vid.o |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 38 | obj-$(CONFIG_FSL_QIXIS) += qixis.o |
Matthew McClintock | cd99caa | 2013-02-18 10:02:19 +0000 | [diff] [blame] | 39 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 40 | obj-$(CONFIG_ID_EEPROM) += sys_eeprom.o |
Matthew McClintock | cd99caa | 2013-02-18 10:02:19 +0000 | [diff] [blame] | 41 | endif |
Shaohui Xie | c608389 | 2011-05-12 18:46:40 +0800 | [diff] [blame] | 42 | ifndef CONFIG_RAMBOOT_PBL |
Masahiro Yamada | c54b77e | 2013-10-21 11:53:38 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_FSL_FIXED_MMC_LOCATION) += sdhc_boot.o |
Shaohui Xie | c608389 | 2011-05-12 18:46:40 +0800 | [diff] [blame] | 44 | endif |
Jon Loeliger | 6bcdb40 | 2008-03-19 15:02:07 -0500 | [diff] [blame] | 45 | |
Tang Yuantian | 064f126 | 2014-11-21 11:17:15 +0800 | [diff] [blame] | 46 | ifdef CONFIG_ARM |
| 47 | obj-$(CONFIG_DEEP_SLEEP) += arm_sleep.o |
| 48 | else |
| 49 | obj-$(CONFIG_DEEP_SLEEP) += mpc85xx_sleep.o |
| 50 | endif |
| 51 | |
York Sun | 098f8a7 | 2016-11-16 11:43:49 -0800 | [diff] [blame] | 52 | obj-$(CONFIG_TARGET_MPC8548CDS) += cds_pci_ft.o |
Jon Loeliger | 6bcdb40 | 2008-03-19 15:02:07 -0500 | [diff] [blame] | 53 | |
York Sun | 80d8991 | 2016-11-18 11:22:17 -0800 | [diff] [blame] | 54 | obj-$(CONFIG_TARGET_P3041DS) += ics307_clk.o |
York Sun | d1bb602 | 2016-11-18 11:26:09 -0800 | [diff] [blame] | 55 | obj-$(CONFIG_TARGET_P4080DS) += ics307_clk.o |
York Sun | cc85e25 | 2016-11-18 11:40:51 -0800 | [diff] [blame] | 56 | obj-$(CONFIG_TARGET_P5040DS) += ics307_clk.o |
Tom Rini | db9d925 | 2022-11-19 18:45:15 -0500 | [diff] [blame] | 57 | ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y) |
Ye.Li | a9454db | 2014-11-06 16:28:59 +0800 | [diff] [blame] | 58 | obj-$(CONFIG_POWER_PFUZE100) += pfuze.o |
Tom Rini | db9d925 | 2022-11-19 18:45:15 -0500 | [diff] [blame] | 59 | endif |
Peng Fan | a7e8fcb | 2018-01-02 09:32:06 +0800 | [diff] [blame] | 60 | obj-$(CONFIG_DM_PMIC_PFUZE100) += pfuze.o |
Hou Zhiqiang | c486051 | 2016-12-09 16:08:58 +0800 | [diff] [blame] | 61 | obj-$(CONFIG_POWER_MC34VR500) += mc34vr500.o |
Peng Fan | b72606c | 2022-07-26 16:41:10 +0800 | [diff] [blame] | 62 | ifneq (,$(filter $(SOC), imx8ulp imx9)) |
Peng Fan | 4de1128 | 2022-04-06 14:30:25 +0800 | [diff] [blame] | 63 | obj-y += mmc.o |
| 64 | endif |
Kim Phillips | 53b3498 | 2007-08-21 17:00:17 -0500 | [diff] [blame] | 65 | |
Xiubo Li | 03d40aa | 2014-11-21 17:40:59 +0800 | [diff] [blame] | 66 | obj-$(CONFIG_LS102XA_STREAM_ID) += ls102xa_stream_id.o |
| 67 | |
Meenakshi Aggarwal | bbd3318 | 2018-11-30 22:32:11 +0530 | [diff] [blame] | 68 | obj-$(CONFIG_EMC2305) += emc2305.o |
| 69 | |
Kumar Gala | 2bf3c2a | 2011-08-30 17:29:23 -0500 | [diff] [blame] | 70 | # deal with common files for P-series corenet based devices |
York Sun | 8299ebf | 2016-11-18 11:17:22 -0800 | [diff] [blame] | 71 | obj-$(CONFIG_TARGET_P2041RDB) += p_corenet/ |
York Sun | 80d8991 | 2016-11-18 11:22:17 -0800 | [diff] [blame] | 72 | obj-$(CONFIG_TARGET_P3041DS) += p_corenet/ |
York Sun | d1bb602 | 2016-11-18 11:26:09 -0800 | [diff] [blame] | 73 | obj-$(CONFIG_TARGET_P4080DS) += p_corenet/ |
York Sun | cc85e25 | 2016-11-18 11:40:51 -0800 | [diff] [blame] | 74 | obj-$(CONFIG_TARGET_P5040DS) += p_corenet/ |
Xiubo Li | 54de065 | 2014-11-21 17:40:58 +0800 | [diff] [blame] | 75 | |
Mingkai Hu | 5b0df8a | 2015-10-26 19:47:41 +0800 | [diff] [blame] | 76 | obj-$(CONFIG_LAYERSCAPE_NS_ACCESS) += ns_access.o |
gaurav rana | 8b5ea65 | 2015-02-27 09:46:17 +0530 | [diff] [blame] | 77 | |
Udit Agarwal | 22ec238 | 2019-11-07 16:11:32 +0000 | [diff] [blame] | 78 | ifdef CONFIG_NXP_ESBC |
gaurav rana | 8707d47 | 2015-04-06 13:05:33 +0530 | [diff] [blame] | 79 | obj-$(CONFIG_CMD_ESBC_VALIDATE) += fsl_validate.o cmd_esbc_validate.o |
gaurav rana | 8b5ea65 | 2015-02-27 09:46:17 +0530 | [diff] [blame] | 80 | endif |
Aneesh Bansal | 39d5b3b | 2016-01-22 16:37:26 +0530 | [diff] [blame] | 81 | obj-$(CONFIG_CHAIN_OF_TRUST) += fsl_chain_of_trust.o |
gaurav rana | 8b5ea65 | 2015-02-27 09:46:17 +0530 | [diff] [blame] | 82 | |
Prabhakar Kushwaha | ab4ab01 | 2013-04-16 13:27:59 +0530 | [diff] [blame] | 83 | endif |