1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2000-2006
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 ifndef CONFIG_SPL_BUILD
8 obj-$(CONFIG_EFI) += efi/
9 obj-$(CONFIG_EFI_LOADER) += efi_driver/
10 obj-$(CONFIG_EFI_LOADER) += efi_loader/
11 obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/
12 obj-$(CONFIG_LZMA) += lzma/
13 obj-$(CONFIG_BZIP2) += bzip2/
14 obj-$(CONFIG_TIZEN) += tizen/
15 obj-$(CONFIG_FIT) += libfdt/
16 obj-$(CONFIG_OF_LIVE) += of_live.o
17 obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
18 obj-$(CONFIG_ARCH_AT91) += at91/
19 obj-$(CONFIG_OPTEE) += optee/
21 obj-$(CONFIG_AES) += aes.o
24 ifneq ($(CONFIG_UT_UNICODE)$(CONFIG_EFI_LOADER),)
28 obj-$(CONFIG_USB_TTY) += circbuf.o
32 obj-$(CONFIG_ERRNO_STR) += errno_str.o
33 obj-$(CONFIG_FIT) += fdtdec_common.o
34 obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
35 obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
36 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
37 obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o
39 obj-$(CONFIG_MD5) += md5.o
41 obj-$(CONFIG_PHYSMEM) += physmem.o
43 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
44 obj-$(CONFIG_RBTREE) += rbtree.o
45 obj-$(CONFIG_BITREVERSE) += bitrev.o
49 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o
50 ifeq ($(CONFIG_$(SPL_TPL_)TPM),y)
52 obj-$(CONFIG_TPM_V1) += tpm-v1.o
53 obj-$(CONFIG_TPM_V2) += tpm-v2.o
56 obj-$(CONFIG_RSA) += rsa/
57 obj-$(CONFIG_SHA1) += sha1.o
58 obj-$(CONFIG_SHA256) += sha256.o
60 obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
61 obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
62 obj-$(CONFIG_$(SPL_)LZO) += lzo/
63 obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o
65 obj-$(CONFIG_LIBAVB) += libavb/
67 obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
68 ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
69 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
70 obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
73 ifdef CONFIG_SPL_BUILD
74 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
75 obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o
76 obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
78 obj-$(CONFIG_ADDR_MAP) += addr_map.o
82 obj-y += display_options.o
83 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
84 obj-$(CONFIG_BCH) += bch.o
86 obj-$(CONFIG_CRC32C) += crc32c.o
89 obj-$(CONFIG_OF_LIBFDT) += fdtdec.o
91 obj-y += linux_compat.o
92 obj-y += linux_string.o
93 obj-$(CONFIG_LMB) += lmb.o
95 obj-$(CONFIG_REGEX) += slre.o
97 obj-y += tables_csum.o
100 obj-$(CONFIG_TRACE) += trace.o
101 obj-$(CONFIG_LIB_UUID) += uuid.o
102 obj-$(CONFIG_LIB_RAND) += rand.o
105 ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y)
106 # SPL U-Boot may use full-printf, tiny-printf or none at all
107 ifdef CONFIG_USE_TINY_PRINTF
108 obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o
110 obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o strmhz.o
112 obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o
114 # Main U-Boot always uses the full printf support
115 obj-y += vsprintf.o strto.o strmhz.o
118 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2