2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-07-20 18:56:22 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-20 18:56:22 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2011-07-13 05:11:06 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-11-18 02:17:30 +00:00
|
|
|
|
2015-07-31 15:31:36 +00:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2018-01-21 18:29:30 +00:00
|
|
|
obj-$(CONFIG_EFI_LOADER) += efi_driver/
|
2016-03-04 00:10:07 +00:00
|
|
|
obj-$(CONFIG_EFI_LOADER) += efi_loader/
|
2018-09-26 17:03:33 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/
|
2022-10-21 12:46:03 +00:00
|
|
|
obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu_updates/
|
2013-11-18 02:17:30 +00:00
|
|
|
obj-$(CONFIG_LZMA) += lzma/
|
2014-11-28 02:13:26 +00:00
|
|
|
obj-$(CONFIG_BZIP2) += bzip2/
|
2015-06-23 21:38:23 +00:00
|
|
|
obj-$(CONFIG_FIT) += libfdt/
|
2017-05-19 02:08:55 +00:00
|
|
|
obj-$(CONFIG_OF_LIVE) += of_live.o
|
2015-06-23 21:38:23 +00:00
|
|
|
obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
|
2017-09-13 06:58:46 +00:00
|
|
|
obj-$(CONFIG_ARCH_AT91) += at91/
|
2021-09-02 09:56:16 +00:00
|
|
|
obj-$(CONFIG_OPTEE_LIB) += optee/
|
2013-11-18 02:17:30 +00:00
|
|
|
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_AES) += aes.o
|
2019-12-18 17:25:42 +00:00
|
|
|
obj-$(CONFIG_AES) += aes/
|
2019-12-07 04:41:34 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o
|
2018-08-31 19:31:25 +00:00
|
|
|
|
|
|
|
ifndef API_BUILD
|
2021-07-02 18:36:17 +00:00
|
|
|
ifneq ($(CONFIG_CHARSET),)
|
2018-08-31 19:31:28 +00:00
|
|
|
obj-y += charset.o
|
|
|
|
endif
|
2018-08-31 19:31:25 +00:00
|
|
|
endif
|
2021-11-25 17:16:14 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_USB_TTY
|
|
|
|
obj-y += circbuf.o
|
|
|
|
else
|
|
|
|
obj-$(CONFIG_CIRCBUF) += circbuf.o
|
|
|
|
endif
|
|
|
|
|
2013-11-10 17:26:47 +00:00
|
|
|
obj-y += crc8.o
|
2022-04-12 09:20:42 +00:00
|
|
|
obj-y += crc16.o
|
2022-04-12 09:20:40 +00:00
|
|
|
obj-y += crc16-ccitt.o
|
2015-06-23 21:39:03 +00:00
|
|
|
obj-$(CONFIG_ERRNO_STR) += errno_str.o
|
2014-06-22 04:33:29 +00:00
|
|
|
obj-$(CONFIG_FIT) += fdtdec_common.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
|
|
|
|
obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
|
2016-08-18 23:23:23 +00:00
|
|
|
obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
|
2020-11-03 14:34:51 +00:00
|
|
|
obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o
|
2018-05-29 15:30:52 +00:00
|
|
|
obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o
|
2023-08-22 03:16:49 +00:00
|
|
|
obj-y += initcall.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += ldiv.o
|
2019-04-29 20:40:43 +00:00
|
|
|
obj-$(CONFIG_XXHASH) += xxhash.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += net_utils.o
|
|
|
|
obj-$(CONFIG_PHYSMEM) += physmem.o
|
2015-06-23 21:39:07 +00:00
|
|
|
obj-y += rc4.o
|
2014-04-24 08:30:06 +00:00
|
|
|
obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_RBTREE) += rbtree.o
|
|
|
|
obj-$(CONFIG_BITREVERSE) += bitrev.o
|
2014-06-24 08:10:01 +00:00
|
|
|
obj-y += list_sort.o
|
2011-07-13 05:11:06 +00:00
|
|
|
endif
|
|
|
|
|
2018-10-01 18:22:19 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o
|
|
|
|
ifeq ($(CONFIG_$(SPL_TPL_)TPM),y)
|
2021-02-06 21:23:36 +00:00
|
|
|
obj-$(CONFIG_TPM) += tpm_api.o
|
2018-10-01 18:22:19 +00:00
|
|
|
obj-$(CONFIG_TPM_V1) += tpm-v1.o
|
|
|
|
obj-$(CONFIG_TPM_V2) += tpm-v2.o
|
|
|
|
endif
|
|
|
|
|
2023-01-07 21:57:20 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)CRC8) += crc8.o
|
|
|
|
|
2022-03-28 20:56:57 +00:00
|
|
|
obj-y += crypto/
|
|
|
|
|
2023-05-04 22:54:57 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ACPI) += acpi/
|
2020-05-06 14:03:56 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)MD5) += md5.o
|
2021-07-29 16:47:16 +00:00
|
|
|
obj-$(CONFIG_ECDSA) += ecdsa/
|
2020-01-19 08:26:22 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)RSA) += rsa/
|
2021-05-24 19:28:57 +00:00
|
|
|
obj-$(CONFIG_HASH) += hash-checksum.o
|
2021-12-27 06:12:07 +00:00
|
|
|
obj-$(CONFIG_BLAKE2) += blake2/blake2b.o
|
2023-08-23 14:56:27 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)SHA1) += sha1.o
|
|
|
|
obj-$(CONFIG_$(SPL_)SHA256) += sha256.o
|
|
|
|
obj-$(CONFIG_$(SPL_)SHA512) += sha512.o
|
2021-07-08 13:57:33 +00:00
|
|
|
obj-$(CONFIG_CRYPT_PW) += crypt/
|
2022-03-28 20:56:56 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)ASN1_DECODER) += asn1_decoder.o
|
2016-06-10 02:18:44 +00:00
|
|
|
|
2017-08-15 18:14:43 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
|
2019-04-29 20:40:44 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)ZSTD) += zstd/
|
2017-08-15 18:14:43 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
|
2017-09-15 10:57:30 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)LZO) += lzo/
|
2020-04-21 07:28:38 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)LZMA) += lzma/
|
2018-11-06 22:21:30 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o
|
2017-09-15 10:57:30 +00:00
|
|
|
|
2021-06-11 08:45:02 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)LIB_RATIONAL) += rational.o
|
|
|
|
|
2018-06-03 18:56:37 +00:00
|
|
|
obj-$(CONFIG_LIBAVB) += libavb/
|
2017-08-15 18:14:43 +00:00
|
|
|
|
2017-07-04 09:09:55 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
|
2021-08-07 13:24:07 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_REAL) += fdtdec_common.o fdtdec.o
|
2015-02-28 05:06:40 +00:00
|
|
|
|
2012-01-31 12:03:57 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2022-04-12 09:20:40 +00:00
|
|
|
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16-ccitt.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)HASH) += crc16-ccitt.o
|
|
|
|
obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16-ccitt.o
|
2019-12-07 04:41:39 +00:00
|
|
|
obj-y += net_utils.o
|
2012-01-31 12:03:57 +00:00
|
|
|
endif
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_ADDR_MAP) += addr_map.o
|
2018-12-05 08:26:50 +00:00
|
|
|
obj-y += qsort.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += hashtable.o
|
|
|
|
obj-y += errno.o
|
|
|
|
obj-y += display_options.o
|
2016-02-10 22:16:19 +00:00
|
|
|
CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_BCH) += bch.o
|
2020-05-29 06:03:24 +00:00
|
|
|
obj-$(CONFIG_MMC_SPI) += crc7.o
|
2021-09-26 01:43:24 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)CRC32) += crc32.o
|
2017-09-03 15:00:23 +00:00
|
|
|
obj-$(CONFIG_CRC32C) += crc32c.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += ctype.o
|
|
|
|
obj-y += div64.o
|
2019-06-06 07:59:16 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += hang.o
|
2014-06-24 08:10:03 +00:00
|
|
|
obj-y += linux_compat.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += linux_string.o
|
2019-01-14 21:38:22 +00:00
|
|
|
obj-$(CONFIG_LMB) += lmb.o
|
2015-11-09 06:47:47 +00:00
|
|
|
obj-y += membuff.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_REGEX) += slre.o
|
|
|
|
obj-y += string.o
|
2016-08-18 23:23:21 +00:00
|
|
|
obj-y += tables_csum.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-y += time.o
|
2018-06-05 14:17:57 +00:00
|
|
|
obj-y += hexdump.o
|
2020-10-27 23:55:36 +00:00
|
|
|
obj-$(CONFIG_GETOPT) += getopt.o
|
2013-10-17 08:35:01 +00:00
|
|
|
obj-$(CONFIG_TRACE) += trace.o
|
2014-04-02 08:20:04 +00:00
|
|
|
obj-$(CONFIG_LIB_UUID) += uuid.o
|
2014-03-25 09:58:19 +00:00
|
|
|
obj-$(CONFIG_LIB_RAND) += rand.o
|
2018-04-19 04:32:54 +00:00
|
|
|
obj-y += panic.o
|
2014-03-05 07:59:37 +00:00
|
|
|
|
2023-02-22 16:34:03 +00:00
|
|
|
ifeq ($(CONFIG_SPL_BUILD),y)
|
2015-11-23 06:00:22 +00:00
|
|
|
# SPL U-Boot may use full-printf, tiny-printf or none at all
|
2019-09-25 14:56:27 +00:00
|
|
|
ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF
|
2018-04-19 04:32:54 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o
|
2015-11-23 06:00:22 +00:00
|
|
|
else
|
2019-11-14 19:57:20 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o
|
2015-11-23 06:00:22 +00:00
|
|
|
endif
|
2018-04-19 04:32:54 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o
|
2015-11-23 06:00:22 +00:00
|
|
|
else
|
|
|
|
# Main U-Boot always uses the full printf support
|
2019-11-14 19:57:20 +00:00
|
|
|
obj-y += vsprintf.o strto.o
|
2020-08-06 09:42:52 +00:00
|
|
|
obj-$(CONFIG_SSCANF) += sscanf.o
|
2015-11-23 06:00:22 +00:00
|
|
|
endif
|
2022-03-28 20:56:56 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)OID_REGISTRY) += oid_registry.o
|
2015-11-23 06:00:22 +00:00
|
|
|
|
2021-09-25 13:03:07 +00:00
|
|
|
obj-y += abuf.o
|
2019-11-13 00:44:49 +00:00
|
|
|
obj-y += date.o
|
2021-06-12 11:20:07 +00:00
|
|
|
obj-y += rtc-lib.o
|
2020-02-12 08:25:03 +00:00
|
|
|
obj-$(CONFIG_LIB_ELF) += elf.o
|
2019-11-13 00:44:49 +00:00
|
|
|
|
2022-12-07 11:42:34 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)SEMIHOSTING) += semihosting.o
|
|
|
|
|
2019-11-13 00:44:57 +00:00
|
|
|
#
|
|
|
|
# Build a fast OID lookup registry from include/linux/oid_registry.h
|
|
|
|
#
|
|
|
|
$(obj)/oid_registry.o: $(obj)/oid_registry_data.c
|
|
|
|
|
|
|
|
$(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \
|
|
|
|
$(srctree)/scripts/build_OID_registry
|
|
|
|
$(call cmd,build_OID_registry)
|
|
|
|
|
|
|
|
quiet_cmd_build_OID_registry = GEN $@
|
|
|
|
cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@
|
|
|
|
|
|
|
|
clean-files += oid_registry_data.c
|
|
|
|
|
2014-03-05 07:59:37 +00:00
|
|
|
subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2
|