183d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+ 272a8cf8dSSimon Glass# 372a8cf8dSSimon Glass# (C) Copyright 2004-2006 472a8cf8dSSimon Glass# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 572a8cf8dSSimon Glass 672a8cf8dSSimon Glassifndef CONFIG_SPL_BUILD 772a8cf8dSSimon Glass# core command 82e192b24SSimon Glassobj-y += boot.o 9*fe8b5fdaSChia-Wei, Wang 102e192b24SSimon Glassobj-$(CONFIG_CMD_BOOTM) += bootm.o 112e192b24SSimon Glassobj-y += help.o 122e192b24SSimon Glassobj-y += version.o 1372a8cf8dSSimon Glass 1472a8cf8dSSimon Glass# command 152e192b24SSimon Glassobj-$(CONFIG_CMD_AES) += aes.o 16051ebe32SNeil Armstrongobj-$(CONFIG_CMD_ADC) += adc.o 172e192b24SSimon Glassobj-$(CONFIG_CMD_ARMFLASH) += armflash.o 184395f667SSimon Glassobj-y += blk_common.o 192e192b24SSimon Glassobj-$(CONFIG_CMD_SOURCE) += source.o 202e192b24SSimon Glassobj-$(CONFIG_CMD_BDI) += bdinfo.o 212e192b24SSimon Glassobj-$(CONFIG_CMD_BEDBUG) += bedbug.o 2249c752c9SJean-Jacques Hiblotobj-$(CONFIG_CMD_BIND) += bind.o 2355b25561SMario Sixobj-$(CONFIG_CMD_BINOP) += binop.o 24e40cf34aSEric Nelsonobj-$(CONFIG_CMD_BLOCK_CACHE) += blkcache.o 252e192b24SSimon Glassobj-$(CONFIG_CMD_BMP) += bmp.o 26b11ed7d6SAlex Kiernanobj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o 27b9939336SAlexander Grafobj-$(CONFIG_CMD_BOOTEFI) += bootefi.o 282e192b24SSimon Glassobj-$(CONFIG_CMD_BOOTMENU) += bootmenu.o 292e192b24SSimon Glassobj-$(CONFIG_CMD_BOOTSTAGE) += bootstage.o 305db28905STom Riniobj-$(CONFIG_CMD_BOOTZ) += bootz.o 315db28905STom Riniobj-$(CONFIG_CMD_BOOTI) += booti.o 329d845509SMarek Behúnobj-$(CONFIG_CMD_BTRFS) += btrfs.o 332e192b24SSimon Glassobj-$(CONFIG_CMD_CACHE) += cache.o 342e192b24SSimon Glassobj-$(CONFIG_CMD_CBFS) += cbfs.o 352e192b24SSimon Glassobj-$(CONFIG_CMD_CLK) += clk.o 364e92e60dSAnatolij Gustschinobj-$(CONFIG_CMD_CLS) += cls.o 3761304dbeSMasahiro Yamadaobj-$(CONFIG_CMD_CONFIG) += config.o 3829cfc096SHeinrich Schuchardtobj-$(CONFIG_CMD_CONITRACE) += conitrace.o 392e192b24SSimon Glassobj-$(CONFIG_CMD_CONSOLE) += console.o 402e192b24SSimon Glassobj-$(CONFIG_CMD_CPU) += cpu.o 412e192b24SSimon Glassobj-$(CONFIG_DATAFLASH_MMC_SELECT) += dataflash_mmc_mux.o 422e192b24SSimon Glassobj-$(CONFIG_CMD_DATE) += date.o 432e192b24SSimon Glassobj-$(CONFIG_CMD_DEMO) += demo.o 446df41b1cSTom Riniobj-$(CONFIG_CMD_DM) += dm.o 452e192b24SSimon Glassobj-$(CONFIG_CMD_SOUND) += sound.o 4672a8cf8dSSimon Glassifdef CONFIG_POST 472e192b24SSimon Glassobj-$(CONFIG_CMD_DIAG) += diag.o 4872a8cf8dSSimon Glassendif 492e192b24SSimon Glassobj-$(CONFIG_CMD_DISPLAY) += display.o 50d03e76afSSam Protsenkoobj-$(CONFIG_CMD_DTIMG) += dtimg.o 512e192b24SSimon Glassobj-$(CONFIG_CMD_ECHO) += echo.o 522e192b24SSimon Glassobj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o 532e192b24SSimon Glassobj-$(CONFIG_CMD_EEPROM) += eeprom.o 542e192b24SSimon Glassobj-$(CONFIG_EFI_STUB) += efi.o 5559df7e7eSAKASHI Takahiroobj-$(CONFIG_CMD_EFIDEBUG) += efidebug.o 562e192b24SSimon Glassobj-$(CONFIG_CMD_ELF) += elf.o 57f1f9d4faSMasahiro Yamadaobj-$(CONFIG_HUSH_PARSER) += exit.o 582e192b24SSimon Glassobj-$(CONFIG_CMD_EXT4) += ext4.o 592e192b24SSimon Glassobj-$(CONFIG_CMD_EXT2) += ext2.o 602e192b24SSimon Glassobj-$(CONFIG_CMD_FAT) += fat.o 612e192b24SSimon Glassobj-$(CONFIG_CMD_FDC) += fdc.o 6223922e26SMichal Simekobj-$(CONFIG_CMD_FDT) += fdt.o 632e192b24SSimon Glassobj-$(CONFIG_CMD_FITUPD) += fitupd.o 642e192b24SSimon Glassobj-$(CONFIG_CMD_FLASH) += flash.o 652e192b24SSimon Glassobj-$(CONFIG_CMD_FPGA) += fpga.o 662e192b24SSimon Glassobj-$(CONFIG_CMD_FPGAD) += fpgad.o 672e192b24SSimon Glassobj-$(CONFIG_CMD_FS_GENERIC) += fs.o 68ade283d8Sryan_chenobj-$(CONFIG_CMD_FSI) += fsi.o 692e192b24SSimon Glassobj-$(CONFIG_CMD_FUSE) += fuse.o 702e192b24SSimon Glassobj-$(CONFIG_CMD_GETTIME) += gettime.o 712e192b24SSimon Glassobj-$(CONFIG_CMD_GPIO) += gpio.o 72666028fcSMichalis Pappasobj-$(CONFIG_CMD_HVC) += smccc.o 732e192b24SSimon Glassobj-$(CONFIG_CMD_I2C) += i2c.o 742e192b24SSimon Glassobj-$(CONFIG_CMD_IOTRACE) += iotrace.o 752e192b24SSimon Glassobj-$(CONFIG_CMD_HASH) += hash.o 76aca9814dSTom Riniobj-$(CONFIG_CMD_IDE) += ide.o disk.o 772e192b24SSimon Glassobj-$(CONFIG_CMD_INI) += ini.o 782e192b24SSimon Glassobj-$(CONFIG_CMD_IRQ) += irq.o 792e192b24SSimon Glassobj-$(CONFIG_CMD_ITEST) += itest.o 802e192b24SSimon Glassobj-$(CONFIG_CMD_JFFS2) += jffs2.o 812e192b24SSimon Glassobj-$(CONFIG_CMD_CRAMFS) += cramfs.o 8221c34084SSimon Glassobj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o 83ffe2052dSSimon Glassobj-$(CONFIG_CMD_LED) += led.o 842e192b24SSimon Glassobj-$(CONFIG_CMD_LICENSE) += license.o 852e192b24SSimon Glassobj-y += load.o 86d5f61f27SSimon Glassobj-$(CONFIG_CMD_LOG) += log.o 872e192b24SSimon Glassobj-$(CONFIG_ID_EEPROM) += mac.o 882e192b24SSimon Glassobj-$(CONFIG_CMD_MD5SUM) += md5sum.o 892e192b24SSimon Glassobj-$(CONFIG_CMD_MEMORY) += mem.o 902e192b24SSimon Glassobj-$(CONFIG_CMD_IO) += io.o 912e192b24SSimon Glassobj-$(CONFIG_CMD_MFSL) += mfsl.o 922e192b24SSimon Glassobj-$(CONFIG_CMD_MII) += mii.o 9369d5fd8fSJohnny Huangobj-$(CONFIG_CMD_OTP) += otp.o 947c073eb7SJohnny Huangobj-$(CONFIG_CMD_RNG) += rng.o 9572a8cf8dSSimon Glassifdef CONFIG_PHYLIB 962e192b24SSimon Glassobj-$(CONFIG_CMD_MII) += mdio.o 9772a8cf8dSSimon Glassendif 982e192b24SSimon Glassobj-$(CONFIG_CMD_MISC) += misc.o 992e192b24SSimon Glassobj-$(CONFIG_CMD_MMC) += mmc.o 1002e192b24SSimon Glassobj-$(CONFIG_CMD_MMC_SPI) += mmc_spi.o 1012e192b24SSimon Glassobj-$(CONFIG_MP) += mp.o 1025db66b3aSMiquel Raynalobj-$(CONFIG_CMD_MTD) += mtd.o 1032e192b24SSimon Glassobj-$(CONFIG_CMD_MTDPARTS) += mtdparts.o 1042e192b24SSimon Glassobj-$(CONFIG_CMD_NAND) += nand.o 1052e192b24SSimon Glassobj-$(CONFIG_CMD_NET) += net.o 10649d81fdfSAKASHI Takahiroobj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o 1072e192b24SSimon Glassobj-$(CONFIG_CMD_ONENAND) += onenand.o 1083bf65cb5SMario Sixobj-$(CONFIG_CMD_OSD) += osd.o 1092e192b24SSimon Glassobj-$(CONFIG_CMD_PART) += part.o 11072a8cf8dSSimon Glassifdef CONFIG_PCI 1112e192b24SSimon Glassobj-$(CONFIG_CMD_PCI) += pci.o 11272a8cf8dSSimon Glassendif 1132d3beff2SIsmael Luceno Cortesobj-$(CONFIG_CMD_PCMCIA) += pcmcia.o 114d5a83139SPatrice Chotardobj-$(CONFIG_CMD_PINMUX) += pinmux.o 1152e192b24SSimon Glassobj-$(CONFIG_CMD_PXE) += pxe.o 116d8970daeSLothar Feltenobj-$(CONFIG_CMD_WOL) += wol.o 11718686590SMiao Yanobj-$(CONFIG_CMD_QFW) += qfw.o 1182e192b24SSimon Glassobj-$(CONFIG_CMD_READ) += read.o 1192e192b24SSimon Glassobj-$(CONFIG_CMD_REGINFO) += reginfo.o 1202e192b24SSimon Glassobj-$(CONFIG_CMD_REISER) += reiser.o 1212e192b24SSimon Glassobj-$(CONFIG_CMD_REMOTEPROC) += remoteproc.o 122453c95e0SEddie Caiobj-$(CONFIG_CMD_ROCKUSB) += rockusb.o 1232e192b24SSimon Glassobj-$(CONFIG_SANDBOX) += host.o 1242e192b24SSimon Glassobj-$(CONFIG_CMD_SATA) += sata.o 1250adc38beSZhikang Zhangobj-$(CONFIG_CMD_NVME) += nvme.o 126d66ddafaSSimon Glassobj-$(CONFIG_SANDBOX) += sb.o 1272e192b24SSimon Glassobj-$(CONFIG_CMD_SF) += sf.o 1280941f597SSimon Glassobj-$(CONFIG_CMD_SCSI) += scsi.o disk.o 1292e192b24SSimon Glassobj-$(CONFIG_CMD_SHA1SUM) += sha1sum.o 1302e192b24SSimon Glassobj-$(CONFIG_CMD_SETEXPR) += setexpr.o 1312e192b24SSimon Glassobj-$(CONFIG_CMD_SPI) += spi.o 1322e192b24SSimon Glassobj-$(CONFIG_CMD_STRINGS) += strings.o 133666028fcSMichalis Pappasobj-$(CONFIG_CMD_SMC) += smccc.o 1342e192b24SSimon Glassobj-$(CONFIG_CMD_TERMINAL) += terminal.o 1352e192b24SSimon Glassobj-$(CONFIG_CMD_TIME) += time.o 1362e192b24SSimon Glassobj-$(CONFIG_CMD_TRACE) += trace.o 137f1f9d4faSMasahiro Yamadaobj-$(CONFIG_HUSH_PARSER) += test.o 138d677bfe2SMiquel Raynalobj-$(CONFIG_CMD_TPM) += tpm-common.o 139d677bfe2SMiquel Raynalobj-$(CONFIG_CMD_TPM_V1) += tpm-v1.o 1402e192b24SSimon Glassobj-$(CONFIG_CMD_TPM_TEST) += tpm_test.o 141ff32245bSMiquel Raynalobj-$(CONFIG_CMD_TPM_V2) += tpm-v2.o 142bfeba017SMoritz Fischerobj-$(CONFIG_CMD_CROS_EC) += cros_ec.o 1432e192b24SSimon Glassobj-$(CONFIG_CMD_TSI148) += tsi148.o 1442e192b24SSimon Glassobj-$(CONFIG_CMD_UBI) += ubi.o 1452e192b24SSimon Glassobj-$(CONFIG_CMD_UBIFS) += ubifs.o 1462e192b24SSimon Glassobj-$(CONFIG_CMD_UNIVERSE) += universe.o 1472e192b24SSimon Glassobj-$(CONFIG_CMD_UNZIP) += unzip.o 14878e12901STuomas Tynkkynenobj-$(CONFIG_CMD_VIRTIO) += virtio.o 1492e192b24SSimon Glassobj-$(CONFIG_CMD_LZMADEC) += lzmadec.o 15072a8cf8dSSimon Glass 151aca9814dSTom Riniobj-$(CONFIG_CMD_USB) += usb.o disk.o 1522e192b24SSimon Glassobj-$(CONFIG_CMD_FASTBOOT) += fastboot.o 1532e192b24SSimon Glassobj-$(CONFIG_CMD_FS_UUID) += fs_uuid.o 15472a8cf8dSSimon Glass 1552e192b24SSimon Glassobj-$(CONFIG_CMD_USB_MASS_STORAGE) += usb_mass_storage.o 1562f005695SStefan Agnerobj-$(CONFIG_CMD_USB_SDP) += usb_gadget_sdp.o 1572e192b24SSimon Glassobj-$(CONFIG_CMD_THOR_DOWNLOAD) += thordown.o 1582e192b24SSimon Glassobj-$(CONFIG_CMD_XIMG) += ximg.o 1597a764318SSimon Glassobj-$(CONFIG_CMD_YAFFS2) += yaffs2.o 1602e192b24SSimon Glassobj-$(CONFIG_CMD_SPL) += spl.o 161d05266f7SEugen Hristevobj-$(CONFIG_CMD_W1) += w1.o 1622e192b24SSimon Glassobj-$(CONFIG_CMD_ZIP) += zip.o 1632e192b24SSimon Glassobj-$(CONFIG_CMD_ZFS) += zfs.o 16472a8cf8dSSimon Glass 1652e192b24SSimon Glassobj-$(CONFIG_CMD_DFU) += dfu.o 1662e192b24SSimon Glassobj-$(CONFIG_CMD_GPT) += gpt.o 1672e192b24SSimon Glassobj-$(CONFIG_CMD_ETHSW) += ethsw.o 16837c4a5f6SMario Sixobj-$(CONFIG_CMD_AXI) += axi.o 16972a8cf8dSSimon Glass 17072a8cf8dSSimon Glass# Power 1712e192b24SSimon Glassobj-$(CONFIG_CMD_PMIC) += pmic.o 1722e192b24SSimon Glassobj-$(CONFIG_CMD_REGULATOR) += regulator.o 17372a8cf8dSSimon Glass 1742e192b24SSimon Glassobj-$(CONFIG_CMD_BLOB) += blob.o 1758e18f34cSTom Rini 17660b2f9e7SIgor Opaniuk# Android Verified Boot 2.0 17760b2f9e7SIgor Opaniukobj-$(CONFIG_CMD_AVB) += avb.o 17860b2f9e7SIgor Opaniuk 1798e18f34cSTom Riniobj-$(CONFIG_X86) += x86/ 1803c2a3897SKonstantin Porotchkin 1813c2a3897SKonstantin Porotchkinobj-$(CONFIG_ARCH_MVEBU) += mvebu/ 18272a8cf8dSSimon Glass 1831ab24dc2Sryan_chenobj-$(CONFIG_ARCH_ASPEED) += aspeed/ 1849df36161SDylan Hung 185b1c482d5SChia-Wei, Wangendif # !CONFIG_SPL_BUILD 186b1c482d5SChia-Wei, Wang 18772a8cf8dSSimon Glass# core command 1882e192b24SSimon Glassobj-y += nvedit.o 189fa61ef6bSKonstantin Porotchkin 1905cd9661dSLokesh Vutlaobj-$(CONFIG_TI_COMMON_CMD_OPTIONS) += ti/ 19161304dbeSMasahiro Yamada 19261304dbeSMasahiro Yamadafilechk_data_gz = (echo "static const char data_gz[] ="; cat $< | scripts/bin2c; echo ";") 19361304dbeSMasahiro Yamada 19461304dbeSMasahiro Yamadafilechk_data_size = \ 19561304dbeSMasahiro Yamada (echo "static const size_t data_size = "; \ 19661304dbeSMasahiro Yamada cat $< | wc -c; echo ";") 19761304dbeSMasahiro Yamada 19861304dbeSMasahiro Yamada# "config" command 19961304dbeSMasahiro Yamada$(obj)/config.o: $(obj)/config_data_gz.h $(obj)/config_data_size.h 20061304dbeSMasahiro Yamada 20161304dbeSMasahiro Yamadatargets += config_data.gz 20261304dbeSMasahiro Yamada$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE 20361304dbeSMasahiro Yamada $(call if_changed,gzip) 20461304dbeSMasahiro Yamada 20561304dbeSMasahiro Yamadatargets += config_data_gz.h 20661304dbeSMasahiro Yamada$(obj)/config_data_gz.h: $(obj)/config_data.gz FORCE 20761304dbeSMasahiro Yamada $(call filechk,data_gz) 20861304dbeSMasahiro Yamada 20961304dbeSMasahiro Yamadatargets += config_data_size.h 21061304dbeSMasahiro Yamada$(obj)/config_data_size.h: $(KCONFIG_CONFIG) FORCE 21161304dbeSMasahiro Yamada $(call filechk,data_size) 212d726f225SMasahiro Yamada 213d726f225SMasahiro Yamada# "license" command 214d726f225SMasahiro Yamada$(obj)/license.o: $(obj)/license_data_gz.h $(obj)/license_data_size.h 215d726f225SMasahiro Yamada 216d726f225SMasahiro Yamadatargets += license_data.gz 217d726f225SMasahiro Yamada$(obj)/license_data.gz: $(srctree)/Licenses/gpl-2.0.txt FORCE 218d726f225SMasahiro Yamada $(call if_changed,gzip) 219d726f225SMasahiro Yamada 220d726f225SMasahiro Yamadatargets += license_data_gz.h 221d726f225SMasahiro Yamada$(obj)/license_data_gz.h: $(obj)/license_data.gz FORCE 222d726f225SMasahiro Yamada $(call filechk,data_gz) 223d726f225SMasahiro Yamada 224d726f225SMasahiro Yamadatargets += license_data_size.h 225d726f225SMasahiro Yamada$(obj)/license_data_size.h: $(srctree)/Licenses/gpl-2.0.txt FORCE 226d726f225SMasahiro Yamada $(call filechk,data_size) 22718b29165STom Rini 22818b29165STom RiniCFLAGS_ethsw.o := -Wno-enum-conversion 229