]>
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 |
78178bb0 | 22 | obj-y += charset.o |
0a1a1575 MY |
23 | obj-$(CONFIG_USB_TTY) += circbuf.o |
24 | obj-y += crc7.o | |
60d18d3f | 25 | obj-y += crc8.o |
0a1a1575 | 26 | obj-y += crc16.o |
10f5f5a9 | 27 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
b047d671 | 28 | obj-$(CONFIG_FIT) += fdtdec_common.o |
0a1a1575 | 29 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
0a1a1575 | 30 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
4b6dddc2 | 31 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
c232d14d | 32 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
0a1a1575 MY |
33 | obj-y += initcall.o |
34 | obj-$(CONFIG_LMB) += lmb.o | |
35 | obj-y += ldiv.o | |
027b728d | 36 | obj-$(CONFIG_LZ4) += lz4_wrapper.o |
0a1a1575 MY |
37 | obj-$(CONFIG_MD5) += md5.o |
38 | obj-y += net_utils.o | |
39 | obj-$(CONFIG_PHYSMEM) += physmem.o | |
40 | obj-y += qsort.o | |
1acab96d | 41 | obj-y += rc4.o |
91fdabc6 | 42 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
d677bfe2 MR |
43 | obj-$(CONFIG_TPM) += tpm-common.o |
44 | obj-$(CONFIG_TPM_V1) += tpm-v1.o | |
ff32245b | 45 | obj-$(CONFIG_TPM_V2) += tpm-v2.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 | ||
089df18b TR |
51 | obj-$(CONFIG_RSA) += rsa/ |
52 | obj-$(CONFIG_SHA1) += sha1.o | |
53 | obj-$(CONFIG_SHA256) += sha256.o | |
51c14cd1 | 54 | |
7264f292 YS |
55 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
56 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o | |
f52bdf4b JJH |
57 | obj-$(CONFIG_$(SPL_)LZO) += lzo/ |
58 | ||
7264f292 | 59 | |
6dced7df PT |
60 | obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o |
61 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ | |
62 | ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy) | |
63 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o | |
64 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o | |
7a53a540 | 65 | endif |
1d76bf22 | 66 | |
24de357a | 67 | ifdef CONFIG_SPL_BUILD |
0a1a1575 MY |
68 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
69 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o | |
24de357a | 70 | endif |
0a1a1575 MY |
71 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
72 | obj-y += hashtable.o | |
73 | obj-y += errno.o | |
74 | obj-y += display_options.o | |
15b51878 | 75 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
0a1a1575 MY |
76 | obj-$(CONFIG_BCH) += bch.o |
77 | obj-y += crc32.o | |
85d8bf57 | 78 | obj-$(CONFIG_CRC32C) += crc32c.o |
0a1a1575 MY |
79 | obj-y += ctype.o |
80 | obj-y += div64.o | |
81 | obj-y += hang.o | |
0c06db59 | 82 | obj-y += linux_compat.o |
0a1a1575 | 83 | obj-y += linux_string.o |
b7b65090 | 84 | obj-y += membuff.o |
0a1a1575 MY |
85 | obj-$(CONFIG_REGEX) += slre.o |
86 | obj-y += string.o | |
1befb38b | 87 | obj-y += tables_csum.o |
0a1a1575 | 88 | obj-y += time.o |
f8c987f8 | 89 | obj-y += hexdump.o |
0a1a1575 | 90 | obj-$(CONFIG_TRACE) += trace.o |
4e4815fe | 91 | obj-$(CONFIG_LIB_UUID) += uuid.o |
3c1c68cc | 92 | obj-$(CONFIG_LIB_RAND) += rand.o |
14ad44ab | 93 | obj-y += panic.o |
e91df49f | 94 | |
14ad44ab | 95 | ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y) |
7d9cde10 SR |
96 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
97 | ifdef CONFIG_USE_TINY_PRINTF | |
14ad44ab | 98 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o |
7d9cde10 | 99 | else |
14ad44ab | 100 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o strmhz.o |
7d9cde10 | 101 | endif |
14ad44ab | 102 | obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o |
7d9cde10 SR |
103 | else |
104 | # Main U-Boot always uses the full printf support | |
14ad44ab | 105 | obj-y += vsprintf.o strto.o strmhz.o |
7d9cde10 SR |
106 | endif |
107 | ||
e91df49f | 108 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |