]> Git Repo - J-u-boot.git/blame - lib/Makefile
Prepare v2017.11-rc1
[J-u-boot.git] / lib / Makefile
CommitLineData
87e33a6f 1#
f9328639 2# (C) Copyright 2000-2006
87e33a6f
WD
3# Wolfgang Denk, DENX Software Engineering, [email protected].
4#
1a459660 5# SPDX-License-Identifier: GPL-2.0+
87e33a6f
WD
6#
7
05bad4aa 8ifndef CONFIG_SPL_BUILD
fdc36977 9
867a6ac8 10obj-$(CONFIG_EFI) += efi/
ed980b8c 11obj-$(CONFIG_EFI_LOADER) += efi_loader/
623b3a57 12obj-$(CONFIG_EFI_LOADER) += efi_selftest/
fdc36977
MY
13obj-$(CONFIG_LZMA) += lzma/
14obj-$(CONFIG_LZO) += lzo/
f071c501 15obj-$(CONFIG_BZIP2) += bzip2/
fdc36977 16obj-$(CONFIG_TIZEN) += tizen/
d1389403 17obj-$(CONFIG_FIT) += libfdt/
8b50d526 18obj-$(CONFIG_OF_LIVE) += of_live.o
d1389403 19obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
d330e04d 20obj-$(CONFIG_ARCH_AT91) += at91/
fdc36977 21
0a1a1575 22obj-$(CONFIG_AES) += aes.o
78178bb0 23obj-y += charset.o
0a1a1575
MY
24obj-$(CONFIG_USB_TTY) += circbuf.o
25obj-y += crc7.o
60d18d3f 26obj-y += crc8.o
0a1a1575 27obj-y += crc16.o
10f5f5a9 28obj-$(CONFIG_ERRNO_STR) += errno_str.o
b047d671 29obj-$(CONFIG_FIT) += fdtdec_common.o
0a1a1575 30obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
0a1a1575 31obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
4b6dddc2 32obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
0a1a1575
MY
33obj-y += initcall.o
34obj-$(CONFIG_LMB) += lmb.o
35obj-y += ldiv.o
027b728d 36obj-$(CONFIG_LZ4) += lz4_wrapper.o
0a1a1575
MY
37obj-$(CONFIG_MD5) += md5.o
38obj-y += net_utils.o
39obj-$(CONFIG_PHYSMEM) += physmem.o
40obj-y += qsort.o
1acab96d 41obj-y += rc4.o
91fdabc6 42obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
0a1a1575
MY
43obj-$(CONFIG_TPM) += tpm.o
44obj-$(CONFIG_RBTREE) += rbtree.o
45obj-$(CONFIG_BITREVERSE) += bitrev.o
c068d44a 46obj-y += list_sort.o
05bad4aa
A
47endif
48
089df18b
TR
49obj-$(CONFIG_RSA) += rsa/
50obj-$(CONFIG_SHA1) += sha1.o
51obj-$(CONFIG_SHA256) += sha256.o
51c14cd1 52
7264f292
YS
53obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
54obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
55
6dced7df
PT
56obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
57obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
58ifneq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)OF_PLATDATA),yy)
59obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec_common.o
60obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += fdtdec.o
7a53a540 61endif
1d76bf22 62
24de357a 63ifdef CONFIG_SPL_BUILD
0a1a1575
MY
64obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
65obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
24de357a 66endif
0a1a1575
MY
67obj-$(CONFIG_ADDR_MAP) += addr_map.o
68obj-y += hashtable.o
69obj-y += errno.o
70obj-y += display_options.o
15b51878 71CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
0a1a1575
MY
72obj-$(CONFIG_BCH) += bch.o
73obj-y += crc32.o
74obj-y += ctype.o
75obj-y += div64.o
76obj-y += hang.o
0c06db59 77obj-y += linux_compat.o
0a1a1575 78obj-y += linux_string.o
b7b65090 79obj-y += membuff.o
0a1a1575
MY
80obj-$(CONFIG_REGEX) += slre.o
81obj-y += string.o
1befb38b 82obj-y += tables_csum.o
0a1a1575
MY
83obj-y += time.o
84obj-$(CONFIG_TRACE) += trace.o
4e4815fe 85obj-$(CONFIG_LIB_UUID) += uuid.o
3c1c68cc 86obj-$(CONFIG_LIB_RAND) += rand.o
e91df49f 87
7d9cde10 88ifdef CONFIG_SPL_BUILD
76f1f388
SG
89ifdef CONFIG_TPL_BUILD
90SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
91else
92SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
93endif
7d9cde10
SR
94# SPL U-Boot may use full-printf, tiny-printf or none at all
95ifdef CONFIG_USE_TINY_PRINTF
76f1f388 96obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
7d9cde10 97else
76f1f388 98obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
7d9cde10
SR
99endif
100else
101# Main U-Boot always uses the full printf support
be86492b 102obj-y += vsprintf.o panic.o strto.o strmhz.o
7d9cde10
SR
103endif
104
e91df49f 105subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2
This page took 0.402413 seconds and 4 git commands to generate.