1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2004-2006
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 ifndef CONFIG_SPL_BUILD
11 obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
12 obj-$(CONFIG_AUTOBOOT) += autoboot.o
14 # This option is not just y/n - it can have a numeric value
15 ifdef CONFIG_BOOT_RETRY_TIME
22 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
23 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
25 obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o
26 obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o
27 obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o
29 obj-$(CONFIG_CMD_BEDBUG) += bedbug.o
30 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
31 obj-$(CONFIG_MII) += miiphyutil.o
32 obj-$(CONFIG_CMD_MII) += miiphyutil.o
33 obj-$(CONFIG_PHYLIB) += miiphyutil.o
36 obj-y += usb.o usb_hub.o
37 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
41 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
42 obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
43 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
44 obj-$(CONFIG_I2C_EDID) += edid.o
45 obj-$(CONFIG_KALLSYMS) += kallsyms.o
47 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
48 ifndef CONFIG_DM_VIDEO
49 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
51 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
52 obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
53 obj-$(CONFIG_LYNXKDI) += lynxkdi.o
54 obj-$(CONFIG_MENU) += menu.o
55 obj-$(CONFIG_UPDATE_COMMON) += update.o
56 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
57 obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
59 endif # !CONFIG_SPL_BUILD
61 obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
62 obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o
64 ifdef CONFIG_SPL_BUILD
66 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
68 obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o
69 obj-$(CONFIG_SPL_NET) += miiphyutil.o
70 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
72 ifdef CONFIG_SPL_USB_HOST
75 obj-$(CONFIG_SPL_USB_STORAGE) += usb_storage.o
77 obj-$(CONFIG_USB_MUSB_HOST) += usb.o
79 endif # CONFIG_SPL_BUILD
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) += console.o
90 obj-$(CONFIG_SPL_SERIAL) += console.o
94 endif # CONFIG_SPL_BUILD
96 obj-$(CONFIG_CROS_EC) += cros_ec.o
98 ifdef CONFIG_SYS_MALLOC_F
99 ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0)
100 obj-y += malloc_simple.o
104 obj-y += image.o image-board.o
105 obj-$(CONFIG_$(SPL_TPL_)HASH) += hash.o
106 obj-$(CONFIG_ANDROID_AB) += android_ab.o
107 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o image-android-dt.o
108 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o
109 obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += fdt_region.o
110 obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o
111 obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o
112 obj-$(CONFIG_$(SPL_TPL_)IMAGE_SIGN_INFO) += image-sig.o
113 obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-fit-sig.o
114 obj-$(CONFIG_$(SPL_TPL_)FIT_CIPHER) += image-cipher.o
115 obj-$(CONFIG_IO_TRACE) += iotrace.o
119 obj-$(CONFIG_CMD_ADTIMG) += image-android-dt.o
121 ifdef CONFIG_CMD_EEPROM_LAYOUT
122 obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
126 obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
127 obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
128 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
130 obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o
131 obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o
132 obj-$(CONFIG_$(SPL_TPL_)LOG_SYSLOG) += log_syslog.o
134 obj-$(CONFIG_CMD_LOADB) += xyzModem.o
135 obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o
137 obj-$(CONFIG_AVB_VERIFY) += avb_verify.o
138 obj-$(CONFIG_$(SPL_TPL_)STACKPROTECTOR) += stackprot.o
139 obj-$(CONFIG_SCP03) += scp03.o
141 obj-$(CONFIG_QFW) += qfw.o