Blame view

lib/Makefile 2.81 KB
87e33a6fd   wdenk   Initial revision
1
  #
f93286397   Marian Balakowicz   Add support for a...
2
  # (C) Copyright 2000-2006
87e33a6fd   wdenk   Initial revision
3
4
  # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  #
1a4596601   Wolfgang Denk   Add GPL-2.0+ SPDX...
5
  # SPDX-License-Identifier:	GPL-2.0+
87e33a6fd   wdenk   Initial revision
6
  #
05bad4aa5   Aneesh V   scaled down versi...
7
  ifndef CONFIG_SPL_BUILD
fdc36977b   Masahiro Yamada   Makefile: move so...
8

867a6ac86   Simon Glass   efi: Add start-up...
9
  obj-$(CONFIG_EFI) += efi/
ed980b8c6   Alexander Graf   efi_loader: hook ...
10
  obj-$(CONFIG_EFI_LOADER) += efi_loader/
623b3a579   Heinrich Schuchardt   efi_selftest: pro...
11
  obj-$(CONFIG_EFI_LOADER) += efi_selftest/
fdc36977b   Masahiro Yamada   Makefile: move so...
12
  obj-$(CONFIG_LZMA) += lzma/
f071c5019   Masahiro Yamada   lib: bzip2: move ...
13
  obj-$(CONFIG_BZIP2) += bzip2/
fdc36977b   Masahiro Yamada   Makefile: move so...
14
  obj-$(CONFIG_TIZEN) += tizen/
d1389403c   Simon Glass   Add a dhrystone b...
15
  obj-$(CONFIG_FIT) += libfdt/
8b50d526e   Simon Glass   dm: Add a functio...
16
  obj-$(CONFIG_OF_LIVE) += of_live.o
d1389403c   Simon Glass   Add a dhrystone b...
17
  obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
d330e04d9   Wenyou Yang   lib: at91: Add lo...
18
  obj-$(CONFIG_ARCH_AT91) += at91/
fdc36977b   Masahiro Yamada   Makefile: move so...
19

0a1a15755   Masahiro Yamada   lib: convert make...
20
  obj-$(CONFIG_AES) += aes.o
78178bb0c   Rob Clark   lib: add some utf...
21
  obj-y += charset.o
0a1a15755   Masahiro Yamada   lib: convert make...
22
23
  obj-$(CONFIG_USB_TTY) += circbuf.o
  obj-y += crc7.o
60d18d3fe   Simon Glass   Add crc8 routine
24
  obj-y += crc8.o
0a1a15755   Masahiro Yamada   lib: convert make...
25
  obj-y += crc16.o
10f5f5a90   Simon Glass   Drop CONFIG_ERRNO...
26
  obj-$(CONFIG_ERRNO_STR) += errno_str.o
b047d671d   Heiko Schocher   lib, fdt: move fd...
27
  obj-$(CONFIG_FIT) += fdtdec_common.o
0a1a15755   Masahiro Yamada   lib: convert make...
28
  obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
0a1a15755   Masahiro Yamada   lib: convert make...
29
  obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
4b6dddc29   Alexander Graf   x86: Move smbios ...
30
  obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
0a1a15755   Masahiro Yamada   lib: convert make...
31
32
33
  obj-y += initcall.o
  obj-$(CONFIG_LMB) += lmb.o
  obj-y += ldiv.o
027b728d4   Julius Werner   Add support for L...
34
  obj-$(CONFIG_LZ4) += lz4_wrapper.o
0a1a15755   Masahiro Yamada   lib: convert make...
35
36
37
38
  obj-$(CONFIG_MD5) += md5.o
  obj-y += net_utils.o
  obj-$(CONFIG_PHYSMEM) += physmem.o
  obj-y += qsort.o
1acab96d9   Simon Glass   Add rivest cipher...
39
  obj-y += rc4.o
91fdabc67   Pierre Aubert   eMMC: add support...
40
  obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
0a1a15755   Masahiro Yamada   lib: convert make...
41
42
43
  obj-$(CONFIG_TPM) += tpm.o
  obj-$(CONFIG_RBTREE)	+= rbtree.o
  obj-$(CONFIG_BITREVERSE) += bitrev.o
c068d44aa   Heiko Schocher   lib, list_sort: a...
44
  obj-y += list_sort.o
05bad4aa5   Aneesh V   scaled down versi...
45
  endif
