Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2000-2006 |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 5 | |
Simon Glass | 0e84d96 | 2024-09-29 19:49:50 -0600 | [diff] [blame] | 6 | ifndef CONFIG_XPL_BUILD |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 7 | |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 8 | obj-$(CONFIG_EFI) += efi/ |
Heinrich Schuchardt | 11206f4 | 2018-01-21 19:29:30 +0100 | [diff] [blame] | 9 | obj-$(CONFIG_EFI_LOADER) += efi_driver/ |
Alexander Graf | 67ee705 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 10 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
Heinrich Schuchardt | c9e7aa2 | 2018-09-26 19:03:33 +0200 | [diff] [blame] | 11 | obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/ |
Sughosh Ganu | 1cadae2 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 12 | obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu_updates/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 13 | obj-$(CONFIG_LZMA) += lzma/ |
Masahiro Yamada | 423d1b4 | 2014-11-28 11:13:26 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_BZIP2) += bzip2/ |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 15 | obj-$(CONFIG_FIT) += libfdt/ |
Simon Glass | 8ff57ae | 2017-05-18 20:08:55 -0600 | [diff] [blame] | 16 | obj-$(CONFIG_OF_LIVE) += of_live.o |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
Wenyou Yang | 857ad80 | 2017-09-13 14:58:46 +0800 | [diff] [blame] | 18 | obj-$(CONFIG_ARCH_AT91) += at91/ |
Patrick Delaunay | a7ca480 | 2021-09-02 11:56:16 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_OPTEE_LIB) += optee/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 20 | |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_AES) += aes.o |
Philippe Reynes | 3d96470 | 2019-12-18 18:25:42 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_AES) += aes/ |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 23 | obj-$(CONFIG_$(PHASE_)BINMAN_FDT) += binman.o |
Heinrich Schuchardt | 5ae135f | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 24 | |
| 25 | ifndef API_BUILD |
Simon Glass | c17db99 | 2021-07-02 12:36:17 -0600 | [diff] [blame] | 26 | ifneq ($(CONFIG_CHARSET),) |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 27 | obj-y += charset.o |
| 28 | endif |
Heinrich Schuchardt | 5ae135f | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 29 | endif |
Loic Poulain | 12797e6 | 2021-11-25 18:16:14 +0100 | [diff] [blame] | 30 | |
| 31 | ifdef CONFIG_USB_TTY |
| 32 | obj-y += circbuf.o |
| 33 | else |
| 34 | obj-$(CONFIG_CIRCBUF) += circbuf.o |
| 35 | endif |
| 36 | |
Simon Glass | 46e0bc9 | 2013-11-10 10:26:47 -0700 | [diff] [blame] | 37 | obj-y += crc8.o |
Pali Rohár | 13e5039 | 2022-04-12 11:20:42 +0200 | [diff] [blame] | 38 | obj-y += crc16.o |
Pali Rohár | 44406a3 | 2022-04-12 11:20:40 +0200 | [diff] [blame] | 39 | obj-y += crc16-ccitt.o |
Simon Glass | 49d06d2 | 2015-06-23 15:39:03 -0600 | [diff] [blame] | 40 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
Heiko Schocher | 80bff37 | 2014-06-22 06:33:29 +0200 | [diff] [blame] | 41 | obj-$(CONFIG_FIT) += fdtdec_common.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 42 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 44 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
Christian Gmeiner | 1985998 | 2020-11-03 15:34:51 +0100 | [diff] [blame] | 45 | obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o |
Alex Kiernan | c568bcb | 2018-05-29 15:30:52 +0000 | [diff] [blame] | 46 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
Simon Glass | afb5a8a | 2023-08-21 21:16:49 -0600 | [diff] [blame] | 47 | obj-y += initcall.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 48 | obj-y += ldiv.o |
Marek Behún | b139a7f | 2019-04-29 22:40:43 +0200 | [diff] [blame] | 49 | obj-$(CONFIG_XXHASH) += xxhash.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 50 | obj-y += net_utils.o |
| 51 | obj-$(CONFIG_PHYSMEM) += physmem.o |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 52 | obj-y += rc4.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 53 | obj-$(CONFIG_RBTREE) += rbtree.o |
| 54 | obj-$(CONFIG_BITREVERSE) += bitrev.o |
Heiko Schocher | 762320b | 2014-06-24 10:10:01 +0200 | [diff] [blame] | 55 | obj-y += list_sort.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 56 | endif |
| 57 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 58 | obj-$(CONFIG_$(PHASE_)TPM) += tpm-common.o |
| 59 | ifeq ($(CONFIG_$(PHASE_)TPM),y) |
Simon Glass | 3b8692a | 2021-02-06 14:23:36 -0700 | [diff] [blame] | 60 | obj-$(CONFIG_TPM) += tpm_api.o |
Simon Glass | 93a45b1 | 2018-10-01 12:22:19 -0600 | [diff] [blame] | 61 | obj-$(CONFIG_TPM_V1) += tpm-v1.o |
| 62 | obj-$(CONFIG_TPM_V2) += tpm-v2.o |
Ilias Apalodimas | 95537a6 | 2024-06-23 14:48:15 +0300 | [diff] [blame] | 63 | obj-$(CONFIG_EFI_TCG2_PROTOCOL) += tpm_tcg2.o |
| 64 | obj-$(CONFIG_MEASURED_BOOT) += tpm_tcg2.o |
Simon Glass | 93a45b1 | 2018-10-01 12:22:19 -0600 | [diff] [blame] | 65 | endif |
| 66 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 67 | obj-$(CONFIG_$(PHASE_)CRC8) += crc8.o |
| 68 | obj-$(CONFIG_$(PHASE_)CRC16) += crc16.o |
Simon Glass | 2b95b49 | 2023-01-07 14:57:20 -0700 | [diff] [blame] | 69 | |
Philippe Reynes | ef06469 | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 70 | obj-y += crypto/ |
| 71 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 72 | obj-$(CONFIG_$(PHASE_)ACPI) += acpi/ |
Alexandru Gagniuc | 48cb9b8 | 2021-07-29 11:47:16 -0500 | [diff] [blame] | 73 | obj-$(CONFIG_ECDSA) += ecdsa/ |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 74 | obj-$(CONFIG_$(XPL_)RSA) += rsa/ |
Alexandru Gagniuc | 1a69f4d | 2021-05-24 14:28:57 -0500 | [diff] [blame] | 75 | obj-$(CONFIG_HASH) += hash-checksum.o |
Qu Wenruo | b98e8a2 | 2021-12-27 14:12:07 +0800 | [diff] [blame] | 76 | obj-$(CONFIG_BLAKE2) += blake2/blake2b.o |
Raymond Mao | a571b98 | 2024-10-03 14:50:16 -0700 | [diff] [blame] | 77 | |
Tom Rini | f5bea56 | 2024-10-14 13:34:06 -0600 | [diff] [blame^] | 78 | obj-$(CONFIG_$(XPL_)MD5_LEGACY) += md5.o |
| 79 | obj-$(CONFIG_$(XPL_)SHA1_LEGACY) += sha1.o |
| 80 | obj-$(CONFIG_$(XPL_)SHA256_LEGACY) += sha256.o |
| 81 | obj-$(CONFIG_$(XPL_)SHA512_LEGACY) += sha512.o |
Raymond Mao | a571b98 | 2024-10-03 14:50:16 -0700 | [diff] [blame] | 82 | |
Steffen Jaeckel | 229bd51 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 83 | obj-$(CONFIG_CRYPT_PW) += crypt/ |
Tom Rini | f5bea56 | 2024-10-14 13:34:06 -0600 | [diff] [blame^] | 84 | obj-$(CONFIG_$(XPL_)ASN1_DECODER_LEGACY) += asn1_decoder.o |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 85 | |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 86 | obj-$(CONFIG_$(XPL_)ZLIB) += zlib/ |
| 87 | obj-$(CONFIG_$(XPL_)ZSTD) += zstd/ |
| 88 | obj-$(CONFIG_$(XPL_)GZIP) += gunzip.o |
| 89 | obj-$(CONFIG_$(XPL_)LZO) += lzo/ |
| 90 | obj-$(CONFIG_$(XPL_)LZMA) += lzma/ |
| 91 | obj-$(CONFIG_$(XPL_)LZ4) += lz4_wrapper.o |
Jean-Jacques Hiblot | dbde288 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 92 | |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 93 | obj-$(CONFIG_$(XPL_)LIB_RATIONAL) += rational.o |
Tero Kristo | cfbe15c | 2021-06-11 11:45:02 +0300 | [diff] [blame] | 94 | |
Igor Opaniuk | 525d1d8 | 2018-06-03 21:56:37 +0300 | [diff] [blame] | 95 | obj-$(CONFIG_LIBAVB) += libavb/ |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 96 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 97 | obj-$(CONFIG_$(PHASE_)OF_LIBFDT) += libfdt/ |
| 98 | obj-$(CONFIG_$(PHASE_)OF_REAL) += fdtdec_common.o fdtdec.o |
Simon Glass | 49c087e | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 99 | |
Raymond Mao | 87010c3 | 2024-10-03 14:50:15 -0700 | [diff] [blame] | 100 | obj-$(CONFIG_MBEDTLS_LIB) += mbedtls/ |
| 101 | |
Simon Glass | 0e84d96 | 2024-09-29 19:49:50 -0600 | [diff] [blame] | 102 | ifdef CONFIG_XPL_BUILD |
Pali Rohár | 44406a3 | 2022-04-12 11:20:40 +0200 | [diff] [blame] | 103 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16-ccitt.o |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 104 | obj-$(CONFIG_$(PHASE_)HASH) += crc16-ccitt.o |
Pali Rohár | 44406a3 | 2022-04-12 11:20:40 +0200 | [diff] [blame] | 105 | obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16-ccitt.o |
Simon Glass | d70d8d8 | 2019-12-06 21:41:39 -0700 | [diff] [blame] | 106 | obj-y += net_utils.o |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 107 | endif |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 108 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
Boris Brezillon | 619fc68 | 2018-12-05 09:26:50 +0100 | [diff] [blame] | 109 | obj-y += qsort.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 110 | obj-y += hashtable.o |
| 111 | obj-y += errno.o |
| 112 | obj-y += display_options.o |
Stephen Warren | 4f169a0 | 2016-02-10 15:16:19 -0700 | [diff] [blame] | 113 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 114 | obj-$(CONFIG_BCH) += bch.o |
Pragnesh Patel | 116ae92 | 2020-05-29 11:33:24 +0530 | [diff] [blame] | 115 | obj-$(CONFIG_MMC_SPI) += crc7.o |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 116 | obj-$(CONFIG_$(PHASE_)CRC32) += crc32.o |
Marek Behún | cdccc03 | 2017-09-03 17:00:23 +0200 | [diff] [blame] | 117 | obj-$(CONFIG_CRC32C) += crc32c.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 118 | obj-y += ctype.o |
| 119 | obj-y += div64.o |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 120 | obj-$(CONFIG_$(PHASE_)OF_LIBFDT) += fdtdec.o fdtdec_common.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 121 | obj-y += hang.o |
Heiko Schocher | 4f7a9a3 | 2014-06-24 10:10:03 +0200 | [diff] [blame] | 122 | obj-y += linux_compat.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 123 | obj-y += linux_string.o |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 124 | obj-$(CONFIG_$(PHASE_)LMB) += lmb.o |
Simon Glass | 1294ecf | 2015-11-08 23:47:47 -0700 | [diff] [blame] | 125 | obj-y += membuff.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 126 | obj-$(CONFIG_REGEX) += slre.o |
| 127 | obj-y += string.o |
Alexander Graf | ee532d9 | 2016-08-19 01:23:21 +0200 | [diff] [blame] | 128 | obj-y += tables_csum.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 129 | obj-y += time.o |
Alexey Brodkin | 2d2fa49 | 2018-06-05 17:17:57 +0300 | [diff] [blame] | 130 | obj-y += hexdump.o |
Sean Anderson | 3b4a6f5 | 2020-10-27 19:55:36 -0400 | [diff] [blame] | 131 | obj-$(CONFIG_GETOPT) += getopt.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 132 | obj-$(CONFIG_TRACE) += trace.o |
Przemyslaw Marczak | b428514 | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 133 | obj-$(CONFIG_LIB_UUID) += uuid.o |
Przemyslaw Marczak | cd9c268 | 2014-03-25 10:58:19 +0100 | [diff] [blame] | 134 | obj-$(CONFIG_LIB_RAND) += rand.o |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 135 | obj-y += panic.o |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 136 | |
Simon Glass | 0e84d96 | 2024-09-29 19:49:50 -0600 | [diff] [blame] | 137 | ifeq ($(CONFIG_XPL_BUILD),y) |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 138 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 139 | ifdef CONFIG_$(PHASE_)USE_TINY_PRINTF |
| 140 | obj-$(CONFIG_$(PHASE_)SPRINTF) += tiny-printf.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 141 | else |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 142 | obj-$(CONFIG_$(PHASE_)SPRINTF) += vsprintf.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 143 | endif |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 144 | obj-$(CONFIG_$(PHASE_)STRTO) += strto.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 145 | else |
| 146 | # Main U-Boot always uses the full printf support |
Simon Glass | f5c208d | 2019-11-14 12:57:20 -0700 | [diff] [blame] | 147 | obj-y += vsprintf.o strto.o |
Andrii Anisov | 6e29ac4 | 2020-08-06 12:42:52 +0300 | [diff] [blame] | 148 | obj-$(CONFIG_SSCANF) += sscanf.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 149 | endif |
Simon Glass | 86adc2e | 2024-09-29 19:49:53 -0600 | [diff] [blame] | 150 | obj-$(CONFIG_$(XPL_)OID_REGISTRY) += oid_registry.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 151 | |
Simon Glass | 143fa86 | 2021-09-25 07:03:07 -0600 | [diff] [blame] | 152 | obj-y += abuf.o |
Simon Glass | e1edadf | 2024-07-30 08:39:37 -0600 | [diff] [blame] | 153 | obj-y += alist.o |
AKASHI Takahiro | 51ba522 | 2019-11-13 09:44:49 +0900 | [diff] [blame] | 154 | obj-y += date.o |
Heinrich Schuchardt | a581dc1 | 2021-06-12 13:20:07 +0200 | [diff] [blame] | 155 | obj-y += rtc-lib.o |
Keerthy | 76f361a | 2020-02-12 13:55:03 +0530 | [diff] [blame] | 156 | obj-$(CONFIG_LIB_ELF) += elf.o |
AKASHI Takahiro | 51ba522 | 2019-11-13 09:44:49 +0900 | [diff] [blame] | 157 | |
Simon Glass | 4cafa21 | 2024-09-29 19:49:54 -0600 | [diff] [blame] | 158 | obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 159 | |
AKASHI Takahiro | 5492364 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 160 | # |
| 161 | # Build a fast OID lookup registry from include/linux/oid_registry.h |
| 162 | # |
AKASHI Takahiro | 5492364 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 163 | $(obj)/oid_registry.o: $(obj)/oid_registry_data.c |
| 164 | |
| 165 | $(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \ |
| 166 | $(srctree)/scripts/build_OID_registry |
| 167 | $(call cmd,build_OID_registry) |
| 168 | |
| 169 | quiet_cmd_build_OID_registry = GEN $@ |
| 170 | cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@ |
| 171 | |
| 172 | clean-files += oid_registry_data.c |
| 173 | |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 174 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |