2002-07-21 03:56:22 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2000-2006
|
2002-07-21 03:56:22 +09:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-07-21 03:56:22 +09:00
|
|
|
#
|
|
|
|
|
2011-07-13 14:11:06 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-11-18 11:17:30 +09:00
|
|
|
|
2015-08-01 00:31:36 +09:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2016-03-04 09:10:07 +09:00
|
|
|
obj-$(CONFIG_EFI_LOADER) += efi_loader/
|
2017-09-15 17:06:11 +09:00
|
|
|
obj-$(CONFIG_EFI_LOADER) += efi_selftest/
|
2013-11-18 11:17:30 +09:00
|
|
|
obj-$(CONFIG_LZMA) += lzma/
|
2014-11-28 11:13:26 +09:00
|
|
|
obj-$(CONFIG_BZIP2) += bzip2/
|
2013-11-18 11:17:30 +09:00
|
|
|
obj-$(CONFIG_TIZEN) += tizen/
|
2015-06-24 06:38:23 +09:00
|
|
|
obj-$(CONFIG_FIT) += libfdt/
|
2017-05-19 11:08:55 +09:00
|
|
|
obj-$(CONFIG_OF_LIVE) += of_live.o
|
2015-06-24 06:38:23 +09:00
|
|
|
obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
|
2017-09-13 15:58:46 +09:00
|
|
|
obj-$(CONFIG_ARCH_AT91) += at91/
|
2013-11-18 11:17:30 +09:00
|
|
|
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_AES) += aes.o
|
2017-09-09 19:47:40 +09:00
|
|
|
obj-y += charset.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_USB_TTY) += circbuf.o
|
|
|
|
obj-y += crc7.o
|
2013-11-11 02:26:47 +09:00
|
|
|
obj-y += crc8.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-y += crc16.o
|
2015-06-24 06:39:03 +09:00
|
|
|
obj-$(CONFIG_ERRNO_STR) += errno_str.o
|
2014-06-22 13:33:29 +09:00
|
|
|
obj-$(CONFIG_FIT) += fdtdec_common.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
|
|
|
|
obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
|
2016-08-19 08:23:23 +09:00
|
|
|
obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-y += initcall.o
|
|
|
|
obj-$(CONFIG_LMB) += lmb.o
|
|
|
|
obj-y += ldiv.o
|
2015-10-07 12:03:53 +09:00
|
|
|
obj-$(CONFIG_LZ4) += lz4_wrapper.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_MD5) += md5.o
|
|
|
|
obj-y += net_utils.o
|
|
|
|
obj-$(CONFIG_PHYSMEM) += physmem.o
|
|
|
|
obj-y += qsort.o
|
2015-06-24 06:39:07 +09:00
|
|
|
obj-y += rc4.o
|
2014-04-24 17:30:06 +09:00
|
|
|
obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_TPM) += tpm.o
|
|
|
|
obj-$(CONFIG_RBTREE) += rbtree.o
|
|
|
|
obj-$(CONFIG_BITREVERSE) += bitrev.o
|
2014-06-24 17:10:01 +09:00
|
|
|
obj-y += list_sort.o
|
2011-07-13 14:11:06 +09:00
|
|
|
endif
|
|
|
|
|
2017-05-16 01:17:49 +09:00
|
|
|
obj-$(CONFIG_RSA) += rsa/
|
|
|
|
obj-$(CONFIG_SHA1) += sha1.o
|
|
|
|
obj-$(CONFIG_SHA256) += sha256.o
|
2016-06-10 11:18:44 +09:00
|
|
|
|
2017-08-16 03:14:43 +09:00
|
|
|
obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
|
|
|
|
obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
|
2017-09-15 19:57:30 +09:00
|
|
|
obj-$(CONFIG_$(SPL_)LZO) += lzo/
|
|
|
|
|
2017-08-16 03:14:43 +09:00
|
|
|
|
2017-07-04 18:09:55 +09:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
|
|
|
|
ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
|
2016-07-05 02:58:05 +09:00
|
|
|
endif
|
2015-02-28 14:06:40 +09:00
|
|
|
|
2012-01-31 21:03:57 +09:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
|
|
|
|
obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
|
2012-01-31 21:03:57 +09:00
|
|
|
endif
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_ADDR_MAP) += addr_map.o
|
|
|
|
obj-y += hashtable.o
|
|
|
|
obj-y += errno.o
|
|
|
|
obj-y += display_options.o
|
2016-02-11 07:16:19 +09:00
|
|
|
CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_BCH) += bch.o
|
|
|
|
obj-y += crc32.o
|
2017-09-04 00:00:23 +09:00
|
|
|
obj-$(CONFIG_CRC32C) += crc32c.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-y += ctype.o
|
|
|
|
obj-y += div64.o
|
|
|
|
obj-y += hang.o
|
2014-06-24 17:10:03 +09:00
|
|
|
obj-y += linux_compat.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-y += linux_string.o
|
2015-11-09 15:47:47 +09:00
|
|
|
obj-y += membuff.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-$(CONFIG_REGEX) += slre.o
|
|
|
|
obj-y += string.o
|
2016-08-19 08:23:21 +09:00
|
|
|
obj-y += tables_csum.o
|
2013-10-17 17:35:01 +09:00
|
|
|
obj-y += time.o
|
|
|
|
obj-$(CONFIG_TRACE) += trace.o
|
2014-04-02 17:20:04 +09:00
|
|
|
obj-$(CONFIG_LIB_UUID) += uuid.o
|
2014-03-25 18:58:19 +09:00
|
|
|
obj-$(CONFIG_LIB_RAND) += rand.o
|
2014-03-05 16:59:37 +09:00
|
|
|
|
2015-11-23 15:00:22 +09:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2016-09-13 14:18:25 +09:00
|
|
|
ifdef CONFIG_TPL_BUILD
|
|
|
|
SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
|
|
|
|
else
|
|
|
|
SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
|
|
|
|
endif
|
2015-11-23 15:00:22 +09:00
|
|
|
# SPL U-Boot may use full-printf, tiny-printf or none at all
|
|
|
|
ifdef CONFIG_USE_TINY_PRINTF
|
2016-09-13 14:18:25 +09:00
|
|
|
obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
|
2015-11-23 15:00:22 +09:00
|
|
|
else
|
2016-09-13 14:18:25 +09:00
|
|
|
obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
|
2015-11-23 15:00:22 +09:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
# Main U-Boot always uses the full printf support
|
2016-05-31 17:30:59 +09:00
|
|
|
obj-y += vsprintf.o panic.o strto.o strmhz.o
|
2015-11-23 15:00:22 +09:00
|
|
|
endif
|
|
|
|
|
2014-03-05 16:59:37 +09:00
|
|
|
subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2
|