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
14 ifdef CONFIG_SYS_HUSH_PARSER
18 # This option is not just y/n - it can have a numeric value
19 ifdef CONFIG_BOOTDELAY
23 # This option is not just y/n - it can have a numeric value
24 ifdef CONFIG_BOOT_RETRY_TIME
29 obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o
30 obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o
31 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
32 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
34 obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
38 obj-y += env_callback.o
40 obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
41 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
42 extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
43 obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
44 extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
45 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o
46 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
47 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
48 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
49 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
50 obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o
51 obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o
52 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
53 obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o
54 obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o
55 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
57 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
58 obj-$(CONFIG_OF_LIBFDT) += fdt_support.o
60 obj-$(CONFIG_MII) += miiphyutil.o
61 obj-$(CONFIG_CMD_MII) += miiphyutil.o
62 obj-$(CONFIG_PHYLIB) += miiphyutil.o
65 obj-y += usb.o usb_hub.o
66 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
70 obj-$(CONFIG_BOOTSTAGE) += bootstage.o
71 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
73 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
74 obj-$(CONFIG_I2C_EDID) += edid.o
75 obj-$(CONFIG_KALLSYMS) += kallsyms.o
77 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
78 ifndef CONFIG_DM_VIDEO
79 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
81 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
82 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
83 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
84 obj-$(CONFIG_MENU) += menu.o
85 obj-$(CONFIG_UPDATE_TFTP) += update.o
86 obj-$(CONFIG_DFU_TFTP) += update.o
87 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
89 endif # !CONFIG_SPL_BUILD
91 ifdef CONFIG_SPL_BUILD
92 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
93 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
94 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
95 obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o
96 ifdef CONFIG_SPL_USB_HOST_SUPPORT
97 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
98 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
101 ifdef CONFIG_SPL_ENV_SUPPORT
102 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o
103 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o
104 obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o
105 obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o
106 obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o
107 obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o
108 obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o
109 obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o
110 obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
114 obj-y += env_common.o
116 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
117 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
118 obj-$(CONFIG_HWCONFIG) += hwconfig.o
119 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
120 ifdef CONFIG_SPL_BUILD
121 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
125 obj-$(CONFIG_CROS_EC) += cros_ec.o
127 ifdef CONFIG_SYS_MALLOC_F_LEN
128 obj-y += malloc_simple.o
131 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
132 obj-$(CONFIG_OF_LIBFDT) += image-fdt.o
133 obj-$(CONFIG_FIT) += image-fit.o
134 obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o
135 obj-$(CONFIG_IO_TRACE) += iotrace.o
139 # This option is not just y/n - it can have a numeric value
140 ifdef CONFIG_FASTBOOT_FLASH
141 obj-y += image-sparse.o
142 ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
145 ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
150 # We always have this since drivers/ddr/fs/interactive.c needs it
151 obj-y += cli_simple.o
154 obj-y += cli_readline.o
159 CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null)