]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | # SPDX-License-Identifier: GPL-2.0+ |
87e33a6f | 2 | # |
f9328639 | 3 | # (C) Copyright 2000-2006 |
87e33a6f | 4 | # Wolfgang Denk, DENX Software Engineering, [email protected]. |
87e33a6f | 5 | |
05bad4aa | 6 | ifndef CONFIG_SPL_BUILD |
fdc36977 | 7 | |
867a6ac8 | 8 | obj-$(CONFIG_EFI) += efi/ |
05ef48a2 | 9 | obj-$(CONFIG_EFI_LOADER) += efi_driver/ |
ed980b8c | 10 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
f6e7b653 | 11 | obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/ |
fdc36977 | 12 | obj-$(CONFIG_LZMA) += lzma/ |
f071c501 | 13 | obj-$(CONFIG_BZIP2) += bzip2/ |
fdc36977 | 14 | obj-$(CONFIG_TIZEN) += tizen/ |
d1389403 | 15 | obj-$(CONFIG_FIT) += libfdt/ |
8b50d526 | 16 | obj-$(CONFIG_OF_LIVE) += of_live.o |
d1389403 | 17 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
d330e04d | 18 | obj-$(CONFIG_ARCH_AT91) += at91/ |
51827f9a | 19 | obj-$(CONFIG_OPTEE_LIB) += optee/ |
ab8a0e06 | 20 | obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o |
b4adf627 | 21 | obj-y += crypto/ |
fdc36977 | 22 | |
0a1a1575 | 23 | obj-$(CONFIG_AES) += aes.o |
4df35781 | 24 | obj-$(CONFIG_AES) += aes/ |
3c10dc95 | 25 | obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o |
fbb3ea80 HS |
26 | |
27 | ifndef API_BUILD | |
1a46cb6c | 28 | ifneq ($(CONFIG_CHARSET),) |
f11a164b HS |
29 | obj-y += charset.o |
30 | endif | |
fbb3ea80 | 31 | endif |
0a1a1575 | 32 | obj-$(CONFIG_USB_TTY) += circbuf.o |
60d18d3f | 33 | obj-y += crc8.o |
0a1a1575 | 34 | obj-y += crc16.o |
10f5f5a9 | 35 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
b047d671 | 36 | obj-$(CONFIG_FIT) += fdtdec_common.o |
0a1a1575 | 37 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
0a1a1575 | 38 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
4b6dddc2 | 39 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
415eab06 | 40 | obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o |
c232d14d | 41 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
0a1a1575 | 42 | obj-y += ldiv.o |
83a486b6 | 43 | obj-$(CONFIG_XXHASH) += xxhash.o |
0a1a1575 MY |
44 | obj-y += net_utils.o |
45 | obj-$(CONFIG_PHYSMEM) += physmem.o | |
1acab96d | 46 | obj-y += rc4.o |
91fdabc6 | 47 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
0a1a1575 MY |
48 | obj-$(CONFIG_RBTREE) += rbtree.o |
49 | obj-$(CONFIG_BITREVERSE) += bitrev.o | |
c068d44a | 50 | obj-y += list_sort.o |
05bad4aa A |
51 | endif |
52 | ||
6307896c SG |
53 | obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o |
54 | ifeq ($(CONFIG_$(SPL_TPL_)TPM),y) | |
55 | obj-y += crc8.o | |
d6a885f0 | 56 | obj-$(CONFIG_TPM) += tpm_api.o |
6307896c SG |
57 | obj-$(CONFIG_TPM_V1) += tpm-v1.o |
58 | obj-$(CONFIG_TPM_V2) += tpm-v2.o | |
59 | endif | |
60 | ||
91fe8b79 | 61 | obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi/ |
8239be61 | 62 | obj-$(CONFIG_$(SPL_)MD5) += md5.o |
928a8be7 | 63 | obj-$(CONFIG_ECDSA) += ecdsa/ |
1b27753a | 64 | obj-$(CONFIG_$(SPL_)RSA) += rsa/ |
464010b0 | 65 | obj-$(CONFIG_HASH) += hash-checksum.o |
089df18b TR |
66 | obj-$(CONFIG_SHA1) += sha1.o |
67 | obj-$(CONFIG_SHA256) += sha256.o | |
e60e4499 | 68 | obj-$(CONFIG_SHA512) += sha512.o |
26dd9936 | 69 | obj-$(CONFIG_CRYPT_PW) += crypt/ |
51c14cd1 | 70 | |
7264f292 | 71 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
8509f22a | 72 | obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ |
7264f292 | 73 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o |
f52bdf4b | 74 | obj-$(CONFIG_$(SPL_)LZO) += lzo/ |
04cb3994 | 75 | obj-$(CONFIG_$(SPL_)LZMA) += lzma/ |
048c6e89 | 76 | obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o |
f52bdf4b | 77 | |
7d0f3fbb TK |
78 | obj-$(CONFIG_$(SPL_)LIB_RATIONAL) += rational.o |
79 | ||
3330584d | 80 | obj-$(CONFIG_LIBAVB) += libavb/ |
7264f292 | 81 | |
6dced7df | 82 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ |
f99cbe4e | 83 | obj-$(CONFIG_$(SPL_TPL_)OF_REAL) += fdtdec_common.o fdtdec.o |
1d76bf22 | 84 | |
24de357a | 85 | ifdef CONFIG_SPL_BUILD |
0a1a1575 | 86 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
07212096 | 87 | obj-$(CONFIG_$(SPL_TPL_)HASH) += crc16.o |
c8291f53 | 88 | obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16.o |
d721001f | 89 | obj-y += net_utils.o |
24de357a | 90 | endif |
0a1a1575 | 91 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
03dcf17d | 92 | obj-y += qsort.o |
0a1a1575 MY |
93 | obj-y += hashtable.o |
94 | obj-y += errno.o | |
95 | obj-y += display_options.o | |
15b51878 | 96 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
0a1a1575 | 97 | obj-$(CONFIG_BCH) += bch.o |
10860470 | 98 | obj-$(CONFIG_MMC_SPI) += crc7.o |
e7d285b2 | 99 | obj-$(CONFIG_$(SPL_TPL_)CRC32) += crc32.o |
85d8bf57 | 100 | obj-$(CONFIG_CRC32C) += crc32c.o |
0a1a1575 MY |
101 | obj-y += ctype.o |
102 | obj-y += div64.o | |
d3329f09 | 103 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o |
0a1a1575 | 104 | obj-y += hang.o |
0c06db59 | 105 | obj-y += linux_compat.o |
0a1a1575 | 106 | obj-y += linux_string.o |
a156c47e | 107 | obj-$(CONFIG_LMB) += lmb.o |
b7b65090 | 108 | obj-y += membuff.o |
0a1a1575 MY |
109 | obj-$(CONFIG_REGEX) += slre.o |
110 | obj-y += string.o | |
1befb38b | 111 | obj-y += tables_csum.o |
0a1a1575 | 112 | obj-y += time.o |
f8c987f8 | 113 | obj-y += hexdump.o |
72eda507 | 114 | obj-$(CONFIG_GETOPT) += getopt.o |
0a1a1575 | 115 | obj-$(CONFIG_TRACE) += trace.o |
4e4815fe | 116 | obj-$(CONFIG_LIB_UUID) += uuid.o |
3c1c68cc | 117 | obj-$(CONFIG_LIB_RAND) += rand.o |
14ad44ab | 118 | obj-y += panic.o |
e91df49f | 119 | |
14ad44ab | 120 | ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y) |
7d9cde10 | 121 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
27084c03 | 122 | ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF |
14ad44ab | 123 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o |
7d9cde10 | 124 | else |
2189d5f1 | 125 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o |
7d9cde10 | 126 | endif |
14ad44ab | 127 | obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o |
7d9cde10 SR |
128 | else |
129 | # Main U-Boot always uses the full printf support | |
2189d5f1 | 130 | obj-y += vsprintf.o strto.o |
4f4d526f | 131 | obj-$(CONFIG_OID_REGISTRY) += oid_registry.o |
e87dfb05 | 132 | obj-$(CONFIG_SSCANF) += sscanf.o |
7d9cde10 SR |
133 | endif |
134 | ||
67bc59df | 135 | obj-y += abuf.o |
05429b6c | 136 | obj-y += date.o |
e94ef579 | 137 | obj-y += rtc-lib.o |
805b3cac | 138 | obj-$(CONFIG_LIB_ELF) += elf.o |
05429b6c | 139 | |
a9b45e6e AT |
140 | # |
141 | # Build a fast OID lookup registry from include/linux/oid_registry.h | |
142 | # | |
a9b45e6e AT |
143 | $(obj)/oid_registry.o: $(obj)/oid_registry_data.c |
144 | ||
145 | $(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \ | |
146 | $(srctree)/scripts/build_OID_registry | |
147 | $(call cmd,build_OID_registry) | |
148 | ||
149 | quiet_cmd_build_OID_registry = GEN $@ | |
150 | cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@ | |
151 | ||
152 | clean-files += oid_registry_data.c | |
153 | ||
e91df49f | 154 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |