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/
21 obj-$(CONFIG_OPTEE) += optee/
23 obj-$(CONFIG_AES) += aes.o
25 obj-$(CONFIG_USB_TTY) += circbuf.o
29 obj-$(CONFIG_ERRNO_STR) += errno_str.o
30 obj-$(CONFIG_FIT) += fdtdec_common.o
31 obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
32 obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
33 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
35 obj-$(CONFIG_LMB) += lmb.o
37 obj-$(CONFIG_LZ4) += lz4_wrapper.o
38 obj-$(CONFIG_MD5) += md5.o
40 obj-$(CONFIG_PHYSMEM) += physmem.o
43 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
44 obj-$(CONFIG_TPM) += tpm.o
45 obj-$(CONFIG_RBTREE) += rbtree.o
46 obj-$(CONFIG_BITREVERSE) += bitrev.o
50 obj-$(CONFIG_RSA) += rsa/
51 obj-$(CONFIG_SHA1) += sha1.o
52 obj-$(CONFIG_SHA256) += sha256.o
54 obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
55 obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
56 obj-$(CONFIG_$(SPL_)LZO) += lzo/
59 obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
60 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
61 ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
62 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
63 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
66 ifdef CONFIG_SPL_BUILD
67 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
68 obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
70 obj-$(CONFIG_ADDR_MAP) += addr_map.o
73 obj-y += display_options.o
74 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
75 obj-$(CONFIG_BCH) += bch.o
77 obj-$(CONFIG_CRC32C) += crc32c.o
81 obj-y += linux_compat.o
82 obj-y += linux_string.o
84 obj-$(CONFIG_REGEX) += slre.o
86 obj-y += tables_csum.o
88 obj-$(CONFIG_TRACE) += trace.o
89 obj-$(CONFIG_LIB_UUID) += uuid.o
90 obj-$(CONFIG_LIB_RAND) += rand.o
92 ifdef CONFIG_SPL_BUILD
93 ifdef CONFIG_TPL_BUILD
94 SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
96 SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
98 # SPL U-Boot may use full-printf, tiny-printf or none at all
99 ifdef CONFIG_USE_TINY_PRINTF
100 obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
102 obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
105 # Main U-Boot always uses the full printf support
106 obj-y += vsprintf.o panic.o strto.o strmhz.o
109 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2