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_loader/
12 obj-$(CONFIG_EFI_LOADER) += efi_selftest/
13 obj-$(CONFIG_LZMA) += lzma/
14 obj-$(CONFIG_BZIP2) += bzip2/
15 obj-$(CONFIG_TIZEN) += tizen/
16 obj-$(CONFIG_FIT) += libfdt/
17 obj-$(CONFIG_OF_LIVE) += of_live.o
18 obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
19 obj-$(CONFIG_ARCH_AT91) += at91/
21 obj-$(CONFIG_AES) += aes.o
23 obj-$(CONFIG_USB_TTY) += circbuf.o
27 obj-$(CONFIG_ERRNO_STR) += errno_str.o
28 obj-$(CONFIG_FIT) += fdtdec_common.o
29 obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
30 obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
31 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
33 obj-$(CONFIG_LMB) += lmb.o
35 obj-$(CONFIG_LZ4) += lz4_wrapper.o
36 obj-$(CONFIG_MD5) += md5.o
38 obj-$(CONFIG_PHYSMEM) += physmem.o
41 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
42 obj-$(CONFIG_TPM) += tpm.o
43 obj-$(CONFIG_RBTREE) += rbtree.o
44 obj-$(CONFIG_BITREVERSE) += bitrev.o
48 obj-$(CONFIG_RSA) += rsa/
49 obj-$(CONFIG_SHA1) += sha1.o
50 obj-$(CONFIG_SHA256) += sha256.o
52 obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
53 obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
54 obj-$(CONFIG_$(SPL_)LZO) += lzo/
57 obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
58 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
59 ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
60 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
61 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
64 ifdef CONFIG_SPL_BUILD
65 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
66 obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
68 obj-$(CONFIG_ADDR_MAP) += addr_map.o
71 obj-y += display_options.o
72 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
73 obj-$(CONFIG_BCH) += bch.o
75 obj-$(CONFIG_CRC32C) += crc32c.o
79 obj-y += linux_compat.o
80 obj-y += linux_string.o
82 obj-$(CONFIG_REGEX) += slre.o
84 obj-y += tables_csum.o
86 obj-$(CONFIG_TRACE) += trace.o
87 obj-$(CONFIG_LIB_UUID) += uuid.o
88 obj-$(CONFIG_LIB_RAND) += rand.o
90 ifdef CONFIG_SPL_BUILD
91 ifdef CONFIG_TPL_BUILD
92 SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
94 SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
96 # SPL U-Boot may use full-printf, tiny-printf or none at all
97 ifdef CONFIG_USE_TINY_PRINTF
98 obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
100 obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
103 # Main U-Boot always uses the full printf support
104 obj-y += vsprintf.o panic.o strto.o strmhz.o
107 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2