178acc472SPeter Tyser# 278acc472SPeter Tyser# (C) Copyright 2000-2006 378acc472SPeter Tyser# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 478acc472SPeter Tyser# 51a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 678acc472SPeter Tyser# 778acc472SPeter Tyser 805bad4aaSAneesh Vifndef CONFIG_SPL_BUILD 9fdc36977SMasahiro Yamada 10867a6ac8SSimon Glassobj-$(CONFIG_EFI) += efi/ 11ed980b8cSAlexander Grafobj-$(CONFIG_EFI_LOADER) += efi_loader/ 12fdc36977SMasahiro Yamadaobj-$(CONFIG_LZMA) += lzma/ 13fdc36977SMasahiro Yamadaobj-$(CONFIG_LZO) += lzo/ 14fdc36977SMasahiro Yamadaobj-$(CONFIG_ZLIB) += zlib/ 15f071c501SMasahiro Yamadaobj-$(CONFIG_BZIP2) += bzip2/ 16fdc36977SMasahiro Yamadaobj-$(CONFIG_TIZEN) += tizen/ 17d1389403SSimon Glassobj-$(CONFIG_FIT) += libfdt/ 18d1389403SSimon Glassobj-$(CONFIG_CMD_DHRYSTONE) += dhry/ 19fdc36977SMasahiro Yamada 200a1a1575SMasahiro Yamadaobj-$(CONFIG_AES) += aes.o 210a1a1575SMasahiro Yamadaobj-$(CONFIG_USB_TTY) += circbuf.o 220a1a1575SMasahiro Yamadaobj-y += crc7.o 2360d18d3fSSimon Glassobj-y += crc8.o 240a1a1575SMasahiro Yamadaobj-y += crc16.o 2510f5f5a9SSimon Glassobj-$(CONFIG_ERRNO_STR) += errno_str.o 26b047d671SHeiko Schocherobj-$(CONFIG_FIT) += fdtdec_common.o 270a1a1575SMasahiro Yamadaobj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o 280a1a1575SMasahiro Yamadaobj-$(CONFIG_GZIP) += gunzip.o 290a1a1575SMasahiro Yamadaobj-$(CONFIG_GZIP_COMPRESSED) += gzip.o 300a1a1575SMasahiro Yamadaobj-y += initcall.o 310a1a1575SMasahiro Yamadaobj-$(CONFIG_LMB) += lmb.o 320a1a1575SMasahiro Yamadaobj-y += ldiv.o 33027b728dSJulius Wernerobj-$(CONFIG_LZ4) += lz4_wrapper.o 340a1a1575SMasahiro Yamadaobj-$(CONFIG_MD5) += md5.o 350a1a1575SMasahiro Yamadaobj-y += net_utils.o 360a1a1575SMasahiro Yamadaobj-$(CONFIG_PHYSMEM) += physmem.o 370a1a1575SMasahiro Yamadaobj-y += qsort.o 381acab96dSSimon Glassobj-y += rc4.o 3991fdabc6SPierre Aubertobj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o 400a1a1575SMasahiro Yamadaobj-$(CONFIG_TPM) += tpm.o 410a1a1575SMasahiro Yamadaobj-$(CONFIG_RBTREE) += rbtree.o 420a1a1575SMasahiro Yamadaobj-$(CONFIG_BITREVERSE) += bitrev.o 43c068d44aSHeiko Schocherobj-y += list_sort.o 4405bad4aaSAneesh Vendif 4505bad4aaSAneesh V 4651c14cd1STeddy Reedobj-$(CONFIG_$(SPL_)RSA) += rsa/ 4751c14cd1STeddy Reedobj-$(CONFIG_$(SPL_)SHA1) += sha1.o 4851c14cd1STeddy Reedobj-$(CONFIG_$(SPL_)SHA256) += sha256.o 4951c14cd1STeddy Reed 50d2d9bdfcSB, Raviobj-$(CONFIG_SPL_SAVEENV) += qsort.o 51aa34fbc0SSimon Glassobj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/ 527a53a540SSimon Glassifneq ($(CONFIG_SPL_BUILD)$(CONFIG_SPL_OF_PLATDATA),yy) 530f925822SMasahiro Yamadaobj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec_common.o 540f925822SMasahiro Yamadaobj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec.o 557a53a540SSimon Glassendif 561d76bf22SSimon Glass 5724de357aSMatt Porterifdef CONFIG_SPL_BUILD 580a1a1575SMasahiro Yamadaobj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o 590a1a1575SMasahiro Yamadaobj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o 6024de357aSMatt Porterendif 610a1a1575SMasahiro Yamadaobj-$(CONFIG_ADDR_MAP) += addr_map.o 620a1a1575SMasahiro Yamadaobj-y += hashtable.o 630a1a1575SMasahiro Yamadaobj-y += errno.o 640a1a1575SMasahiro Yamadaobj-y += display_options.o 6515b51878SStephen WarrenCFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') 660a1a1575SMasahiro Yamadaobj-$(CONFIG_BCH) += bch.o 670a1a1575SMasahiro Yamadaobj-y += crc32.o 680a1a1575SMasahiro Yamadaobj-y += ctype.o 690a1a1575SMasahiro Yamadaobj-y += div64.o 700a1a1575SMasahiro Yamadaobj-y += hang.o 710c06db59SHeiko Schocherobj-y += linux_compat.o 720a1a1575SMasahiro Yamadaobj-y += linux_string.o 73b7b65090SSimon Glassobj-y += membuff.o 740a1a1575SMasahiro Yamadaobj-$(CONFIG_REGEX) += slre.o 750a1a1575SMasahiro Yamadaobj-y += string.o 76*1befb38bSAlexander Grafobj-y += tables_csum.o 770a1a1575SMasahiro Yamadaobj-y += time.o 780a1a1575SMasahiro Yamadaobj-$(CONFIG_TRACE) += trace.o 794e4815feSPrzemyslaw Marczakobj-$(CONFIG_LIB_UUID) += uuid.o 803c1c68ccSPrzemyslaw Marczakobj-$(CONFIG_LIB_RAND) += rand.o 81e91df49fSMasahiro Yamada 827d9cde10SStefan Roeseifdef CONFIG_SPL_BUILD 8376f1f388SSimon Glassifdef CONFIG_TPL_BUILD 8476f1f388SSimon GlassSERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT) 8576f1f388SSimon Glasselse 8676f1f388SSimon GlassSERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT) 8776f1f388SSimon Glassendif 887d9cde10SStefan Roese# SPL U-Boot may use full-printf, tiny-printf or none at all 897d9cde10SStefan Roeseifdef CONFIG_USE_TINY_PRINTF 9076f1f388SSimon Glassobj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o 917d9cde10SStefan Roeseelse 9276f1f388SSimon Glassobj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o 937d9cde10SStefan Roeseendif 947d9cde10SStefan Roeseelse 957d9cde10SStefan Roese# Main U-Boot always uses the full printf support 96be86492bSChris Packhamobj-y += vsprintf.o panic.o strto.o strmhz.o 977d9cde10SStefan Roeseendif 987d9cde10SStefan Roese 99e91df49fSMasahiro Yamadasubdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 100