1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2000-2006 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 6ifndef CONFIG_SPL_BUILD 7 8obj-$(CONFIG_EFI) += efi/ 9obj-$(CONFIG_EFI_LOADER) += efi_driver/ 10obj-$(CONFIG_EFI_LOADER) += efi_loader/ 11obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/ 12obj-$(CONFIG_LZMA) += lzma/ 13obj-$(CONFIG_BZIP2) += bzip2/ 14obj-$(CONFIG_TIZEN) += tizen/ 15obj-$(CONFIG_FIT) += libfdt/ 16obj-$(CONFIG_OF_LIVE) += of_live.o 17obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ 18obj-$(CONFIG_ARCH_AT91) += at91/ 19obj-$(CONFIG_OPTEE) += optee/ 20obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o 21obj-y += crypto/ 22 23obj-$(CONFIG_AES) += aes.o 24obj-$(CONFIG_AES) += aes/ 25obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o 26 27ifndef API_BUILD 28ifneq ($(CONFIG_UT_UNICODE)$(CONFIG_EFI_LOADER),) 29obj-y += charset.o 30endif 31endif 32obj-$(CONFIG_USB_TTY) += circbuf.o 33obj-y += crc8.o 34obj-y += crc16.o 35obj-$(CONFIG_ERRNO_STR) += errno_str.o 36obj-$(CONFIG_FIT) += fdtdec_common.o 37obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o 38obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o 39obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o 40obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o 41obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o 42obj-y += ldiv.o 43obj-$(CONFIG_XXHASH) += xxhash.o 44obj-y += net_utils.o 45obj-$(CONFIG_PHYSMEM) += physmem.o 46obj-y += rc4.o 47obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o 48obj-$(CONFIG_RBTREE) += rbtree.o 49obj-$(CONFIG_BITREVERSE) += bitrev.o 50obj-y += list_sort.o 51endif 52 53obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o 54ifeq ($(CONFIG_$(SPL_TPL_)TPM),y) 55obj-y += crc8.o 56obj-$(CONFIG_TPM_V1) += tpm-v1.o 57obj-$(CONFIG_TPM_V2) += tpm-v2.o 58endif 59 60obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi/ 61obj-$(CONFIG_$(SPL_)MD5) += md5.o 62obj-$(CONFIG_$(SPL_)RSA) += rsa/ 63obj-$(CONFIG_SHA1) += sha1.o 64obj-$(CONFIG_SHA256) += sha256.o 65obj-$(CONFIG_SHA512_ALGO) += sha512.o 66 67obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ 68obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ 69obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o 70obj-$(CONFIG_$(SPL_)LZO) += lzo/ 71obj-$(CONFIG_$(SPL_)LZMA) += lzma/ 72obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o 73 74obj-$(CONFIG_LIBAVB) += libavb/ 75 76obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ 77ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy) 78obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o 79obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o 80endif 81 82ifdef CONFIG_SPL_BUILD 83obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o 84obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o 85obj-y += net_utils.o 86endif 87obj-$(CONFIG_ADDR_MAP) += addr_map.o 88obj-y += qsort.o 89obj-y += hashtable.o 90obj-y += errno.o 91obj-y += display_options.o 92CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') 93obj-$(CONFIG_BCH) += bch.o 94obj-$(CONFIG_MMC_SPI) += crc7.o 95#ifndef CONFIG_TPL_BUILD 96obj-y += crc32.o 97#endif 98obj-$(CONFIG_CRC32C) += crc32c.o 99obj-y += ctype.o 100obj-y += div64.o 101obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o 102obj-y += hang.o 103obj-y += linux_compat.o 104obj-y += linux_string.o 105obj-$(CONFIG_LMB) += lmb.o 106obj-y += membuff.o 107obj-$(CONFIG_REGEX) += slre.o 108obj-y += string.o 109obj-y += tables_csum.o 110obj-y += time.o 111obj-y += hexdump.o 112obj-$(CONFIG_GETOPT) += getopt.o 113obj-$(CONFIG_TRACE) += trace.o 114obj-$(CONFIG_LIB_UUID) += uuid.o 115obj-$(CONFIG_LIB_RAND) += rand.o 116obj-y += panic.o 117 118ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y) 119# SPL U-Boot may use full-printf, tiny-printf or none at all 120ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF 121obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o 122else 123obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o 124endif 125obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o 126else 127# Main U-Boot always uses the full printf support 128obj-y += vsprintf.o strto.o 129obj-$(CONFIG_OID_REGISTRY) += oid_registry.o 130obj-$(CONFIG_SSCANF) += sscanf.o 131endif 132 133obj-y += date.o 134obj-$(CONFIG_LIB_ELF) += elf.o 135 136# 137# Build a fast OID lookup registry from include/linux/oid_registry.h 138# 139$(obj)/oid_registry.o: $(obj)/oid_registry_data.c 140 141$(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \ 142 $(srctree)/scripts/build_OID_registry 143 $(call cmd,build_OID_registry) 144 145quiet_cmd_build_OID_registry = GEN $@ 146 cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@ 147 148clean-files += oid_registry_data.c 149 150subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 151