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 obj-$(CONFIG_HASH) += hash.o
14 obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
15 obj-$(CONFIG_AUTOBOOT) += autoboot.o
17 # This option is not just y/n - it can have a numeric value
18 ifdef CONFIG_BOOT_RETRY_TIME
25 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
26 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
28 obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
29 obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o
30 obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
34 obj-y += env_callback.o
36 obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
37 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
38 extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
39 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
40 extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
41 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
42 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
43 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
44 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
45 obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o
46 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
47 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
48 obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
49 obj-$(CONFIG_ENV_IS_IN_SATA) += env_sata.o
50 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
51 obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
52 obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
53 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
55 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
56 obj-$(CONFIG_$(SPL_)OF_LIBFDT) += fdt_support.o
58 obj-$(CONFIG_MII) += miiphyutil.o
59 obj-$(CONFIG_CMD_MII) += miiphyutil.o
60 obj-$(CONFIG_PHYLIB) += miiphyutil.o
63 obj-y += usb.o usb_hub.o
64 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
68 obj-$(CONFIG_BOOTSTAGE) += bootstage.o
69 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
70 obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
71 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
72 obj-$(CONFIG_I2C_EDID) += edid.o
73 obj-$(CONFIG_KALLSYMS) += kallsyms.o
75 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
76 ifndef CONFIG_DM_VIDEO
77 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
79 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
80 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
81 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
82 obj-$(CONFIG_MENU) += menu.o
83 obj-$(CONFIG_CMD_SATA) += sata.o
84 obj-$(CONFIG_SCSI) += scsi.o
85 obj-$(CONFIG_UPDATE_TFTP) += update.o
86 obj-$(CONFIG_DFU_TFTP) += update.o
87 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
88 obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
90 endif # !CONFIG_SPL_BUILD
92 ifdef CONFIG_SPL_BUILD
93 obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu.o
94 obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o
95 obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
96 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
97 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
98 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
99 obj-$(CONFIG_SPL_OF_LIBFDT) += fdt_support.o
100 ifdef CONFIG_SPL_USB_HOST_SUPPORT
101 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
102 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
105 ifdef CONFIG_TPL_BUILD
106 obj-$(CONFIG_TPL_ENV_SUPPORT) += env_attr.o
107 obj-$(CONFIG_TPL_ENV_SUPPORT) += env_flags.o
108 obj-$(CONFIG_TPL_ENV_SUPPORT) += env_callback.o
110 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
111 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
112 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
114 ifneq ($(CONFIG_TPL_ENV_SUPPORT)$(CONFIG_SPL_ENV_SUPPORT),)
115 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
116 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
117 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
118 obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o
119 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
120 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
121 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
123 ifdef CONFIG_SPL_SATA_SUPPORT
124 obj-$(CONFIG_SCSI) += scsi.o
128 obj-y += env_common.o
130 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
131 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
132 obj-$(CONFIG_HWCONFIG) += hwconfig.o
133 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
134 ifdef CONFIG_SPL_BUILD
135 ifdef CONFIG_TPL_BUILD
136 obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
138 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
143 obj-$(CONFIG_CROS_EC) += cros_ec.o
145 ifdef CONFIG_SYS_MALLOC_F_LEN
146 obj-y += malloc_simple.o
149 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
150 obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o
151 obj-$(CONFIG_$(SPL_)FIT) += image-fit.o
152 obj-$(CONFIG_$(SPL_)FIT_SIGNATURE) += image-sig.o
153 obj-$(CONFIG_IO_TRACE) += iotrace.o
157 # This option is not just y/n - it can have a numeric value
158 ifdef CONFIG_FASTBOOT_FLASH
159 obj-y += image-sparse.o
160 ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
163 ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
168 ifdef CONFIG_CMD_EEPROM_LAYOUT
169 obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
173 obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
174 obj-$(CONFIG_CMD_DFU) += dfu.o
179 CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)