1# 2# (C) Copyright 2004-2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8# core 9ifndef CONFIG_SPL_BUILD 10obj-y += init/ 11obj-y += main.o 12obj-y += exports.o 13obj-y += hash.o 14ifdef CONFIG_SYS_HUSH_PARSER 15obj-y += cli_hush.o 16endif 17 18# This option is not just y/n - it can have a numeric value 19ifdef CONFIG_BOOTDELAY 20obj-y += autoboot.o 21endif 22 23# This option is not just y/n - it can have a numeric value 24ifdef CONFIG_BOOT_RETRY_TIME 25obj-y += bootretry.o 26endif 27 28# boards 29obj-y += board_f.o 30obj-y += board_r.o 31obj-$(CONFIG_DISPLAY_BOARDINFO) += board_info.o 32obj-$(CONFIG_DISPLAY_BOARDINFO_LATE) += board_info.o 33 34obj-$(CONFIG_CMD_BOOTM) += bootm.o bootm_os.o 35 36# environment 37obj-y += env_attr.o 38obj-y += env_callback.o 39obj-y += env_flags.o 40obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o 41obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o 42extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o 43obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o 44extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o 45obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o 46obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 47obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o 48obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o 49obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o 50obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o 51obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o 52obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o 53obj-$(CONFIG_ENV_IS_IN_SATA) += env_sata.o 54obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o 55obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o 56obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o 57obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o 58 59obj-$(CONFIG_CMD_BEDBUG) += bedbug.o 60obj-$(CONFIG_$(SPL_)OF_LIBFDT) += fdt_support.o 61 62obj-$(CONFIG_MII) += miiphyutil.o 63obj-$(CONFIG_CMD_MII) += miiphyutil.o 64obj-$(CONFIG_PHYLIB) += miiphyutil.o 65 66ifdef CONFIG_CMD_USB 67obj-y += usb.o usb_hub.o 68obj-$(CONFIG_USB_STORAGE) += usb_storage.o 69endif 70 71# others 72obj-$(CONFIG_BOOTSTAGE) += bootstage.o 73obj-$(CONFIG_CONSOLE_MUX) += iomux.o 74obj-y += flash.o 75obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o 76obj-$(CONFIG_I2C_EDID) += edid.o 77obj-$(CONFIG_KALLSYMS) += kallsyms.o 78obj-y += splash.o 79obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o 80ifndef CONFIG_DM_VIDEO 81obj-$(CONFIG_LCD) += lcd.o lcd_console.o 82endif 83obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o 84obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o 85obj-$(CONFIG_LYNXKDI) += lynxkdi.o 86obj-$(CONFIG_MENU) += menu.o 87obj-$(CONFIG_CMD_SATA) += sata.o 88obj-$(CONFIG_SCSI) += scsi.o 89obj-$(CONFIG_UPDATE_TFTP) += update.o 90obj-$(CONFIG_DFU_TFTP) += update.o 91obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o 92 93endif # !CONFIG_SPL_BUILD 94 95ifdef CONFIG_SPL_BUILD 96obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o 97obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 98obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o 99obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o 100obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o 101ifdef CONFIG_SPL_USB_HOST_SUPPORT 102obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o 103obj-$(CONFIG_USB_STORAGE) += usb_storage.o 104endif 105# environment 106ifdef CONFIG_SPL_ENV_SUPPORT 107obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o 108obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o 109obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o 110obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o 111obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o 112obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o 113obj-$(CONFIG_ENV_IS_IN_EXT4) += env_ext4.o 114obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o 115obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o 116obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 117endif 118ifdef CONFIG_SPL_SATA_SUPPORT 119obj-$(CONFIG_SCSI) += scsi.o 120endif 121endif 122#environment 123obj-y += env_common.o 124#others 125obj-$(CONFIG_DDR_SPD) += ddr_spd.o 126obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o 127obj-$(CONFIG_HWCONFIG) += hwconfig.o 128obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o 129ifdef CONFIG_SPL_BUILD 130obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o 131else 132obj-y += console.o 133endif 134obj-$(CONFIG_CROS_EC) += cros_ec.o 135obj-y += dlmalloc.o 136ifdef CONFIG_SYS_MALLOC_F_LEN 137obj-y += malloc_simple.o 138endif 139obj-$(CONFIG_CMD_IDE) += ide.o 140obj-y += image.o 141obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o 142obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o 143obj-$(CONFIG_$(SPL_)FIT) += image-fit.o 144obj-$(CONFIG_$(SPL_)FIT_SIGNATURE) += image-sig.o 145obj-$(CONFIG_IO_TRACE) += iotrace.o 146obj-y += memsize.o 147obj-y += stdio.o 148 149# This option is not just y/n - it can have a numeric value 150ifdef CONFIG_FASTBOOT_FLASH 151obj-y += image-sparse.o 152ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV 153obj-y += fb_mmc.o 154endif 155ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV 156obj-y += fb_nand.o 157endif 158endif 159 160ifdef CONFIG_CMD_EEPROM_LAYOUT 161obj-y += eeprom/eeprom_field.o eeprom/eeprom_layout.o 162endif 163# We always have this since drivers/ddr/fs/interactive.c needs it 164obj-$(CONFIG_CMDLINE) += cli_simple.o 165 166obj-y += cli.o 167obj-$(CONFIG_CMDLINE) += cli_readline.o 168obj-y += command.o 169obj-y += s_record.o 170obj-y += xyzModem.o 171 172CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) 173