2 # (C) Copyright 2004-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
9 ifndef CONFIG_SPL_BUILD
13 ifdef CONFIG_SYS_HUSH_PARSER
17 # This option is not just y/n - it can have a numeric value
18 ifdef CONFIG_BOOTDELAY
22 # This option is not just y/n - it can have a numeric value
23 ifdef CONFIG_BOOT_RETRY_TIME
28 obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
29 obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
30 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
31 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
35 obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o bootm.o bootm_os.o
37 obj-y += cmd_version.o
41 obj-y += env_callback.o
43 obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
44 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
45 extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
46 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
47 extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
48 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
49 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
50 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
51 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
52 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
53 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
54 obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
55 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
56 obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
57 obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
58 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
61 obj-$(CONFIG_CMD_AES) += cmd_aes.o
62 obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
63 obj-$(CONFIG_CMD_ARMFLASH) += cmd_armflash.o
64 obj-$(CONFIG_SOURCE) += cmd_source.o
65 obj-$(CONFIG_CMD_SOURCE) += cmd_source.o
66 obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o
67 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
68 obj-$(CONFIG_CMD_BMP) += cmd_bmp.o
69 obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o
70 obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
71 obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
72 obj-$(CONFIG_CMD_CACHE) += cmd_cache.o
73 obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
74 obj-$(CONFIG_CMD_CLK) += cmd_clk.o
75 obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o
76 obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o
77 obj-$(CONFIG_CMD_CPU) += cmd_cpu.o
78 obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o
79 obj-$(CONFIG_CMD_DATE) += cmd_date.o
80 obj-$(CONFIG_CMD_DEMO) += cmd_demo.o
81 obj-$(CONFIG_CMD_SOUND) += cmd_sound.o
83 obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o
86 obj-$(CONFIG_CMD_DIAG) += cmd_diag.o
88 obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o
89 obj-$(CONFIG_CMD_DTT) += cmd_dtt.o
90 obj-$(CONFIG_CMD_ECHO) += cmd_echo.o
91 obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o
92 obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
93 obj-$(CONFIG_EFI_STUB) += cmd_efi.o
94 obj-$(CONFIG_CMD_ELF) += cmd_elf.o
95 obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o
96 obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o
97 obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o
98 obj-$(CONFIG_CMD_FAT) += cmd_fat.o
99 obj-$(CONFIG_CMD_FDC) += cmd_fdc.o
100 obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
101 obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o
102 obj-$(CONFIG_CMD_FLASH) += cmd_flash.o
104 obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o
106 obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o
107 obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o
108 obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o
109 obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
110 obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o
111 obj-$(CONFIG_CMD_I2C) += cmd_i2c.o
112 obj-$(CONFIG_CMD_IOTRACE) += cmd_iotrace.o
113 obj-$(CONFIG_CMD_HASH) += cmd_hash.o
114 obj-$(CONFIG_CMD_IDE) += cmd_ide.o
115 obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o
116 obj-$(CONFIG_CMD_INI) += cmd_ini.o
117 obj-$(CONFIG_CMD_IRQ) += cmd_irq.o
118 obj-$(CONFIG_CMD_ITEST) += cmd_itest.o
119 obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o
120 obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o
121 obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o
122 obj-$(CONFIG_CMD_LED) += cmd_led.o
123 obj-$(CONFIG_CMD_LICENSE) += cmd_license.o
125 obj-$(CONFIG_LOGBUFFER) += cmd_log.o
126 obj-$(CONFIG_ID_EEPROM) += cmd_mac.o
127 obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o
128 obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o
129 obj-$(CONFIG_CMD_IO) += cmd_io.o
130 obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
131 obj-$(CONFIG_MII) += miiphyutil.o
132 obj-$(CONFIG_CMD_MII) += miiphyutil.o
133 obj-$(CONFIG_PHYLIB) += miiphyutil.o
134 obj-$(CONFIG_CMD_MII) += cmd_mii.o
136 obj-$(CONFIG_CMD_MII) += cmd_mdio.o
138 obj-$(CONFIG_CMD_MISC) += cmd_misc.o
139 obj-$(CONFIG_CMD_MMC) += cmd_mmc.o
140 obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o
141 obj-$(CONFIG_MP) += cmd_mp.o
142 obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
143 obj-$(CONFIG_CMD_NAND) += cmd_nand.o
144 obj-$(CONFIG_CMD_NET) += cmd_net.o
145 obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
146 obj-$(CONFIG_CMD_OTP) += cmd_otp.o
147 obj-$(CONFIG_CMD_PART) += cmd_part.o
149 obj-$(CONFIG_CMD_PCI) += cmd_pci.o
151 obj-y += cmd_pcmcia.o
152 obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o
153 obj-$(CONFIG_CMD_PXE) += cmd_pxe.o
154 obj-$(CONFIG_CMD_READ) += cmd_read.o
155 obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o
156 obj-$(CONFIG_CMD_REISER) += cmd_reiser.o
157 obj-$(CONFIG_SANDBOX) += cmd_host.o
158 obj-$(CONFIG_CMD_SATA) += cmd_sata.o
159 obj-$(CONFIG_CMD_SF) += cmd_sf.o
160 obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
161 obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o
162 obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o
163 obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o
164 obj-$(CONFIG_CMD_SPI) += cmd_spi.o
165 obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o
166 obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o
167 obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o
168 obj-$(CONFIG_CMD_TIME) += cmd_time.o
169 obj-$(CONFIG_CMD_TRACE) += cmd_trace.o
170 obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o
171 obj-$(CONFIG_CMD_TPM) += cmd_tpm.o
172 obj-$(CONFIG_CMD_TPM_TEST) += cmd_tpm_test.o
173 obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o
174 obj-$(CONFIG_CMD_UBI) += cmd_ubi.o
175 obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o
176 obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o
177 obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o
179 obj-$(CONFIG_CMD_LZMADEC) += cmd_lzmadec.o
183 obj-y += usb.o usb_hub.o
184 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
186 obj-$(CONFIG_CMD_FASTBOOT) += cmd_fastboot.o
187 obj-$(CONFIG_CMD_FS_UUID) += cmd_fs_uuid.o
189 obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o
190 obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o
191 obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o
192 obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o
193 obj-$(CONFIG_CMD_SPL) += cmd_spl.o
194 obj-$(CONFIG_CMD_ZIP) += cmd_zip.o
195 obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o
198 obj-$(CONFIG_BOOTSTAGE) += bootstage.o
199 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
201 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
202 obj-$(CONFIG_I2C_EDID) += edid.o
203 obj-$(CONFIG_KALLSYMS) += kallsyms.o
205 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
206 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
207 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
208 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
209 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
210 obj-$(CONFIG_MENU) += menu.o
211 obj-$(CONFIG_MODEM_SUPPORT) += modem.o
212 obj-$(CONFIG_UPDATE_TFTP) += update.o
213 obj-$(CONFIG_DFU_TFTP) += update.o
214 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
215 obj-$(CONFIG_CMD_DFU) += cmd_dfu.o
216 obj-$(CONFIG_CMD_GPT) += cmd_gpt.o
217 obj-$(CONFIG_CMD_ETHSW) += cmd_ethsw.o
220 obj-$(CONFIG_CMD_PMIC) += cmd_pmic.o
221 obj-$(CONFIG_CMD_REGULATOR) += cmd_regulator.o
224 ifdef CONFIG_SPL_BUILD
225 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
226 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
227 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
228 ifdef CONFIG_SPL_USB_HOST_SUPPORT
229 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
230 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
232 ifdef CONFIG_SPL_SATA_SUPPORT
233 obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o
236 ifdef CONFIG_SPL_ENV_SUPPORT
237 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
238 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
239 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
240 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
241 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
242 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
243 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
244 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
245 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
249 obj-y += cmd_nvedit.o
251 obj-y += env_common.o
253 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
254 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
255 obj-$(CONFIG_HWCONFIG) += hwconfig.o
256 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
257 ifdef CONFIG_SPL_BUILD
258 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
262 obj-$(CONFIG_CROS_EC) += cros_ec.o
264 ifdef CONFIG_SYS_MALLOC_F_LEN
265 obj-y += malloc_simple.o
268 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
269 obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
270 obj-$(CONFIG_FIT) += image-fit.o
271 obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
272 obj-$(CONFIG_IO_TRACE) += iotrace.o
276 # This option is not just y/n - it can have a numeric value
277 ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
282 obj-$(CONFIG_CMD_BLOB) += cmd_blob.o
284 # We always have this since drivers/ddr/fs/interactive.c needs it
285 obj-y += cli_simple.o
288 obj-y += cli_readline.o
294 CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)