1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2004-2006 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 6# core 7ifndef CONFIG_SPL_BUILD 8obj-y += init/ 9obj-y += main.o 10obj-y += exports.o 11obj-$(CONFIG_HASH) += hash.o 12obj-$(CONFIG_HUSH_PARSER) += cli_hush.o 13obj-$(CONFIG_AUTOBOOT) += autoboot.o 14 15# This option is not just y/n - it can have a numeric value 16ifdef CONFIG_BOOT_RETRY_TIME 17obj-y += bootretry.o 18endif 19 20# # boards 21obj-y += board_f.o 22obj-y += board_r.o 23obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o 24obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o 25 26obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o 27obj-$(CONFIG_CMD_BOOTZ) += bootm.o bootm_os.o 28obj-$(CONFIG_CMD_BOOTI) += bootm.o bootm_os.o 29 30obj-$(CONFIG_CMD_BEDBUG) += bedbug.o 31obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o 32obj-$(CONFIG_MII) += miiphyutil.o 33obj-$(CONFIG_CMD_MII) += miiphyutil.o 34obj-$(CONFIG_PHYLIB) += miiphyutil.o 35 36ifdef CONFIG_USB 37obj-y += usb.o usb_hub.o 38obj-$(CONFIG_USB_STORAGE) += usb_storage.o 39endif 40 41# others 42obj-$(CONFIG_CONSOLE_MUX) += iomux.o 43obj-$(CONFIG_MTD_NOR_FLASH) += flash.o 44obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o 45obj-$(CONFIG_I2C_EDID) += edid.o 46obj-$(CONFIG_KALLSYMS) += kallsyms.o 47obj-y += splash.o 48obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o 49ifndef CONFIG_DM_VIDEO 50obj-$(CONFIG_LCD) += lcd.o lcd_console.o 51endif 52obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o 53obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o 54obj-$(CONFIG_LYNXKDI) += lynxkdi.o 55obj-$(CONFIG_MENU) += menu.o 56obj-$(CONFIG_UPDATE_TFTP) += update.o 57obj-$(CONFIG_DFU_TFTP) += update.o 58obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o 59obj-$(CONFIG_CMDLINE) += cli_readline.o cli_simple.o 60 61endif # !CONFIG_SPL_BUILD 62 63obj-$(CONFIG_$(SPL_TPL_)BOOTSTAGE) += bootstage.o 64obj-$(CONFIG_$(SPL_TPL_)BLOBLIST) += bloblist.o 65 66ifdef CONFIG_SPL_BUILD 67ifdef CONFIG_SPL_DFU_SUPPORT 68obj-$(CONFIG_DFU_OVER_USB) += dfu.o 69endif 70obj-$(CONFIG_SPL_DFU_SUPPORT) += cli_hush.o 71obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o 72obj-$(CONFIG_TPL_HASH_SUPPORT) += hash.o 73obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o 74obj-$(CONFIG_SPL_LOAD_FIT) += common_fit.o 75obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o 76obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdt_support.o 77 78ifdef CONFIG_SPL_USB_HOST_SUPPORT 79obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o 80obj-$(CONFIG_USB_STORAGE) += usb_storage.o 81else 82obj-$(CONFIG_USB_MUSB_HOST) += usb.o 83endif 84endif # CONFIG_SPL_BUILD 85 86#others 87obj-$(CONFIG_DDR_SPD) += ddr_spd.o 88obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o 89obj-$(CONFIG_HWCONFIG) += hwconfig.o 90obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o 91ifdef CONFIG_SPL_BUILD 92ifdef CONFIG_TPL_BUILD 93obj-$(CONFIG_TPL_SERIAL_SUPPORT) += console.o 94else 95obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o 96endif 97else 98obj-y += console.o 99endif # CONFIG_SPL_BUILD 100 101obj-$(CONFIG_CROS_EC) += cros_ec.o 102obj-y += dlmalloc.o 103ifdef CONFIG_SYS_MALLOC_F 104ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0) 105obj-y += malloc_simple.o 106endif 107endif 108 109obj-y += image.o 110obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o 111obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o 112obj-$(CONFIG_$(SPL_TPL_)FIT) += image-fit.o 113obj-$(CONFIG_$(SPL_)MULTI_DTB_FIT) += boot_fit.o common_fit.o 114obj-$(CONFIG_$(SPL_TPL_)FIT_SIGNATURE) += image-sig.o 115obj-$(CONFIG_IO_TRACE) += iotrace.o 116obj-y += memsize.o 117obj-y += stdio.o 118 119obj-$(CONFIG_CMD_DTIMG) += image-android-dt.o 120 121ifdef CONFIG_CMD_EEPROM_LAYOUT 122obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o 123endif 124 125obj-y += cli.o 126obj-$(CONFIG_FSL_DDR_INTERACTIVE) += cli_simple.o cli_readline.o 127obj-$(CONFIG_DFU_OVER_USB) += dfu.o 128obj-y += command.o 129obj-$(CONFIG_$(SPL_TPL_)LOG) += log.o 130obj-$(CONFIG_$(SPL_TPL_)LOG_CONSOLE) += log_console.o 131obj-y += s_record.o 132obj-$(CONFIG_CMD_LOADB) += xyzModem.o 133obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += xyzModem.o 134 135obj-$(CONFIG_AVB_VERIFY) += avb_verify.o 136