Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2000-2006 |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 5 | |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 6 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 7 | |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 8 | obj-$(CONFIG_EFI) += efi/ |
Heinrich Schuchardt | 11206f4 | 2018-01-21 19:29:30 +0100 | [diff] [blame] | 9 | obj-$(CONFIG_EFI_LOADER) += efi_driver/ |
Alexander Graf | 67ee705 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 10 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
Heinrich Schuchardt | c9e7aa2 | 2018-09-26 19:03:33 +0200 | [diff] [blame] | 11 | obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 12 | obj-$(CONFIG_LZMA) += lzma/ |
Masahiro Yamada | 423d1b4 | 2014-11-28 11:13:26 +0900 | [diff] [blame] | 13 | obj-$(CONFIG_BZIP2) += bzip2/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_TIZEN) += tizen/ |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 15 | obj-$(CONFIG_FIT) += libfdt/ |
Simon Glass | 8ff57ae | 2017-05-18 20:08:55 -0600 | [diff] [blame] | 16 | obj-$(CONFIG_OF_LIVE) += of_live.o |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
Wenyou Yang | 857ad80 | 2017-09-13 14:58:46 +0800 | [diff] [blame] | 18 | obj-$(CONFIG_ARCH_AT91) += at91/ |
Bryan O'Donoghue | 4b0de7c | 2018-03-13 16:50:27 +0000 | [diff] [blame] | 19 | obj-$(CONFIG_OPTEE) += optee/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 20 | |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_AES) += aes.o |
Heinrich Schuchardt | 5ae135f | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 22 | |
| 23 | ifndef API_BUILD |
Heinrich Schuchardt | b8b6c81 | 2018-08-31 21:31:28 +0200 | [diff] [blame] | 24 | ifneq ($(CONFIG_UT_UNICODE)$(CONFIG_EFI_LOADER),) |
| 25 | obj-y += charset.o |
| 26 | endif |
Heinrich Schuchardt | 5ae135f | 2018-08-31 21:31:25 +0200 | [diff] [blame] | 27 | endif |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 28 | obj-$(CONFIG_USB_TTY) += circbuf.o |
| 29 | obj-y += crc7.o |
Simon Glass | 46e0bc9 | 2013-11-10 10:26:47 -0700 | [diff] [blame] | 30 | obj-y += crc8.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 31 | obj-y += crc16.o |
Simon Glass | 49d06d2 | 2015-06-23 15:39:03 -0600 | [diff] [blame] | 32 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
Heiko Schocher | 80bff37 | 2014-06-22 06:33:29 +0200 | [diff] [blame] | 33 | obj-$(CONFIG_FIT) += fdtdec_common.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 35 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 36 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
Alex Kiernan | c568bcb | 2018-05-29 15:30:52 +0000 | [diff] [blame] | 37 | obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 38 | obj-y += ldiv.o |
| 39 | obj-$(CONFIG_MD5) += md5.o |
Marek Behún | b139a7f | 2019-04-29 22:40:43 +0200 | [diff] [blame] | 40 | obj-$(CONFIG_XXHASH) += xxhash.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 41 | obj-y += net_utils.o |
| 42 | obj-$(CONFIG_PHYSMEM) += physmem.o |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 43 | obj-y += rc4.o |
Pierre Aubert | 343cd9f | 2014-04-24 10:30:06 +0200 | [diff] [blame] | 44 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 45 | obj-$(CONFIG_RBTREE) += rbtree.o |
| 46 | obj-$(CONFIG_BITREVERSE) += bitrev.o |
Heiko Schocher | 762320b | 2014-06-24 10:10:01 +0200 | [diff] [blame] | 47 | obj-y += list_sort.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 48 | endif |
| 49 | |
Simon Glass | 93a45b1 | 2018-10-01 12:22:19 -0600 | [diff] [blame] | 50 | obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o |
| 51 | ifeq ($(CONFIG_$(SPL_TPL_)TPM),y) |
| 52 | obj-y += crc8.o |
| 53 | obj-$(CONFIG_TPM_V1) += tpm-v1.o |
| 54 | obj-$(CONFIG_TPM_V2) += tpm-v2.o |
| 55 | endif |
| 56 | |
Tom Rini | 5bdd919 | 2017-05-15 12:17:49 -0400 | [diff] [blame] | 57 | obj-$(CONFIG_RSA) += rsa/ |
| 58 | obj-$(CONFIG_SHA1) += sha1.o |
| 59 | obj-$(CONFIG_SHA256) += sha256.o |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 60 | |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 61 | obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ |
Marek Behún | e87e200 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 62 | obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 63 | obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o |
Jean-Jacques Hiblot | dbde288 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 64 | obj-$(CONFIG_$(SPL_)LZO) += lzo/ |
Simon Glass | e107bcd | 2018-11-06 15:21:30 -0700 | [diff] [blame] | 65 | obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o |
Jean-Jacques Hiblot | dbde288 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 66 | |
Igor Opaniuk | 525d1d8 | 2018-06-03 21:56:37 +0300 | [diff] [blame] | 67 | obj-$(CONFIG_LIBAVB) += libavb/ |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 68 | |
Philipp Tomsich | 456e0cb | 2017-07-04 11:09:55 +0200 | [diff] [blame] | 69 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/ |
| 70 | ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy) |
| 71 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o |
| 72 | obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o |
Simon Glass | 4f3ce47 | 2016-07-04 11:58:05 -0600 | [diff] [blame] | 73 | endif |
Simon Glass | 49c087e | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 74 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 75 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 76 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
Philipp Tomsich | 6e2ac3e | 2018-11-25 19:22:19 +0100 | [diff] [blame] | 77 | obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 78 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 79 | endif |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 80 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
Boris Brezillon | 619fc68 | 2018-12-05 09:26:50 +0100 | [diff] [blame] | 81 | obj-y += qsort.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 82 | obj-y += hashtable.o |
| 83 | obj-y += errno.o |
| 84 | obj-y += display_options.o |
Stephen Warren | 4f169a0 | 2016-02-10 15:16:19 -0700 | [diff] [blame] | 85 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 86 | obj-$(CONFIG_BCH) += bch.o |
| 87 | obj-y += crc32.o |
Marek Behún | cdccc03 | 2017-09-03 17:00:23 +0200 | [diff] [blame] | 88 | obj-$(CONFIG_CRC32C) += crc32c.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 89 | obj-y += ctype.o |
| 90 | obj-y += div64.o |
Peng Fan | dc1a9ae | 2019-06-06 07:59:16 +0000 | [diff] [blame] | 91 | obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 92 | obj-y += hang.o |
Heiko Schocher | 4f7a9a3 | 2014-06-24 10:10:03 +0200 | [diff] [blame] | 93 | obj-y += linux_compat.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 94 | obj-y += linux_string.o |
Simon Goldschmidt | a96cf8f | 2019-01-14 22:38:22 +0100 | [diff] [blame] | 95 | obj-$(CONFIG_LMB) += lmb.o |
Simon Glass | 1294ecf | 2015-11-08 23:47:47 -0700 | [diff] [blame] | 96 | obj-y += membuff.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 97 | obj-$(CONFIG_REGEX) += slre.o |
| 98 | obj-y += string.o |
Alexander Graf | ee532d9 | 2016-08-19 01:23:21 +0200 | [diff] [blame] | 99 | obj-y += tables_csum.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 100 | obj-y += time.o |
Alexey Brodkin | 2d2fa49 | 2018-06-05 17:17:57 +0300 | [diff] [blame] | 101 | obj-y += hexdump.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 102 | obj-$(CONFIG_TRACE) += trace.o |
Przemyslaw Marczak | b428514 | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 103 | obj-$(CONFIG_LIB_UUID) += uuid.o |
Przemyslaw Marczak | cd9c268 | 2014-03-25 10:58:19 +0100 | [diff] [blame] | 104 | obj-$(CONFIG_LIB_RAND) += rand.o |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 105 | obj-y += panic.o |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 106 | |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 107 | ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y) |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 108 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
| 109 | ifdef CONFIG_USE_TINY_PRINTF |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 110 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 111 | else |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 112 | obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o strmhz.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 113 | endif |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 114 | obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 115 | else |
| 116 | # Main U-Boot always uses the full printf support |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 117 | obj-y += vsprintf.o strto.o strmhz.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 118 | endif |
| 119 | |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 120 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |