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 += main.o 11obj-y += command.o 12obj-y += exports.o 13obj-y += hash.o 14obj-$(CONFIG_SYS_HUSH_PARSER) += hush.o 15obj-y += s_record.o 16obj-y += xyzModem.o 17obj-y += cmd_disk.o 18 19# boards 20obj-$(CONFIG_SYS_GENERIC_BOARD) += board_f.o 21obj-$(CONFIG_SYS_GENERIC_BOARD) += board_r.o 22 23# core command 24obj-y += cmd_boot.o 25obj-$(CONFIG_CMD_BOOTM) += cmd_bootm.o 26obj-y += cmd_help.o 27obj-y += cmd_version.o 28 29# environment 30obj-y += env_attr.o 31obj-y += env_callback.o 32obj-y += env_flags.o 33obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o 34obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o 35extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o 36obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o 37extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o 38obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_embedded.o 39obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 40obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o 41obj-$(CONFIG_ENV_IS_IN_FAT) += env_fat.o 42obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o 43obj-$(CONFIG_ENV_IS_IN_NVRAM) += env_nvram.o 44obj-$(CONFIG_ENV_IS_IN_ONENAND) += env_onenand.o 45obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o 46obj-$(CONFIG_ENV_IS_IN_REMOTE) += env_remote.o 47obj-$(CONFIG_ENV_IS_IN_UBI) += env_ubi.o 48obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o 49 50# command 51obj-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o 52obj-$(CONFIG_SOURCE) += cmd_source.o 53obj-$(CONFIG_CMD_SOURCE) += cmd_source.o 54obj-$(CONFIG_CMD_BDI) += cmd_bdinfo.o 55obj-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o 56obj-$(CONFIG_CMD_BMP) += cmd_bmp.o 57obj-$(CONFIG_CMD_BOOTMENU) += cmd_bootmenu.o 58obj-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o 59obj-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o 60obj-$(CONFIG_CMD_CACHE) += cmd_cache.o 61obj-$(CONFIG_CMD_CBFS) += cmd_cbfs.o 62obj-$(CONFIG_CMD_CLK) += cmd_clk.o 63obj-$(CONFIG_CMD_CONSOLE) += cmd_console.o 64obj-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o 65obj-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o 66obj-$(CONFIG_CMD_DATE) += cmd_date.o 67obj-$(CONFIG_CMD_SOUND) += cmd_sound.o 68ifdef CONFIG_4xx 69obj-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o 70endif 71ifdef CONFIG_POST 72obj-$(CONFIG_CMD_DIAG) += cmd_diag.o 73endif 74obj-$(CONFIG_CMD_DISPLAY) += cmd_display.o 75obj-$(CONFIG_CMD_DTT) += cmd_dtt.o 76obj-$(CONFIG_CMD_ECHO) += cmd_echo.o 77obj-$(CONFIG_ENV_IS_IN_EEPROM) += cmd_eeprom.o 78obj-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o 79obj-$(CONFIG_CMD_ELF) += cmd_elf.o 80obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_exit.o 81obj-$(CONFIG_CMD_EXT4) += cmd_ext4.o 82obj-$(CONFIG_CMD_EXT2) += cmd_ext2.o 83obj-$(CONFIG_CMD_FAT) += cmd_fat.o 84obj-$(CONFIG_CMD_FDC)$(CONFIG_CMD_FDOS) += cmd_fdc.o 85obj-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o 86obj-$(CONFIG_CMD_FDOS) += cmd_fdos.o 87obj-$(CONFIG_CMD_FITUPD) += cmd_fitupd.o 88obj-$(CONFIG_CMD_FLASH) += cmd_flash.o 89ifdef CONFIG_FPGA 90obj-$(CONFIG_CMD_FPGA) += cmd_fpga.o 91endif 92obj-$(CONFIG_CMD_FPGAD) += cmd_fpgad.o 93obj-$(CONFIG_CMD_FS_GENERIC) += cmd_fs.o 94obj-$(CONFIG_CMD_FUSE) += cmd_fuse.o 95obj-$(CONFIG_CMD_GETTIME) += cmd_gettime.o 96obj-$(CONFIG_CMD_GPIO) += cmd_gpio.o 97obj-$(CONFIG_CMD_I2C) += cmd_i2c.o 98obj-$(CONFIG_CMD_HASH) += cmd_hash.o 99obj-$(CONFIG_CMD_IDE) += cmd_ide.o 100obj-$(CONFIG_CMD_IMMAP) += cmd_immap.o 101obj-$(CONFIG_CMD_INI) += cmd_ini.o 102obj-$(CONFIG_CMD_IRQ) += cmd_irq.o 103obj-$(CONFIG_CMD_ITEST) += cmd_itest.o 104obj-$(CONFIG_CMD_JFFS2) += cmd_jffs2.o 105obj-$(CONFIG_CMD_CRAMFS) += cmd_cramfs.o 106obj-$(CONFIG_CMD_LDRINFO) += cmd_ldrinfo.o 107obj-$(CONFIG_CMD_LED) += cmd_led.o 108obj-$(CONFIG_CMD_LICENSE) += cmd_license.o 109obj-y += cmd_load.o 110obj-$(CONFIG_LOGBUFFER) += cmd_log.o 111obj-$(CONFIG_ID_EEPROM) += cmd_mac.o 112obj-$(CONFIG_CMD_MD5SUM) += cmd_md5sum.o 113obj-$(CONFIG_CMD_MEMORY) += cmd_mem.o 114obj-$(CONFIG_CMD_IO) += cmd_io.o 115obj-$(CONFIG_CMD_MFSL) += cmd_mfsl.o 116obj-$(CONFIG_MII) += miiphyutil.o 117obj-$(CONFIG_CMD_MII) += miiphyutil.o 118obj-$(CONFIG_PHYLIB) += miiphyutil.o 119obj-$(CONFIG_CMD_MII) += cmd_mii.o 120ifdef CONFIG_PHYLIB 121obj-$(CONFIG_CMD_MII) += cmd_mdio.o 122endif 123obj-$(CONFIG_CMD_MISC) += cmd_misc.o 124obj-$(CONFIG_CMD_MMC) += cmd_mmc.o 125obj-$(CONFIG_CMD_MMC_SPI) += cmd_mmc_spi.o 126obj-$(CONFIG_MP) += cmd_mp.o 127obj-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o 128obj-$(CONFIG_CMD_NAND) += cmd_nand.o 129obj-$(CONFIG_CMD_NET) += cmd_net.o 130obj-$(CONFIG_CMD_ONENAND) += cmd_onenand.o 131obj-$(CONFIG_CMD_OTP) += cmd_otp.o 132obj-$(CONFIG_CMD_PART) += cmd_part.o 133ifdef CONFIG_PCI 134obj-$(CONFIG_CMD_PCI) += cmd_pci.o 135endif 136obj-y += cmd_pcmcia.o 137obj-$(CONFIG_CMD_PORTIO) += cmd_portio.o 138obj-$(CONFIG_CMD_PXE) += cmd_pxe.o 139obj-$(CONFIG_CMD_READ) += cmd_read.o 140obj-$(CONFIG_CMD_REGINFO) += cmd_reginfo.o 141obj-$(CONFIG_CMD_REISER) += cmd_reiser.o 142obj-$(CONFIG_SANDBOX) += cmd_sandbox.o 143obj-$(CONFIG_CMD_SATA) += cmd_sata.o 144obj-$(CONFIG_CMD_SF) += cmd_sf.o 145obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o 146obj-$(CONFIG_CMD_SHA1SUM) += cmd_sha1sum.o 147obj-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o 148obj-$(CONFIG_CMD_SOFTSWITCH) += cmd_softswitch.o 149obj-$(CONFIG_CMD_SPI) += cmd_spi.o 150obj-$(CONFIG_CMD_SPIBOOTLDR) += cmd_spibootldr.o 151obj-$(CONFIG_CMD_STRINGS) += cmd_strings.o 152obj-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o 153obj-$(CONFIG_CMD_TIME) += cmd_time.o 154obj-$(CONFIG_CMD_TRACE) += cmd_trace.o 155obj-$(CONFIG_SYS_HUSH_PARSER) += cmd_test.o 156obj-$(CONFIG_CMD_TPM) += cmd_tpm.o 157obj-$(CONFIG_CMD_TSI148) += cmd_tsi148.o 158obj-$(CONFIG_CMD_UBI) += cmd_ubi.o 159obj-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o 160obj-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o 161obj-$(CONFIG_CMD_UNZIP) += cmd_unzip.o 162ifdef CONFIG_CMD_USB 163obj-y += cmd_usb.o 164obj-y += usb.o usb_hub.o 165obj-$(CONFIG_USB_STORAGE) += usb_storage.o 166endif 167obj-$(CONFIG_CMD_USB_MASS_STORAGE) += cmd_usb_mass_storage.o 168obj-$(CONFIG_CMD_THOR_DOWNLOAD) += cmd_thordown.o 169obj-$(CONFIG_CMD_XIMG) += cmd_ximg.o 170obj-$(CONFIG_YAFFS2) += cmd_yaffs2.o 171obj-$(CONFIG_CMD_SPL) += cmd_spl.o 172obj-$(CONFIG_CMD_ZIP) += cmd_zip.o 173obj-$(CONFIG_CMD_ZFS) += cmd_zfs.o 174 175# others 176obj-$(CONFIG_BOOTSTAGE) += bootstage.o 177obj-$(CONFIG_CONSOLE_MUX) += iomux.o 178obj-y += flash.o 179obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o 180obj-$(CONFIG_I2C_EDID) += edid.o 181obj-$(CONFIG_KALLSYMS) += kallsyms.o 182obj-y += splash.o 183obj-$(CONFIG_LCD) += lcd.o 184obj-$(CONFIG_LYNXKDI) += lynxkdi.o 185obj-$(CONFIG_MENU) += menu.o 186obj-$(CONFIG_MODEM_SUPPORT) += modem.o 187obj-$(CONFIG_UPDATE_TFTP) += update.o 188obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o 189obj-$(CONFIG_CMD_DFU) += cmd_dfu.o 190obj-$(CONFIG_CMD_GPT) += cmd_gpt.o 191endif 192 193ifdef CONFIG_SPL_BUILD 194obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 195obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o 196obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o 197# environment 198obj-$(CONFIG_SPL_ENV_SUPPORT) += env_attr.o 199obj-$(CONFIG_SPL_ENV_SUPPORT) += env_flags.o 200obj-$(CONFIG_SPL_ENV_SUPPORT) += env_callback.o 201ifdef CONFIG_SPL_USB_HOST_SUPPORT 202obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o 203obj-$(CONFIG_USB_STORAGE) += usb_storage.o 204endif 205ifdef CONFIG_SPL_SATA_SUPPORT 206obj-$(CONFIG_CMD_SCSI) += cmd_scsi.o 207endif 208ifneq ($(CONFIG_SPL_NET_SUPPORT),y) 209obj-$(CONFIG_ENV_IS_NOWHERE) += env_nowhere.o 210obj-$(CONFIG_ENV_IS_IN_MMC) += env_mmc.o 211obj-$(CONFIG_ENV_IS_IN_NAND) += env_nand.o 212obj-$(CONFIG_ENV_IS_IN_SPI_FLASH) += env_sf.o 213obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o 214else 215obj-y += env_nowhere.o 216endif 217endif 218# core command 219obj-y += cmd_nvedit.o 220#environment 221obj-y += env_common.o 222#others 223ifdef CONFIG_DDR_SPD 224SPD := y 225endif 226ifdef CONFIG_SPD_EEPROM 227SPD := y 228endif 229obj-$(SPD) += ddr_spd.o 230obj-$(CONFIG_HWCONFIG) += hwconfig.o 231obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o 232obj-y += console.o 233obj-y += dlmalloc.o 234obj-y += image.o 235obj-$(CONFIG_OF_LIBFDT) += image-fdt.o 236obj-$(CONFIG_FIT) += image-fit.o 237obj-$(CONFIG_FIT_SIGNATURE) += image-sig.o 238obj-y += memsize.o 239obj-y += stdio.o 240 241CFLAGS_env_embedded.o := -Wa,--no-warn -DENV_CRC=$(shell tools/envcrc 2>/dev/null) 242CFLAGS_hush.o := $(PLATFORM_NO_UNALIGNED) 243CFLAGS_fdt_support.o := $(PLATFORM_NO_UNALIGNED) 244