2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 ifndef CONFIG_SPL_BUILD
10 obj-$(CONFIG_EFI) += efi/
11 obj-$(CONFIG_EFI_LOADER) += efi_driver/
12 obj-$(CONFIG_EFI_LOADER) += efi_loader/
13 obj-$(CONFIG_EFI_LOADER) += efi_selftest/
14 obj-$(CONFIG_LZMA) += lzma/
15 obj-$(CONFIG_BZIP2) += bzip2/
16 obj-$(CONFIG_TIZEN) += tizen/
17 obj-$(CONFIG_FIT) += libfdt/
18 obj-$(CONFIG_OF_LIVE) += of_live.o
19 obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
20 obj-$(CONFIG_ARCH_AT91) += at91/
22 obj-$(CONFIG_AES) += aes.o
24 obj-$(CONFIG_USB_TTY) += circbuf.o
28 obj-$(CONFIG_ERRNO_STR) += errno_str.o
29 obj-$(CONFIG_FIT) += fdtdec_common.o
30 obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
31 obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
32 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
34 obj-$(CONFIG_LMB) += lmb.o
36 obj-$(CONFIG_LZ4) += lz4_wrapper.o
37 obj-$(CONFIG_MD5) += md5.o
39 obj-$(CONFIG_PHYSMEM) += physmem.o
42 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
43 obj-$(CONFIG_TPM) += tpm.o
44 obj-$(CONFIG_RBTREE) += rbtree.o
45 obj-$(CONFIG_BITREVERSE) += bitrev.o
49 obj-$(CONFIG_RSA) += rsa/
50 obj-$(CONFIG_SHA1) += sha1.o
51 obj-$(CONFIG_SHA256) += sha256.o
53 obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
54 obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
55 obj-$(CONFIG_$(SPL_)LZO) += lzo/
58 obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
59 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
60 ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
61 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
62 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
65 ifdef CONFIG_SPL_BUILD
66 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
67 obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
69 obj-$(CONFIG_ADDR_MAP) += addr_map.o
72 obj-y += display_options.o
73 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
74 obj-$(CONFIG_BCH) += bch.o
76 obj-$(CONFIG_CRC32C) += crc32c.o
80 obj-y += linux_compat.o
81 obj-y += linux_string.o
83 obj-$(CONFIG_REGEX) += slre.o
85 obj-y += tables_csum.o
87 obj-$(CONFIG_TRACE) += trace.o
88 obj-$(CONFIG_LIB_UUID) += uuid.o
89 obj-$(CONFIG_LIB_RAND) += rand.o
91 ifdef CONFIG_SPL_BUILD
92 ifdef CONFIG_TPL_BUILD
93 SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
95 SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
97 # SPL U-Boot may use full-printf, tiny-printf or none at all
98 ifdef CONFIG_USE_TINY_PRINTF
99 obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
101 obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
104 # Main U-Boot always uses the full printf support
105 obj-y += vsprintf.o panic.o strto.o strmhz.o
108 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2