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