wdenk | 87e33a6 | 2002-07-20 18:56:22 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 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 | 1a45966 | 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 | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 8 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 9 | |
Simon Glass | 867a6ac | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 10 | obj-$(CONFIG_EFI) += efi/ |
Alexander Graf | ed980b8 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 11 | obj-$(CONFIG_EFI_LOADER) += efi_loader/ |
Masahiro Yamada | fdc3697 | 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 | f071c50 | 2014-11-28 11:13:26 +0900 | [diff] [blame] | 15 | obj-$(CONFIG_BZIP2) += bzip2/ |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 16 | obj-$(CONFIG_TIZEN) += tizen/ |
Simon Glass | d138940 | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_FIT) += libfdt/ |
| 18 | obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ |
Masahiro Yamada | fdc3697 | 2013-11-18 11:17:30 +0900 | [diff] [blame] | 19 | |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 20 | obj-$(CONFIG_AES) += aes.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 21 | obj-$(CONFIG_USB_TTY) += circbuf.o |
| 22 | obj-y += crc7.o |
Simon Glass | 60d18d3 | 2013-11-10 10:26:47 -0700 | [diff] [blame] | 23 | obj-y += crc8.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 24 | obj-y += crc16.o |
Simon Glass | 10f5f5a | 2015-06-23 15:39:03 -0600 | [diff] [blame] | 25 | obj-$(CONFIG_ERRNO_STR) += errno_str.o |
Heiko Schocher | b047d67 | 2014-06-22 06:33:29 +0200 | [diff] [blame] | 26 | obj-$(CONFIG_FIT) += fdtdec_common.o |
Masahiro Yamada | 0a1a157 | 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 |
| 30 | obj-y += initcall.o |
| 31 | obj-$(CONFIG_LMB) += lmb.o |
| 32 | obj-y += ldiv.o |
Julius Werner | 027b728 | 2015-10-06 20:03:53 -0700 | [diff] [blame] | 33 | obj-$(CONFIG_LZ4) += lz4_wrapper.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_MD5) += md5.o |
| 35 | obj-y += net_utils.o |
| 36 | obj-$(CONFIG_PHYSMEM) += physmem.o |
| 37 | obj-y += qsort.o |
Simon Glass | 1acab96 | 2015-06-23 15:39:07 -0600 | [diff] [blame] | 38 | obj-y += rc4.o |
Pierre Aubert | 91fdabc | 2014-04-24 10:30:06 +0200 | [diff] [blame] | 39 | obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 40 | obj-$(CONFIG_TPM) += tpm.o |
| 41 | obj-$(CONFIG_RBTREE) += rbtree.o |
| 42 | obj-$(CONFIG_BITREVERSE) += bitrev.o |
Heiko Schocher | c068d44 | 2014-06-24 10:10:01 +0200 | [diff] [blame] | 43 | obj-y += list_sort.o |
Aneesh V | 05bad4a | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 44 | endif |
| 45 | |
Teddy Reed | 51c14cd | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 46 | obj-$(CONFIG_$(SPL_)RSA) += rsa/ |
| 47 | obj-$(CONFIG_$(SPL_)SHA1) += sha1.o |
| 48 | obj-$(CONFIG_$(SPL_)SHA256) += sha256.o |
| 49 | |
Simon Glass | aa34fbc | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 50 | obj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/ |
Masahiro Yamada | dffb86e | 2015-08-12 07:31:54 +0900 | [diff] [blame] | 51 | ifdef CONFIG_SPL_OF_CONTROL |
Simon Glass | 1d76bf2 | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 52 | obj-$(CONFIG_OF_LIBFDT) += libfdt/ |
Simon Glass | 1d76bf2 | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 53 | endif |
Masahiro Yamada | 0f92582 | 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 | 1d76bf2 | 2015-02-27 22:06:40 -0700 | [diff] [blame] | 56 | |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 57 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 58 | obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o |
| 59 | obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o |
Matt Porter | 24de357 | 2012-01-31 12:03:57 +0000 | [diff] [blame] | 60 | endif |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 61 | obj-$(CONFIG_ADDR_MAP) += addr_map.o |
| 62 | obj-y += hashtable.o |
| 63 | obj-y += errno.o |
| 64 | obj-y += display_options.o |
Stephen Warren | 15b5187 | 2016-02-10 15:16:19 -0700 | [diff] [blame] | 65 | CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"') |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 66 | obj-$(CONFIG_BCH) += bch.o |
| 67 | obj-y += crc32.o |
| 68 | obj-y += ctype.o |
| 69 | obj-y += div64.o |
| 70 | obj-y += hang.o |
Heiko Schocher | 0c06db5 | 2014-06-24 10:10:03 +0200 | [diff] [blame] | 71 | obj-y += linux_compat.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 72 | obj-y += linux_string.o |
Simon Glass | b7b6509 | 2015-11-08 23:47:47 -0700 | [diff] [blame] | 73 | obj-y += membuff.o |
Masahiro Yamada | 0a1a157 | 2013-10-17 17:35:01 +0900 | [diff] [blame] | 74 | obj-$(CONFIG_REGEX) += slre.o |
| 75 | obj-y += string.o |
| 76 | obj-y += time.o |
| 77 | obj-$(CONFIG_TRACE) += trace.o |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 78 | obj-$(CONFIG_LIB_UUID) += uuid.o |
Przemyslaw Marczak | 3c1c68c | 2014-03-25 10:58:19 +0100 | [diff] [blame] | 79 | obj-$(CONFIG_LIB_RAND) += rand.o |
Masahiro Yamada | e91df49 | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 80 | |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 81 | ifdef CONFIG_SPL_BUILD |
| 82 | # SPL U-Boot may use full-printf, tiny-printf or none at all |
| 83 | ifdef CONFIG_USE_TINY_PRINTF |
Sjoerd Simons | e4c5383 | 2015-12-04 23:27:39 +0100 | [diff] [blame] | 84 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 85 | else |
Chris Packham | be86492 | 2016-05-31 20:30:59 +1200 | [diff] [blame] | 86 | obj-$(CONFIG_SPL_SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 87 | endif |
| 88 | else |
| 89 | # Main U-Boot always uses the full printf support |
Chris Packham | be86492 | 2016-05-31 20:30:59 +1200 | [diff] [blame] | 90 | obj-y += vsprintf.o panic.o strto.o strmhz.o |
Stefan Roese | 7d9cde1 | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 91 | endif |
| 92 | |
Masahiro Yamada | e91df49 | 2014-03-05 16:59:37 +0900 | [diff] [blame] | 93 | subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2 |