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
32 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
33 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
35 obj-$(CONFIG_MII) += miiphyutil.o
36 obj-$(CONFIG_CMD_MII) += miiphyutil.o
37 obj-$(CONFIG_PHYLIB) += miiphyutil.o
40 obj-y += usb.o usb_hub.o
41 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
45 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
46 obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
47 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
48 obj-$(CONFIG_I2C_EDID) += edid.o
49 obj-$(CONFIG_KALLSYMS) += kallsyms.o
51 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
52 ifndef CONFIG_DM_VIDEO
53 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
55 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
56 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
57 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
58 obj-$(CONFIG_MENU) += menu.o
59 obj-$(CONFIG_UPDATE_TFTP) += update.o
60 obj-$(CONFIG_DFU_TFTP) += update.o
61 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
62 obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
64 endif # !CONFIG_SPL_BUILD
66 obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
68 ifdef CONFIG_SPL_BUILD
69 obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu.o
70 obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o
71 obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
72 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
73 obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o
74 obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
75 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
76 ifdef CONFIG_SPL_USB_HOST_SUPPORT
77 obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
78 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
82 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
83 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
84 obj-$(CONFIG_HWCONFIG) += hwconfig.o
85 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
86 ifdef CONFIG_SPL_BUILD
87 ifdef CONFIG_TPL_BUILD
88 obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o
90 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
95 obj-$(CONFIG_CROS_EC) += cros_ec.o
97 ifdef CONFIG_SYS_MALLOC_F
98 ifneq ($(CONFIG_$(SPL_)SYS_MALLOC_F_LEN),0)
99 obj-y += malloc_simple.o
103 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
104 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
105 obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
106 obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
107 obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.o
108 obj-$(CONFIG_IO_TRACE) += iotrace.o
112 # This option is not just y/n - it can have a numeric value
113 ifdef CONFIG_FASTBOOT_FLASH
114 obj-y += image-sparse.o
115 ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
118 ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV
123 ifdef CONFIG_CMD_EEPROM_LAYOUT
124 obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
128 obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
129 obj-$(CONFIG_CMD_DFU) += dfu.o