]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | # SPDX-License-Identifier: GPL-2.0+ |
72a8cf8d SG |
2 | # |
3 | # (C) Copyright 2004-2006 | |
4 | # Wolfgang Denk, DENX Software Engineering, [email protected]. | |
72a8cf8d SG |
5 | |
6 | ifndef CONFIG_SPL_BUILD | |
7 | # core command | |
2e192b24 SG |
8 | obj-y += boot.o |
9 | obj-$(CONFIG_CMD_BOOTM) += bootm.o | |
10 | obj-y += help.o | |
85ecfd1a | 11 | obj-y += panic.o |
2e192b24 | 12 | obj-y += version.o |
72a8cf8d SG |
13 | |
14 | # command | |
f16a48fe | 15 | obj-$(CONFIG_CMD_ARMFFA) += armffa.o |
a554ee7e | 16 | obj-$(CONFIG_CMD_2048) += 2048.o |
0b885bcf | 17 | obj-$(CONFIG_CMD_ACPI) += acpi.o |
56d0635f | 18 | obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o |
2e192b24 | 19 | obj-$(CONFIG_CMD_AES) += aes.o |
17030c7c | 20 | obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o |
051ebe32 | 21 | obj-$(CONFIG_CMD_ADC) += adc.o |
2e192b24 | 22 | obj-$(CONFIG_CMD_ARMFLASH) += armflash.o |
003357cc | 23 | obj-$(CONFIG_BLK) += blk_common.o |
5d053cca | 24 | obj-$(CONFIG_CMD_BOOTDEV) += bootdev.o |
2d653f68 | 25 | obj-$(CONFIG_CMD_BOOTFLOW) += bootflow.o |
7fca71d0 | 26 | obj-$(CONFIG_CMD_BOOTMETH) += bootmeth.o |
2e192b24 | 27 | obj-$(CONFIG_CMD_SOURCE) += source.o |
db7b7a05 | 28 | obj-$(CONFIG_CMD_BCB) += bcb.o |
2e192b24 | 29 | obj-$(CONFIG_CMD_BDI) += bdinfo.o |
49c752c9 | 30 | obj-$(CONFIG_CMD_BIND) += bind.o |
55b25561 | 31 | obj-$(CONFIG_CMD_BINOP) += binop.o |
bb56da11 | 32 | obj-$(CONFIG_CMD_BLKMAP) += blkmap.o |
4aed2276 | 33 | obj-$(CONFIG_CMD_BLOBLIST) += bloblist.o |
e40cf34a | 34 | obj-$(CONFIG_CMD_BLOCK_CACHE) += blkcache.o |
2e192b24 | 35 | obj-$(CONFIG_CMD_BMP) += bmp.o |
b11ed7d6 | 36 | obj-$(CONFIG_CMD_BOOTCOUNT) += bootcount.o |
b9939336 | 37 | obj-$(CONFIG_CMD_BOOTEFI) += bootefi.o |
2e192b24 | 38 | obj-$(CONFIG_CMD_BOOTMENU) += bootmenu.o |
2e192b24 | 39 | obj-$(CONFIG_CMD_BOOTSTAGE) += bootstage.o |
5db28905 TR |
40 | obj-$(CONFIG_CMD_BOOTZ) += bootz.o |
41 | obj-$(CONFIG_CMD_BOOTI) += booti.o | |
9d845509 | 42 | obj-$(CONFIG_CMD_BTRFS) += btrfs.o |
325141a6 | 43 | obj-$(CONFIG_CMD_BUTTON) += button.o |
690a1d69 | 44 | obj-$(CONFIG_CMD_CAT) += cat.o |
2e192b24 SG |
45 | obj-$(CONFIG_CMD_CACHE) += cache.o |
46 | obj-$(CONFIG_CMD_CBFS) += cbfs.o | |
a0874dc4 | 47 | obj-$(CONFIG_CMD_CEDIT) += cedit.o |
2e192b24 | 48 | obj-$(CONFIG_CMD_CLK) += clk.o |
4e92e60d | 49 | obj-$(CONFIG_CMD_CLS) += cls.o |
61304dbe | 50 | obj-$(CONFIG_CMD_CONFIG) += config.o |
29cfc096 | 51 | obj-$(CONFIG_CMD_CONITRACE) += conitrace.o |
2e192b24 | 52 | obj-$(CONFIG_CMD_CONSOLE) += console.o |
2e192b24 | 53 | obj-$(CONFIG_CMD_CPU) += cpu.o |
2e192b24 SG |
54 | obj-$(CONFIG_CMD_DATE) += date.o |
55 | obj-$(CONFIG_CMD_DEMO) += demo.o | |
6df41b1c | 56 | obj-$(CONFIG_CMD_DM) += dm.o |
2e192b24 | 57 | obj-$(CONFIG_CMD_SOUND) += sound.o |
72a8cf8d | 58 | ifdef CONFIG_POST |
2e192b24 | 59 | obj-$(CONFIG_CMD_DIAG) += diag.o |
72a8cf8d | 60 | endif |
b84acf10 | 61 | obj-$(CONFIG_CMD_ADTIMG) += adtimg.o |
94f6d0d1 | 62 | obj-$(CONFIG_CMD_ABOOTIMG) += abootimg.o |
1f865ee0 | 63 | obj-$(CONFIG_CMD_CYCLIC) += cyclic.o |
c81b460c | 64 | obj-$(CONFIG_CMD_EVENT) += event.o |
2f84e9cf | 65 | obj-$(CONFIG_CMD_EXTENSION) += extension_board.o |
2e192b24 SG |
66 | obj-$(CONFIG_CMD_ECHO) += echo.o |
67 | obj-$(CONFIG_ENV_IS_IN_EEPROM) += eeprom.o | |
68 | obj-$(CONFIG_CMD_EEPROM) += eeprom.o | |
1d32eee4 | 69 | obj-$(CONFIG_EFI) += efi.o efi_common.o |
041840ee | 70 | obj-$(CONFIG_CMD_EFIDEBUG) += efidebug.o efi_common.o |
87d79142 | 71 | obj-$(CONFIG_CMD_EFICONFIG) += eficonfig.o |
c3b5af63 MK |
72 | ifdef CONFIG_CMD_EFICONFIG |
73 | ifdef CONFIG_EFI_MM_COMM_TEE | |
74 | obj-$(CONFIG_EFI_SECURE_BOOT) += eficonfig_sbkey.o | |
75 | endif | |
76 | endif | |
2e192b24 | 77 | obj-$(CONFIG_CMD_ELF) += elf.o |
739941e1 | 78 | obj-$(CONFIG_CMD_EROFS) += erofs.o |
f1f9d4fa | 79 | obj-$(CONFIG_HUSH_PARSER) += exit.o |
2e192b24 SG |
80 | obj-$(CONFIG_CMD_EXT4) += ext4.o |
81 | obj-$(CONFIG_CMD_EXT2) += ext2.o | |
82 | obj-$(CONFIG_CMD_FAT) += fat.o | |
23922e26 | 83 | obj-$(CONFIG_CMD_FDT) += fdt.o |
bba604b6 | 84 | obj-$(CONFIG_CMD_SQUASHFS) += sqfs.o |
e7ee1fd5 | 85 | obj-$(CONFIG_CMD_SELECT_FONT) += font.o |
2e192b24 | 86 | obj-$(CONFIG_CMD_FLASH) += flash.o |
2e192b24 | 87 | obj-$(CONFIG_CMD_FPGA) += fpga.o |
2e192b24 SG |
88 | obj-$(CONFIG_CMD_FPGAD) += fpgad.o |
89 | obj-$(CONFIG_CMD_FS_GENERIC) += fs.o | |
90 | obj-$(CONFIG_CMD_FUSE) += fuse.o | |
e68c03be | 91 | obj-$(CONFIG_CMD_FWU_METADATA) += fwu_mdata.o |
2e192b24 SG |
92 | obj-$(CONFIG_CMD_GETTIME) += gettime.o |
93 | obj-$(CONFIG_CMD_GPIO) += gpio.o | |
33eb0b9e | 94 | obj-$(CONFIG_CMD_HISTORY) += history.o |
666028fc | 95 | obj-$(CONFIG_CMD_HVC) += smccc.o |
2e192b24 SG |
96 | obj-$(CONFIG_CMD_I2C) += i2c.o |
97 | obj-$(CONFIG_CMD_IOTRACE) += iotrace.o | |
98 | obj-$(CONFIG_CMD_HASH) += hash.o | |
aca9814d | 99 | obj-$(CONFIG_CMD_IDE) += ide.o disk.o |
2e192b24 SG |
100 | obj-$(CONFIG_CMD_INI) += ini.o |
101 | obj-$(CONFIG_CMD_IRQ) += irq.o | |
102 | obj-$(CONFIG_CMD_ITEST) += itest.o | |
103 | obj-$(CONFIG_CMD_JFFS2) += jffs2.o | |
104 | obj-$(CONFIG_CMD_CRAMFS) += cramfs.o | |
21c34084 | 105 | obj-$(CONFIG_LED_STATUS_CMD) += legacy_led.o |
ffe2052d | 106 | obj-$(CONFIG_CMD_LED) += led.o |
2e192b24 SG |
107 | obj-$(CONFIG_CMD_LICENSE) += license.o |
108 | obj-y += load.o | |
d5f61f27 | 109 | obj-$(CONFIG_CMD_LOG) += log.o |
e3697908 | 110 | obj-$(CONFIG_CMD_LSBLK) += lsblk.o |
2e192b24 SG |
111 | obj-$(CONFIG_CMD_MD5SUM) += md5sum.o |
112 | obj-$(CONFIG_CMD_MEMORY) += mem.o | |
113 | obj-$(CONFIG_CMD_IO) += io.o | |
2e192b24 | 114 | obj-$(CONFIG_CMD_MII) += mii.o |
3bc0db11 | 115 | obj-$(CONFIG_CMD_MISC) += misc.o |
7d9701db | 116 | obj-$(CONFIG_CMD_MDIO) += mdio.o |
dc0d17c2 | 117 | obj-$(CONFIG_CMD_PAUSE) += pause.o |
16060854 | 118 | obj-$(CONFIG_CMD_SLEEP) += sleep.o |
2e192b24 | 119 | obj-$(CONFIG_CMD_MMC) += mmc.o |
bcc6c574 | 120 | obj-$(CONFIG_CMD_OPTEE_RPMB) += optee_rpmb.o |
480245cf | 121 | obj-$(CONFIG_CMD_MP) += mp.o |
5db66b3a | 122 | obj-$(CONFIG_CMD_MTD) += mtd.o |
2e192b24 | 123 | obj-$(CONFIG_CMD_MTDPARTS) += mtdparts.o |
4a4830cf | 124 | obj-$(CONFIG_CMD_CLONE) += clone.o |
eb446ef6 MR |
125 | ifneq ($(CONFIG_CMD_NAND)$(CONFIG_CMD_SF),) |
126 | obj-y += legacy-mtd-utils.o | |
127 | endif | |
05115abe | 128 | obj-$(CONFIG_CMD_MUX) += mux.o |
2e192b24 SG |
129 | obj-$(CONFIG_CMD_NAND) += nand.o |
130 | obj-$(CONFIG_CMD_NET) += net.o | |
d9721925 | 131 | obj-$(CONFIG_ENV_SUPPORT) += nvedit.o |
49d81fdf | 132 | obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o |
2e192b24 | 133 | obj-$(CONFIG_CMD_ONENAND) += onenand.o |
3bf65cb5 | 134 | obj-$(CONFIG_CMD_OSD) += osd.o |
2e192b24 | 135 | obj-$(CONFIG_CMD_PART) += part.o |
3eaac630 | 136 | obj-$(CONFIG_CMD_PCAP) += pcap.o |
72a8cf8d | 137 | ifdef CONFIG_PCI |
2e192b24 | 138 | obj-$(CONFIG_CMD_PCI) += pci.o |
59b1c9be | 139 | obj-$(CONFIG_CMD_PCI_MPS) += pci_mps.o |
72a8cf8d | 140 | endif |
d5a83139 | 141 | obj-$(CONFIG_CMD_PINMUX) += pinmux.o |
3b65ee34 | 142 | obj-$(CONFIG_CMD_PMC) += pmc.o |
9744d1a5 | 143 | obj-$(CONFIG_CMD_PSTORE) += pstore.o |
9e9a530a | 144 | obj-$(CONFIG_CMD_PWM) += pwm.o |
262cfb5b | 145 | obj-$(CONFIG_CMD_PXE) += pxe.o |
d8970dae | 146 | obj-$(CONFIG_CMD_WOL) += wol.o |
18686590 | 147 | obj-$(CONFIG_CMD_QFW) += qfw.o |
2e192b24 | 148 | obj-$(CONFIG_CMD_READ) += read.o |
8311ac5f | 149 | obj-$(CONFIG_CMD_WRITE) += read.o |
2e192b24 SG |
150 | obj-$(CONFIG_CMD_REGINFO) += reginfo.o |
151 | obj-$(CONFIG_CMD_REISER) += reiser.o | |
152 | obj-$(CONFIG_CMD_REMOTEPROC) += remoteproc.o | |
4f24ac08 | 153 | obj-$(CONFIG_CMD_RNG) += rng.o |
fe3dde3e | 154 | obj-$(CONFIG_CMD_KASLRSEED) += kaslrseed.o |
aacf214d | 155 | obj-$(CONFIG_CMD_RKMTD) += rkmtd.o |
453c95e0 | 156 | obj-$(CONFIG_CMD_ROCKUSB) += rockusb.o |
803a8598 | 157 | obj-$(CONFIG_CMD_RTC) += rtc.o |
2e192b24 SG |
158 | obj-$(CONFIG_SANDBOX) += host.o |
159 | obj-$(CONFIG_CMD_SATA) += sata.o | |
0adc38be | 160 | obj-$(CONFIG_CMD_NVME) += nvme.o |
d66ddafa | 161 | obj-$(CONFIG_SANDBOX) += sb.o |
2e192b24 | 162 | obj-$(CONFIG_CMD_SF) += sf.o |
8055f90b | 163 | obj-$(CONFIG_CMD_SCMI) += scmi.o |
0941f597 | 164 | obj-$(CONFIG_CMD_SCSI) += scsi.o disk.o |
2e192b24 | 165 | obj-$(CONFIG_CMD_SHA1SUM) += sha1sum.o |
41a29f28 | 166 | obj-$(CONFIG_CMD_SEAMA) += seama.o |
2e192b24 | 167 | obj-$(CONFIG_CMD_SETEXPR) += setexpr.o |
f4f8d8bb | 168 | obj-$(CONFIG_CMD_SETEXPR_FMT) += printf.o |
2e192b24 | 169 | obj-$(CONFIG_CMD_SPI) += spi.o |
2e192b24 | 170 | obj-$(CONFIG_CMD_STRINGS) += strings.o |
9de4ec81 | 171 | obj-$(CONFIG_CMD_SMBIOS) += smbios.o |
666028fc | 172 | obj-$(CONFIG_CMD_SMC) += smccc.o |
262cfb5b | 173 | obj-$(CONFIG_CMD_SYSBOOT) += sysboot.o |
4e9bce12 | 174 | obj-$(CONFIG_CMD_STACKPROTECTOR_TEST) += stackprot_test.o |
7f673bb8 | 175 | obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o |
2e192b24 SG |
176 | obj-$(CONFIG_CMD_TERMINAL) += terminal.o |
177 | obj-$(CONFIG_CMD_TIME) += time.o | |
3c7bb897 | 178 | obj-$(CONFIG_CMD_TIMER) += timer.o |
2e192b24 | 179 | obj-$(CONFIG_CMD_TRACE) += trace.o |
f1f9d4fa | 180 | obj-$(CONFIG_HUSH_PARSER) += test.o |
d677bfe2 MR |
181 | obj-$(CONFIG_CMD_TPM) += tpm-common.o |
182 | obj-$(CONFIG_CMD_TPM_V1) += tpm-v1.o | |
2e192b24 | 183 | obj-$(CONFIG_CMD_TPM_TEST) += tpm_test.o |
ff32245b | 184 | obj-$(CONFIG_CMD_TPM_V2) += tpm-v2.o |
bfeba017 | 185 | obj-$(CONFIG_CMD_CROS_EC) += cros_ec.o |
2e192b24 SG |
186 | obj-$(CONFIG_CMD_TSI148) += tsi148.o |
187 | obj-$(CONFIG_CMD_UBI) += ubi.o | |
188 | obj-$(CONFIG_CMD_UBIFS) += ubifs.o | |
189 | obj-$(CONFIG_CMD_UNIVERSE) += universe.o | |
a1732232 | 190 | obj-$(CONFIG_CMD_UNLZ4) += unlz4.o |
2e192b24 | 191 | obj-$(CONFIG_CMD_UNZIP) += unzip.o |
78e12901 | 192 | obj-$(CONFIG_CMD_VIRTIO) += virtio.o |
82a00be3 | 193 | obj-$(CONFIG_CMD_WDT) += wdt.o |
2e192b24 | 194 | obj-$(CONFIG_CMD_LZMADEC) += lzmadec.o |
a539c8bd | 195 | obj-$(CONFIG_CMD_UFS) += ufs.o |
aca9814d | 196 | obj-$(CONFIG_CMD_USB) += usb.o disk.o |
f029f90e SG |
197 | obj-$(CONFIG_CMD_VIDCONSOLE) += video.o |
198 | ||
2e192b24 SG |
199 | obj-$(CONFIG_CMD_FASTBOOT) += fastboot.o |
200 | obj-$(CONFIG_CMD_FS_UUID) += fs_uuid.o | |
72a8cf8d | 201 | |
2e192b24 | 202 | obj-$(CONFIG_CMD_USB_MASS_STORAGE) += usb_mass_storage.o |
2f005695 | 203 | obj-$(CONFIG_CMD_USB_SDP) += usb_gadget_sdp.o |
2e192b24 | 204 | obj-$(CONFIG_CMD_THOR_DOWNLOAD) += thordown.o |
5fe76d46 | 205 | obj-$(CONFIG_CMD_VBE) += vbe.o |
2e192b24 | 206 | obj-$(CONFIG_CMD_XIMG) += ximg.o |
23c0df6e | 207 | obj-$(CONFIG_CMD_XXD) += xxd.o |
7a764318 | 208 | obj-$(CONFIG_CMD_YAFFS2) += yaffs2.o |
2e192b24 | 209 | obj-$(CONFIG_CMD_SPL) += spl.o |
d05266f7 | 210 | obj-$(CONFIG_CMD_W1) += w1.o |
2e192b24 SG |
211 | obj-$(CONFIG_CMD_ZIP) += zip.o |
212 | obj-$(CONFIG_CMD_ZFS) += zfs.o | |
72a8cf8d | 213 | |
2e192b24 SG |
214 | obj-$(CONFIG_CMD_DFU) += dfu.o |
215 | obj-$(CONFIG_CMD_GPT) += gpt.o | |
750c543c | 216 | obj-$(CONFIG_CMD_MBR) += mbr.o |
2e192b24 | 217 | obj-$(CONFIG_CMD_ETHSW) += ethsw.o |
37c4a5f6 | 218 | obj-$(CONFIG_CMD_AXI) += axi.o |
722bc5b5 | 219 | obj-$(CONFIG_CMD_PVBLOCK) += pvblock.o |
72a8cf8d SG |
220 | |
221 | # Power | |
2e192b24 SG |
222 | obj-$(CONFIG_CMD_PMIC) += pmic.o |
223 | obj-$(CONFIG_CMD_REGULATOR) += regulator.o | |
72a8cf8d | 224 | |
2e192b24 | 225 | obj-$(CONFIG_CMD_BLOB) += blob.o |
8e18f34c | 226 | |
60b2f9e7 IO |
227 | # Android Verified Boot 2.0 |
228 | obj-$(CONFIG_CMD_AVB) += avb.o | |
229 | ||
26839e5d JRO |
230 | # Foundries.IO SCP03 |
231 | obj-$(CONFIG_CMD_SCP03) += scp03.o | |
232 | ||
9a068377 | 233 | obj-$(CONFIG_HUSH_SELECTABLE) += cli.o |
6bb39f5d | 234 | |
dab8788a HS |
235 | obj-$(CONFIG_ARM) += arm/ |
236 | obj-$(CONFIG_RISCV) += riscv/ | |
3a5ec035 | 237 | obj-$(CONFIG_SANDBOX) += sandbox/ |
8e18f34c | 238 | obj-$(CONFIG_X86) += x86/ |
3c2a3897 | 239 | |
311106a1 AR |
240 | # Meson |
241 | obj-$(CONFIG_CMD_MESON) += meson/ | |
242 | ||
3c2a3897 | 243 | obj-$(CONFIG_ARCH_MVEBU) += mvebu/ |
1b377a9f TR |
244 | |
245 | # TI | |
246 | obj-$(CONFIG_ARCH_KEYSTONE) += ti/ | |
247 | obj-$(CONFIG_ARCH_K3) += ti/ | |
248 | obj-$(CONFIG_ARCH_OMAP2PLUS) += ti/ | |
c04b9b34 | 249 | endif # !CONFIG_SPL_BUILD |
72a8cf8d | 250 | |
1c79f2ff BS |
251 | obj-$(CONFIG_$(SPL_)CMD_TLV_EEPROM) += tlv_eeprom.o |
252 | ||
ff6a8756 VO |
253 | obj-$(CONFIG_CMD_BCM_EXT_UTILS) += broadcom/ |
254 | ||
61304dbe MY |
255 | filechk_data_gz = (echo "static const char data_gz[] ="; cat $< | scripts/bin2c; echo ";") |
256 | ||
257 | filechk_data_size = \ | |
258 | (echo "static const size_t data_size = "; \ | |
259 | cat $< | wc -c; echo ";") | |
260 | ||
261 | # "config" command | |
262 | $(obj)/config.o: $(obj)/config_data_gz.h $(obj)/config_data_size.h | |
263 | ||
264 | targets += config_data.gz | |
265 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE | |
266 | $(call if_changed,gzip) | |
267 | ||
268 | targets += config_data_gz.h | |
269 | $(obj)/config_data_gz.h: $(obj)/config_data.gz FORCE | |
270 | $(call filechk,data_gz) | |
271 | ||
272 | targets += config_data_size.h | |
273 | $(obj)/config_data_size.h: $(KCONFIG_CONFIG) FORCE | |
274 | $(call filechk,data_size) | |
d726f225 MY |
275 | |
276 | # "license" command | |
277 | $(obj)/license.o: $(obj)/license_data_gz.h $(obj)/license_data_size.h | |
278 | ||
279 | targets += license_data.gz | |
280 | $(obj)/license_data.gz: $(srctree)/Licenses/gpl-2.0.txt FORCE | |
281 | $(call if_changed,gzip) | |
282 | ||
283 | targets += license_data_gz.h | |
284 | $(obj)/license_data_gz.h: $(obj)/license_data.gz FORCE | |
285 | $(call filechk,data_gz) | |
286 | ||
287 | targets += license_data_size.h | |
288 | $(obj)/license_data_size.h: $(srctree)/Licenses/gpl-2.0.txt FORCE | |
289 | $(call filechk,data_size) | |
18b29165 TR |
290 | |
291 | CFLAGS_ethsw.o := -Wno-enum-conversion |