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
17 obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o
18 obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o
20 obj-$(CONFIG_FDT_SIMPLEFB) += fdt_simplefb.o
21 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
22 obj-$(CONFIG_MII) += miiphyutil.o
23 obj-$(CONFIG_CMD_MII) += miiphyutil.o
24 obj-$(CONFIG_PHYLIB) += miiphyutil.o
26 obj-$(CONFIG_USB_HOST) += usb.o usb_hub.o
27 obj-$(CONFIG_USB_GADGET) += usb.o usb_hub.o
28 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
31 obj-$(CONFIG_CONSOLE_MUX) += iomux.o
32 obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
33 obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
34 obj-$(CONFIG_I2C_EDID) += edid.o
35 obj-$(CONFIG_KALLSYMS) += kallsyms.o
37 obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
38 ifndef CONFIG_DM_VIDEO
39 obj-$(CONFIG_LCD) += lcd.o lcd_console.o
41 obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
42 obj-$(CONFIG_MENU) += menu.o
43 obj-$(CONFIG_UPDATE_COMMON) += update.o
44 obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
45 obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o
47 endif # !CONFIG_SPL_BUILD
49 obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o
50 obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o
52 ifdef CONFIG_SPL_BUILD
54 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
56 obj-$(CONFIG_SPL_NET) += miiphyutil.o
57 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o
59 obj-$(CONFIG_SPL_USB_HOST) += usb.o usb_hub.o
60 obj-$(CONFIG_SPL_USB_STORAGE) += usb_storage.o
61 obj-$(CONFIG_SPL_MUSB_NEW) += usb.o
62 endif # CONFIG_SPL_BUILD
65 obj-$(CONFIG_DDR_SPD) += ddr_spd.o
66 obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o
67 obj-$(CONFIG_HWCONFIG) += hwconfig.o
68 obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
69 ifdef CONFIG_SPL_BUILD
70 ifdef CONFIG_TPL_BUILD
71 obj-$(CONFIG_TPL_SERIAL) += console.o
73 obj-$(CONFIG_SPL_SERIAL) += console.o
77 endif # CONFIG_SPL_BUILD
79 obj-$(CONFIG_CROS_EC) += cros_ec.o
81 ifdef CONFIG_SYS_MALLOC_F
82 ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0)
83 obj-y += malloc_simple.o
87 obj-$(CONFIG_CYCLIC) += cyclic.o
88 obj-$(CONFIG_$(SPL_TPL_)EVENT) += event.o
90 obj-$(CONFIG_$(SPL_TPL_)HASH) += hash.o
91 obj-$(CONFIG_IO_TRACE) += iotrace.o
95 ifdef CONFIG_CMD_EEPROM_LAYOUT
96 obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o
100 obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
101 obj-$(CONFIG_STM32MP1_DDR_INTERACTIVE) += cli_simple.o cli_readline.o
102 obj-$(CONFIG_DFU_OVER_USB) += dfu.o
104 obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o
105 obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o
106 obj-$(CONFIG_$(SPL_TPL_)LOG_SYSLOG) += log_syslog.o
108 obj-$(CONFIG_CMD_LOADB) += xyzModem.o
109 obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o
111 obj-$(CONFIG_$(SPL_TPL_)AVB_VERIFY) += avb_verify.o
112 obj-$(CONFIG_$(SPL_TPL_)STACKPROTECTOR) += stackprot.o
113 obj-$(CONFIG_SCP03) += scp03.o
115 obj-$(CONFIG_QFW) += qfw.o