wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 8 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 9 | |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 10 | obj-$(CONFIG_EFI) += efi/ |
Alexander Graf | 67ee705 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 11 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 12 | obj-$(CONFIG_LZMA) += lzma/ |
| 13 | obj-$(CONFIG_LZO) += lzo/ |
| 14 | obj-$(CONFIG_ZLIB) += zlib/ |
Masahiro Yamada | 423d1b4 | 2014-11-28 11:13:26 +0900 | [diff] [blame] | 15 | obj-$(CONFIG_BZIP2) += bzip2/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 16 | obj-$(CONFIG_TIZEN) += tizen/ |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_FIT) += libfdt/ |
| 18 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
Masahiro Yamada | 1a96a03 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 19 | |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 20 | obj-$(CONFIG_AES) += aes.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_USB_TTY) += circbuf.o |
| 22 | obj-y += crc7.o |
Simon Glass | 46e0bc9 | 2013-11-10 10:26:47 -0700 | [diff] [blame] | 23 | obj-y += crc8.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 24 | obj-y += crc16.o |
Simon Glass | 49d06d2 | 2015-06-23 15:39:03 -0600 | [diff] [blame] | 25 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
Heiko Schocher | 80bff37 | 2014-06-22 06:33:29 +0200 | [diff] [blame] | 26 | obj-$(CONFIG_FIT) += fdtdec_common.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 27 | obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o |
| 28 | obj-$(CONFIG_GZIP) += gunzip.o |
| 29 | obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 30 | obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 31 | obj-y += initcall.o |
| 32 | obj-$(CONFIG_LMB) += lmb.o |
| 33 | obj-y += ldiv.o |
Julius Werner | f41a3ca | 2015-10-06 20:03:53 -0700 | [diff] [blame] | 34 | obj-$(CONFIG_LZ4) += lz4_wrapper.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 35 | obj-$(CONFIG_MD5) += md5.o |
| 36 | obj-y += net_utils.o |
| 37 | obj-$(CONFIG_PHYSMEM) += physmem.o |
| 38 | obj-y += qsort.o |
Simon Glass | d0d58d2 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 39 | obj-y += rc4.o |
Pierre Aubert | 343cd9f | 2014-04-24 10:30:06 +0200 | [diff] [blame] | 40 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_TPM) += tpm.o |
| 42 | obj-$(CONFIG_RBTREE) += rbtree.o |
| 43 | obj-$(CONFIG_BITREVERSE) += bitrev.o |
Heiko Schocher | 762320b | 2014-06-24 10:10:01 +0200 | [diff] [blame] | 44 | obj-y += list_sort.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 45 | endif |
| 46 | |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 47 | obj-$(CONFIG_$(SPL_)RSA) += rsa/ |
| 48 | obj-$(CONFIG_$(SPL_)SHA1) += sha1.o |
| 49 | obj-$(CONFIG_$(SPL_)SHA256) += sha256.o |
| 50 | |
B, Ravi | e94b024 | 2016-09-28 14:46:18 +0530 | [diff] [blame] | 51 | obj-$(CONFIG_SPL_SAVEENV) += qsort.o |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 52 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/ |
Simon Glass | 4f3ce47 | 2016-07-04 11:58:05 -0600 | [diff] [blame] | 53 | ifneq ($(CONFIG_SPL_BUILD)$(CONFIG_SPL_OF_PLATDATA),yy) |
Masahiro Yamada | 366b24f | 2015-08-12 07:31:55 +0900 | [diff] [blame] | 54 | obj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec_common.o |
| 55 | obj-$(CONFIG_$(SPL_)OF_CONTROL) += fdtdec.o |
Simon Glass | 4f3ce47 | 2016-07-04 11:58:05 -0600 | [diff] [blame] | 56 | endif |
Simon Glass | 49c087e | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 57 | |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 58 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 59 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
| 60 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
Matt Porter | 79bfa73 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 61 | endif |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 62 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
| 63 | obj-y += hashtable.o |
| 64 | obj-y += errno.o |
| 65 | obj-y += display_options.o |
Stephen Warren | 4f169a0 | 2016-02-10 15:16:19 -0700 | [diff] [blame] | 66 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 67 | obj-$(CONFIG_BCH) += bch.o |
| 68 | obj-y += crc32.o |
| 69 | obj-y += ctype.o |
| 70 | obj-y += div64.o |
| 71 | obj-y += hang.o |
Heiko Schocher | 4f7a9a3 | 2014-06-24 10:10:03 +0200 | [diff] [blame] | 72 | obj-y += linux_compat.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 73 | obj-y += linux_string.o |
Simon Glass | 1294ecf | 2015-11-08 23:47:47 -0700 | [diff] [blame] | 74 | obj-y += membuff.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 75 | obj-$(CONFIG_REGEX) += slre.o |
| 76 | obj-y += string.o |
Alexander Graf | ee532d9 | 2016-08-19 01:23:21 +0200 | [diff] [blame] | 77 | obj-y += tables_csum.o |
Masahiro Yamada | f9e50cc | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 78 | obj-y += time.o |
| 79 | obj-$(CONFIG_TRACE) += trace.o |
Przemyslaw Marczak | b428514 | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 80 | obj-$(CONFIG_LIB_UUID) += uuid.o |
Przemyslaw Marczak | cd9c268 | 2014-03-25 10:58:19 +0100 | [diff] [blame] | 81 | obj-$(CONFIG_LIB_RAND) += rand.o |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 82 | |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 83 | ifdef CONFIG_SPL_BUILD |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 84 | ifdef CONFIG_TPL_BUILD |
| 85 | SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT) |
| 86 | else |
| 87 | SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT) |
| 88 | endif |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 89 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
| 90 | ifdef CONFIG_USE_TINY_PRINTF |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 91 | obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 92 | else |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 93 | obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 94 | endif |
| 95 | else |
| 96 | # Main U-Boot always uses the full printf support |
Chris Packham | cae6eff | 2016-05-31 20:30:59 +1200 | [diff] [blame] | 97 | obj-y += vsprintf.o panic.o strto.o strmhz.o |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 98 | endif |
| 99 | |
Masahiro Yamada | b564aed | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 100 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |