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_LZMA) += lzma/
13 obj-$(CONFIG_LZO) += lzo/
14 obj-$(CONFIG_ZLIB) += zlib/
15 obj-$(CONFIG_BZIP2) += bzip2/
16 obj-$(CONFIG_TIZEN) += tizen/
17 obj-$(CONFIG_FIT) += libfdt/
18 obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
20 obj-$(CONFIG_AES) += aes.o
21 obj-$(CONFIG_USB_TTY) += circbuf.o
25 obj-$(CONFIG_ERRNO_STR) += errno_str.o
26 obj-$(CONFIG_FIT) += fdtdec_common.o
27 obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
28 obj-$(CONFIG_GZIP) += gunzip.o
29 obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
31 obj-$(CONFIG_LMB) += lmb.o
33 obj-$(CONFIG_LZ4) += lz4_wrapper.o
34 obj-$(CONFIG_MD5) += md5.o
36 obj-$(CONFIG_PHYSMEM) += physmem.o
39 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
40 obj-$(CONFIG_TPM) += tpm.o
41 obj-$(CONFIG_RBTREE) += rbtree.o
42 obj-$(CONFIG_BITREVERSE) += bitrev.o
46 obj-$(CONFIG_$(SPL_)RSA) += rsa/
47 obj-$(CONFIG_$(SPL_)SHA1) += sha1.o
48 obj-$(CONFIG_$(SPL_)SHA256) += sha256.o
50 obj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/
51 ifneq ($(CONFIG_SPL_BUILD)$(CONFIG_SPL_OF_PLATDATA),yy)
52 obj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec_common.o
53 obj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec.o
56 ifdef CONFIG_SPL_BUILD
57 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
58 obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
60 obj-$(CONFIG_ADDR_MAP) += addr_map.o
63 obj-y += display_options.o
64 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
65 obj-$(CONFIG_BCH) += bch.o
70 obj-y += linux_compat.o
71 obj-y += linux_string.o
73 obj-$(CONFIG_REGEX) += slre.o
76 obj-$(CONFIG_TRACE) += trace.o
77 obj-$(CONFIG_LIB_UUID) += uuid.o
78 obj-$(CONFIG_LIB_RAND) += rand.o
80 ifdef CONFIG_SPL_BUILD
81 # SPL U-Boot may use full-printf, tiny-printf or none at all
82 ifdef CONFIG_USE_TINY_PRINTF
83 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
85 obj-$(CONFIG_SPL_SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
88 # Main U-Boot always uses the full printf support
89 obj-y += vsprintf.o panic.o strto.o strmhz.o
92 subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2