089df18bf   Tom Rini   lib: move hash CO...
46
47
48
  obj-$(CONFIG_RSA) += rsa/
  obj-$(CONFIG_SHA1) += sha1.o
  obj-$(CONFIG_SHA256) += sha256.o
51c14cd12   Teddy Reed   verified-boot: Mi...
49

7264f2928   York Sun   spl: fit: Eanble ...
50
51
  obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
  obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
f52bdf4b6   Jean-Jacques Hiblot   lib: allow buildi...
52
  obj-$(CONFIG_$(SPL_)LZO) += lzo/
7264f2928   York Sun   spl: fit: Eanble ...
53

6dced7dff   Philipp Tomsich   lib: spl: differe...
54
55
56
57
58
  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
7a53a5407   Simon Glass   dm: Don't include...
59
  endif
1d76bf226   Simon Glass   fdt: Allow FDT fu...
60

24de357a3   Matt Porter   SPL: Add YMODEM o...
61
  ifdef CONFIG_SPL_BUILD
0a1a15755   Masahiro Yamada   lib: convert make...
62
63
  obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
  obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
24de357a3   Matt Porter   SPL: Add YMODEM o...
64
  endif
0a1a15755   Masahiro Yamada   lib: convert make...
65
66
67
68
  obj-$(CONFIG_ADDR_MAP) += addr_map.o
  obj-y += hashtable.o
  obj-y += errno.o
  obj-y += display_options.o
15b51878b   Stephen Warren   Makefile: remove ...
69
  CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
0a1a15755   Masahiro Yamada   lib: convert make...
70
71
  obj-$(CONFIG_BCH) += bch.o
  obj-y += crc32.o
85d8bf571   Marek BehĂșn   lib: Add CRC32-C
72
  obj-$(CONFIG_CRC32C) += crc32c.o
0a1a15755   Masahiro Yamada   lib: convert make...
73
74
75
  obj-y += ctype.o
  obj-y += div64.o
  obj-y += hang.o
0c06db598   Heiko Schocher   lib, linux: move ...
76
  obj-y += linux_compat.o
0a1a15755   Masahiro Yamada   lib: convert make...
77
  obj-y += linux_string.o
b7b65090b   Simon Glass   Add a circular me...
78
  obj-y += membuff.o
0a1a15755   Masahiro Yamada   lib: convert make...
79
80
  obj-$(CONFIG_REGEX) += slre.o
  obj-y += string.o
1befb38b8   Alexander Graf   x86: Move table c...
81
  obj-y += tables_csum.o
0a1a15755   Masahiro Yamada   lib: convert make...
82
83
  obj-y += time.o
  obj-$(CONFIG_TRACE) += trace.o
4e4815fea   Przemyslaw Marczak   lib: uuid: add fu...
84
  obj-$(CONFIG_LIB_UUID) += uuid.o
3c1c68cc0   Przemyslaw Marczak   lib: rand: introd...
85
  obj-$(CONFIG_LIB_RAND) += rand.o
e91df49fb   Masahiro Yamada   kbuild, blackfin:...
86

7d9cde103   Stefan Roese   lib/tiny-printf.c...
87
  ifdef CONFIG_SPL_BUILD
76f1f3881   Simon Glass   Use separate opti...
88
89
90
91
92
  ifdef CONFIG_TPL_BUILD
  SERIAL_SUPPORT := $(CONFIG_TPL_SERIAL_SUPPORT)
  else
  SERIAL_SUPPORT := $(CONFIG_SPL_SERIAL_SUPPORT)
  endif
7d9cde103   Stefan Roese   lib/tiny-printf.c...
93
94
  # SPL U-Boot may use full-printf, tiny-printf or none at all
  ifdef CONFIG_USE_TINY_PRINTF
76f1f3881   Simon Glass   Use separate opti...
95
  obj-$(SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
7d9cde103   Stefan Roese   lib/tiny-printf.c...
96
  else
76f1f3881   Simon Glass   Use separate opti...
97
  obj-$(SERIAL_SUPPORT) += vsprintf.o panic.o strto.o strmhz.o
7d9cde103   Stefan Roese   lib/tiny-printf.c...
98
99
100
  endif
  else
  # Main U-Boot always uses the full printf support
be86492bd   Chris Packham   lib: make strmhz ...
101
  obj-y += vsprintf.o panic.o strto.o strmhz.o
7d9cde103   Stefan Roese   lib/tiny-printf.c...
102
  endif
e91df49fb   Masahiro Yamada   kbuild, blackfin:...
103
  subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2