]>
Commit | Line | Data |
---|---|---|
87e33a6f | 1 | # |
f9328639 | 2 | # (C) Copyright 2000-2006 |
87e33a6f WD |
3 | # Wolfgang Denk, DENX Software Engineering, [email protected]. |
4 | # | |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
87e33a6f WD |
6 | # |
7 | ||
05bad4aa | 8 | ifndef CONFIG_SPL_BUILD |
fdc36977 | 9 | |
867a6ac8 | 10 | obj-$(CONFIG_EFI) += efi/ |
ed980b8c | 11 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
623b3a57 | 12 | obj-$(CONFIG_EFI_LOADER) += efi_selftest/ |
fdc36977 MY |
13 | obj-$(CONFIG_LZMA) += lzma/ |
14 | obj-$(CONFIG_LZO) += lzo/ | |
f071c501 | 15 | obj-$(CONFIG_BZIP2) += bzip2/ |
fdc36977 | 16 | obj-$(CONFIG_TIZEN) += tizen/ |
d1389403 | 17 | obj-$(CONFIG_FIT) += libfdt/ |
8b50d526 | 18 | obj-$(CONFIG_OF_LIVE) += of_live.o |
d1389403 | 19 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
d330e04d | 20 | obj-$(CONFIG_ARCH_AT91) += at91/ |
fdc36977 | 21 | |
0a1a1575 | 22 | obj-$(CONFIG_AES) += aes.o |
78178bb0 | 23 | obj-y += charset.o |
0a1a1575 MY |
24 | obj-$(CONFIG_USB_TTY) += circbuf.o |
25 | obj-y += crc7.o | |
60d18d3f | 26 | obj-y += crc8.o |
0a1a1575 | 27 | obj-y += crc16.o |
10f5f5a9 | 28 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
b047d671 | 29 | obj-$(CONFIG_FIT) += fdtdec_common.o |
0a1a1575 | 30 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
0a1a1575 | 31 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
4b6dddc2 | 32 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.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 |
0a1a1575 MY |
43 | obj-$(CONFIG_TPM) += tpm.o |
44 | obj-$(CONFIG_RBTREE) += rbtree.o | |
45 | obj-$(CONFIG_BITREVERSE) += bitrev.o | |
c068d44a | 46 | obj-y += list_sort.o |
05bad4aa A |
47 | endif |
48 | ||
089df18b TR |
49 | obj-$(CONFIG_RSA) += rsa/ |
50 | obj-$(CONFIG_SHA1) += sha1.o | |
51 | obj-$(CONFIG_SHA256) += sha256.o | |
51c14cd1 | 52 | |
7264f292 YS |
53 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
54 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o | |
55 | ||
6dced7df PT |
56 | obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o |
57 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ | |
58 | ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy) | |
59 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o | |
60 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o | |
7a53a540 | 61 | endif |
1d76bf22 | 62 | |
24de357a | 63 | ifdef CONFIG_SPL_BUILD |
0a1a1575 MY |
64 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
65 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o | |
24de357a | 66 | endif |
0a1a1575 MY |
67 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
68 | obj-y += hashtable.o | |
69 | obj-y += errno.o | |
70 | obj-y += display_options.o | |
15b51878 | 71 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
0a1a1575 MY |
72 | obj-$(CONFIG_BCH) += bch.o |
73 | obj-y += crc32.o | |
74 | obj-y += ctype.o | |
75 | obj-y += div64.o | |
76 | obj-y += hang.o | |
0c06db59 | 77 | obj-y += linux_compat.o |
0a1a1575 | 78 | obj-y += linux_string.o |
b7b65090 | 79 | obj-y += membuff.o |
0a1a1575 MY |
80 | obj-$(CONFIG_REGEX) += slre.o |
81 | obj-y += string.o | |
1befb38b | 82 | obj-y += tables_csum.o |
0a1a1575 MY |
83 | obj-y += time.o |
84 | obj-$(CONFIG_TRACE) += trace.o | |
4e4815fe | 85 | obj-$(CONFIG_LIB_UUID) += uuid.o |
3c1c68cc | 86 | obj-$(CONFIG_LIB_RAND) += rand.o |
e91df49f | 87 | |
7d9cde10 | 88 | ifdef CONFIG_SPL_BUILD |
76f1f388 SG |
89 | ifdef CONFIG_TPL_BUILD |
90 | SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT) | |
91 | else | |
92 | SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT) | |
93 | endif | |
7d9cde10 SR |
94 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
95 | ifdef CONFIG_USE_TINY_PRINTF | |
76f1f388 | 96 | obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o |
7d9cde10 | 97 | else |
76f1f388 | 98 | obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o |
7d9cde10 SR |
99 | endif |
100 | else | |
101 | # Main U-Boot always uses the full printf support | |
be86492b | 102 | obj-y += vsprintf.o panic.o strto.o strmhz.o |
7d9cde10 SR |
103 | endif |
104 | ||
e91df49f | 105 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |