]>
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/ |
32ce6179 | 19 | obj-$(CONFIG_OPTEE) += optee/ |
ab8a0e06 | 20 | obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o |
fdc36977 | 21 | |
0a1a1575 | 22 | obj-$(CONFIG_AES) += aes.o |
fbb3ea80 HS |
23 | |
24 | ifndef API_BUILD | |
f11a164b HS |
25 | ifneq ($(CONFIG_UT_UNICODE)$(CONFIG_EFI_LOADER),) |
26 | obj-y += charset.o | |
27 | endif | |
fbb3ea80 | 28 | endif |
0a1a1575 MY |
29 | obj-$(CONFIG_USB_TTY) += circbuf.o |
30 | obj-y += crc7.o | |
60d18d3f | 31 | obj-y += crc8.o |
0a1a1575 | 32 | obj-y += crc16.o |
10f5f5a9 | 33 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
b047d671 | 34 | obj-$(CONFIG_FIT) += fdtdec_common.o |
0a1a1575 | 35 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
0a1a1575 | 36 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
4b6dddc2 | 37 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
c232d14d | 38 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
0a1a1575 MY |
39 | obj-y += ldiv.o |
40 | obj-$(CONFIG_MD5) += md5.o | |
83a486b6 | 41 | obj-$(CONFIG_XXHASH) += xxhash.o |
0a1a1575 MY |
42 | obj-y += net_utils.o |
43 | obj-$(CONFIG_PHYSMEM) += physmem.o | |
1acab96d | 44 | obj-y += rc4.o |
91fdabc6 | 45 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
0a1a1575 MY |
46 | obj-$(CONFIG_RBTREE) += rbtree.o |
47 | obj-$(CONFIG_BITREVERSE) += bitrev.o | |
c068d44a | 48 | obj-y += list_sort.o |
05bad4aa A |
49 | endif |
50 | ||
6307896c SG |
51 | obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o |
52 | ifeq ($(CONFIG_$(SPL_TPL_)TPM),y) | |
53 | obj-y += crc8.o | |
54 | obj-$(CONFIG_TPM_V1) += tpm-v1.o | |
55 | obj-$(CONFIG_TPM_V2) += tpm-v2.o | |
56 | endif | |
57 | ||
089df18b TR |
58 | obj-$(CONFIG_RSA) += rsa/ |
59 | obj-$(CONFIG_SHA1) += sha1.o | |
60 | obj-$(CONFIG_SHA256) += sha256.o | |
51c14cd1 | 61 | |
7264f292 | 62 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
8509f22a | 63 | obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ |
7264f292 | 64 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o |
f52bdf4b | 65 | obj-$(CONFIG_$(SPL_)LZO) += lzo/ |
048c6e89 | 66 | obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o |
f52bdf4b | 67 | |
3330584d | 68 | obj-$(CONFIG_LIBAVB) += libavb/ |
7264f292 | 69 | |
6dced7df PT |
70 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ |
71 | ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy) | |
72 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o | |
73 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o | |
7a53a540 | 74 | endif |
1d76bf22 | 75 | |
24de357a | 76 | ifdef CONFIG_SPL_BUILD |
0a1a1575 | 77 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
51c2345b | 78 | obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o |
0a1a1575 | 79 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
24de357a | 80 | endif |
0a1a1575 | 81 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
03dcf17d | 82 | obj-y += qsort.o |
0a1a1575 MY |
83 | obj-y += hashtable.o |
84 | obj-y += errno.o | |
85 | obj-y += display_options.o | |
15b51878 | 86 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
0a1a1575 MY |
87 | obj-$(CONFIG_BCH) += bch.o |
88 | obj-y += crc32.o | |
85d8bf57 | 89 | obj-$(CONFIG_CRC32C) += crc32c.o |
0a1a1575 MY |
90 | obj-y += ctype.o |
91 | obj-y += div64.o | |
d3329f09 | 92 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o |
0a1a1575 | 93 | obj-y += hang.o |
0c06db59 | 94 | obj-y += linux_compat.o |
0a1a1575 | 95 | obj-y += linux_string.o |
a156c47e | 96 | obj-$(CONFIG_LMB) += lmb.o |
b7b65090 | 97 | obj-y += membuff.o |
0a1a1575 MY |
98 | obj-$(CONFIG_REGEX) += slre.o |
99 | obj-y += string.o | |
1befb38b | 100 | obj-y += tables_csum.o |
0a1a1575 | 101 | obj-y += time.o |
f8c987f8 | 102 | obj-y += hexdump.o |
0a1a1575 | 103 | obj-$(CONFIG_TRACE) += trace.o |
4e4815fe | 104 | obj-$(CONFIG_LIB_UUID) += uuid.o |
3c1c68cc | 105 | obj-$(CONFIG_LIB_RAND) += rand.o |
14ad44ab | 106 | obj-y += panic.o |
e91df49f | 107 | |
14ad44ab | 108 | ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y) |
7d9cde10 | 109 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
27084c03 | 110 | ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF |
14ad44ab | 111 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o |
7d9cde10 | 112 | else |
2189d5f1 | 113 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o |
7d9cde10 | 114 | endif |
14ad44ab | 115 | obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o |
7d9cde10 SR |
116 | else |
117 | # Main U-Boot always uses the full printf support | |
2189d5f1 | 118 | obj-y += vsprintf.o strto.o |
7d9cde10 SR |
119 | endif |
120 | ||
05429b6c AT |
121 | obj-y += date.o |
122 | ||
e91df49f | 123 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |