Tom Rini | 83d290c | 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 | f932863 | 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 | |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 6 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 7 | |
Simon Glass | 867a6ac | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 8 | obj-$(CONFIG_EFI) += efi/ |
Heinrich Schuchardt | 05ef48a | 2018-01-21 19:29:30 +0100 | [diff] [blame] | 9 | obj-$(CONFIG_EFI_LOADER) += efi_driver/ |
Alexander Graf | ed980b8 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 10 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
Heinrich Schuchardt | f6e7b65 | 2018-09-26 19:03:33 +0200 | [diff] [blame] | 11 | obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/ |
Sughosh Ganu | 8679405 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 12 | obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu_updates/ |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 13 | obj-$(CONFIG_LZMA) += lzma/ |
Masahiro Yamada | f071c50 | 2014-11-28 11:13:26 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_BZIP2) += bzip2/ |
Simon Glass | d138940 | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 15 | obj-$(CONFIG_FIT) += libfdt/ |
Simon Glass | 8b50d52 | 2017-05-18 20:08:55 -0600 | [diff] [blame] | 16 | obj-$(CONFIG_OF_LIVE) += of_live.o |
Simon Glass | d138940 | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
Wenyou Yang | d330e04 | 2017-09-13 14:58:46 +0800 | [diff] [blame] | 18 | obj-$(CONFIG_ARCH_AT91) += at91/ |
Patrick Delaunay | 51827f9 | 2021-09-02 11:56:16 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_OPTEE_LIB) += optee/ |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 20 | |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_AES) += aes.o |
Philippe Reynes | 4df3578 | 2019-12-18 18:25:42 +0100 | [diff] [blame] | 22 | obj-$(CONFIG_AES) += aes/ |
Simon Glass | 3c10dc9 | 2019-12-06 21:41:34 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o |
Heinrich Schuchardt | fbb3ea8 | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 24 | |
| 25 | ifndef API_BUILD |
Simon Glass | 1a46cb6 | 2021-07-02 12:36:17 -0600 | [diff] [blame] | 26 | ifneq ($(CONFIG_CHARSET),) |
Heinrich Schuchardt | f11a164 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 27 | obj-y += charset.o |
| 28 | endif |
Heinrich Schuchardt | fbb3ea8 | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 29 | endif |
Loic Poulain | 334a9b9 | 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 | 60d18d3 | 2013-11-10 10:26:47 -0700 | [diff] [blame] | 37 | obj-y += crc8.o |
Pali Rohár | 1a47e6d | 2022-04-12 11:20:42 +0200 | [diff] [blame] | 38 | obj-y += crc16.o |
Pali Rohár | bb3d71b | 2022-04-12 11:20:40 +0200 | [diff] [blame] | 39 | obj-y += crc16-ccitt.o |
Simon Glass | 10f5f5a | 2015-06-23 15:39:03 -0600 | [diff] [blame] | 40 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
Heiko Schocher | b047d67 | 2014-06-22 06:33:29 +0200 | [diff] [blame] | 41 | obj-$(CONFIG_FIT) += fdtdec_common.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 42 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Alexander Graf | 4b6dddc | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 44 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
Christian Gmeiner | 415eab0 | 2020-11-03 15:34:51 +0100 | [diff] [blame] | 45 | obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o |
Alex Kiernan | c232d14 | 2018-05-29 15:30:52 +0000 | [diff] [blame] | 46 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 47 | obj-y += ldiv.o |
Marek Behún | 83a486b | 2019-04-29 22:40:43 +0200 | [diff] [blame] | 48 | obj-$(CONFIG_XXHASH) += xxhash.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 49 | obj-y += net_utils.o |
| 50 | obj-$(CONFIG_PHYSMEM) += physmem.o |
Simon Glass | 1acab96 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 51 | obj-y += rc4.o |
Pierre Aubert | 91fdabc | 2014-04-24 10:30:06 +0200 | [diff] [blame] | 52 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 53 | obj-$(CONFIG_RBTREE) += rbtree.o |
| 54 | obj-$(CONFIG_BITREVERSE) += bitrev.o |
Heiko Schocher | c068d44 | 2014-06-24 10:10:01 +0200 | [diff] [blame] | 55 | obj-y += list_sort.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 56 | endif |
| 57 | |
Simon Glass | 6307896 | 2018-10-01 12:22:19 -0600 | [diff] [blame] | 58 | obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o |
| 59 | ifeq ($(CONFIG_$(SPL_TPL_)TPM),y) |
Simon Glass | d6a885f | 2021-02-06 14:23:36 -0700 | [diff] [blame] | 60 | obj-$(CONFIG_TPM) += tpm_api.o |
Simon Glass | 6307896 | 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 |
| 63 | endif |
| 64 | |
Simon Glass | 0c16fca | 2023-01-07 14:57:20 -0700 | [diff] [blame] | 65 | obj-$(CONFIG_$(SPL_TPL_)CRC8) += crc8.o |
| 66 | |
Philippe Reynes | e44ec9f | 2022-03-28 22:56:57 +0200 | [diff] [blame] | 67 | obj-y += crypto/ |
| 68 | |
Simon Glass | 0992a90 | 2023-05-04 16:54:57 -0600 | [diff] [blame] | 69 | obj-$(CONFIG_$(SPL_TPL_)ACPI) += acpi/ |
Simon Glass | 8239be6 | 2020-05-06 08:03:56 -0600 | [diff] [blame] | 70 | obj-$(CONFIG_$(SPL_)MD5) += md5.o |
Alexandru Gagniuc | 928a8be | 2021-07-29 11:47:16 -0500 | [diff] [blame] | 71 | obj-$(CONFIG_ECDSA) += ecdsa/ |
Heinrich Schuchardt | 1b27753 | 2020-01-19 09:26:22 +0100 | [diff] [blame] | 72 | obj-$(CONFIG_$(SPL_)RSA) += rsa/ |
Alexandru Gagniuc | 464010b | 2021-05-24 14:28:57 -0500 | [diff] [blame] | 73 | obj-$(CONFIG_HASH) += hash-checksum.o |
Qu Wenruo | 7c3fd5c | 2021-12-27 14:12:07 +0800 | [diff] [blame] | 74 | obj-$(CONFIG_BLAKE2) += blake2/blake2b.o |
Tom Rini | 089df18 | 2017-05-15 12:17:49 -0400 | [diff] [blame] | 75 | obj-$(CONFIG_SHA1) += sha1.o |
| 76 | obj-$(CONFIG_SHA256) += sha256.o |
Alexandru Gagniuc | e60e449 | 2021-09-02 19:54:18 -0500 | [diff] [blame] | 77 | obj-$(CONFIG_SHA512) += sha512.o |
Steffen Jaeckel | 26dd993 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 78 | obj-$(CONFIG_CRYPT_PW) += crypt/ |
Philippe Reynes | fd210fe | 2022-03-28 22:56:56 +0200 | [diff] [blame] | 79 | obj-$(CONFIG_$(SPL_)ASN1_DECODER) += asn1_decoder.o |
Teddy Reed | 51c14cd | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 80 | |
York Sun | 7264f29 | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 81 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
Marek Behún | 8509f22 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 82 | obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ |
York Sun | 7264f29 | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 83 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o |
Jean-Jacques Hiblot | f52bdf4 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 84 | obj-$(CONFIG_$(SPL_)LZO) += lzo/ |
Weijie Gao | 04cb399 | 2020-04-21 09:28:38 +0200 | [diff] [blame] | 85 | obj-$(CONFIG_$(SPL_)LZMA) += lzma/ |
Simon Glass | 048c6e8 | 2018-11-06 15:21:30 -0700 | [diff] [blame] | 86 | obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o |
Jean-Jacques Hiblot | f52bdf4 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 87 | |
Tero Kristo | 7d0f3fb | 2021-06-11 11:45:02 +0300 | [diff] [blame] | 88 | obj-$(CONFIG_$(SPL_)LIB_RATIONAL) += rational.o |
| 89 | |
Igor Opaniuk | 3330584 | 2018-06-03 21:56:37 +0300 | [diff] [blame] | 90 | obj-$(CONFIG_LIBAVB) += libavb/ |
York Sun | 7264f29 | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 91 | |
Philipp Tomsich | 6dced7d | 2017-07-04 11:09:55 +0200 | [diff] [blame] | 92 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ |
Simon Glass | f99cbe4 | 2021-08-07 07:24:07 -0600 | [diff] [blame] | 93 | obj-$(CONFIG_$(SPL_TPL_)OF_REAL) += fdtdec_common.o fdtdec.o |
Simon Glass | 1d76bf2 | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 94 | |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 95 | ifdef CONFIG_SPL_BUILD |
Pali Rohár | bb3d71b | 2022-04-12 11:20:40 +0200 | [diff] [blame] | 96 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16-ccitt.o |
| 97 | obj-$(CONFIG_$(SPL_TPL_)HASH) += crc16-ccitt.o |
| 98 | obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16-ccitt.o |
Simon Glass | d721001 | 2019-12-06 21:41:39 -0700 | [diff] [blame] | 99 | obj-y += net_utils.o |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 100 | endif |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 101 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
Boris Brezillon | 03dcf17 | 2018-12-05 09:26:50 +0100 | [diff] [blame] | 102 | obj-y += qsort.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 103 | obj-y += hashtable.o |
| 104 | obj-y += errno.o |
| 105 | obj-y += display_options.o |
Stephen Warren | 15b5187 | 2016-02-10 15:16:19 -0700 | [diff] [blame] | 106 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 107 | obj-$(CONFIG_BCH) += bch.o |
Pragnesh Patel | 1086047 | 2020-05-29 11:33:24 +0530 | [diff] [blame] | 108 | obj-$(CONFIG_MMC_SPI) += crc7.o |
Simon Glass | e7d285b | 2021-09-25 19:43:24 -0600 | [diff] [blame] | 109 | obj-$(CONFIG_$(SPL_TPL_)CRC32) += crc32.o |
Marek Behún | 85d8bf5 | 2017-09-03 17:00:23 +0200 | [diff] [blame] | 110 | obj-$(CONFIG_CRC32C) += crc32c.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 111 | obj-y += ctype.o |
| 112 | obj-y += div64.o |
Peng Fan | d3329f0 | 2019-06-06 07:59:16 +0000 | [diff] [blame] | 113 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 114 | obj-y += hang.o |
Heiko Schocher | 0c06db5 | 2014-06-24 10:10:03 +0200 | [diff] [blame] | 115 | obj-y += linux_compat.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 116 | obj-y += linux_string.o |
Simon Goldschmidt | a156c47 | 2019-01-14 22:38:22 +0100 | [diff] [blame] | 117 | obj-$(CONFIG_LMB) += lmb.o |
Simon Glass | b7b6509 | 2015-11-08 23:47:47 -0700 | [diff] [blame] | 118 | obj-y += membuff.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 119 | obj-$(CONFIG_REGEX) += slre.o |
| 120 | obj-y += string.o |
Alexander Graf | 1befb38 | 2016-08-19 01:23:21 +0200 | [diff] [blame] | 121 | obj-y += tables_csum.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 122 | obj-y += time.o |
Alexey Brodkin | f8c987f | 2018-06-05 17:17:57 +0300 | [diff] [blame] | 123 | obj-y += hexdump.o |
Sean Anderson | 72eda50 | 2020-10-27 19:55:36 -0400 | [diff] [blame] | 124 | obj-$(CONFIG_GETOPT) += getopt.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 125 | obj-$(CONFIG_TRACE) += trace.o |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 126 | obj-$(CONFIG_LIB_UUID) += uuid.o |
Przemyslaw Marczak | 3c1c68c | 2014-03-25 10:58:19 +0100 | [diff] [blame] | 127 | obj-$(CONFIG_LIB_RAND) += rand.o |
Alex Kiernan | 14ad44a | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 128 | obj-y += panic.o |
Masahiro Yamada | e91df49 | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 129 | |
Simon Glass | 05a8e1a | 2023-02-22 09:34:03 -0700 | [diff] [blame] | 130 | ifeq ($(CONFIG_SPL_BUILD),y) |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 131 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
Simon Glass | 27084c0 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 132 | ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF |
Alex Kiernan | 14ad44a | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 133 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 134 | else |
Simon Glass | 2189d5f | 2019-11-14 12:57:20 -0700 | [diff] [blame] | 135 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 136 | endif |
Alex Kiernan | 14ad44a | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 137 | obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 138 | else |
| 139 | # Main U-Boot always uses the full printf support |
Simon Glass | 2189d5f | 2019-11-14 12:57:20 -0700 | [diff] [blame] | 140 | obj-y += vsprintf.o strto.o |
Andrii Anisov | e87dfb0 | 2020-08-06 12:42:52 +0300 | [diff] [blame] | 141 | obj-$(CONFIG_SSCANF) += sscanf.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 142 | endif |
Philippe Reynes | fd210fe | 2022-03-28 22:56:56 +0200 | [diff] [blame] | 143 | obj-$(CONFIG_$(SPL_)OID_REGISTRY) += oid_registry.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 144 | |
Simon Glass | 67bc59d | 2021-09-25 07:03:07 -0600 | [diff] [blame] | 145 | obj-y += abuf.o |
AKASHI Takahiro | 05429b6 | 2019-11-13 09:44:49 +0900 | [diff] [blame] | 146 | obj-y += date.o |
Heinrich Schuchardt | e94ef57 | 2021-06-12 13:20:07 +0200 | [diff] [blame] | 147 | obj-y += rtc-lib.o |
Keerthy | 805b3ca | 2020-02-12 13:55:03 +0530 | [diff] [blame] | 148 | obj-$(CONFIG_LIB_ELF) += elf.o |
AKASHI Takahiro | 05429b6 | 2019-11-13 09:44:49 +0900 | [diff] [blame] | 149 | |
Kautuk Consul | 1c03ab9 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 150 | obj-$(CONFIG_$(SPL_TPL_)SEMIHOSTING) += semihosting.o |
| 151 | |
AKASHI Takahiro | a9b45e6 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 152 | # |
| 153 | # Build a fast OID lookup registry from include/linux/oid_registry.h |
| 154 | # |
AKASHI Takahiro | a9b45e6 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 155 | $(obj)/oid_registry.o: $(obj)/oid_registry_data.c |
| 156 | |
| 157 | $(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \ |
| 158 | $(srctree)/scripts/build_OID_registry |
| 159 | $(call cmd,build_OID_registry) |
| 160 | |
| 161 | quiet_cmd_build_OID_registry = GEN $@ |
| 162 | cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@ |
| 163 | |
| 164 | clean-files += oid_registry_data.c |
| 165 | |
Masahiro Yamada | e91df49 | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 166 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |