xref: /openbmc/u-boot/lib/Makefile (revision afea2c96)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8ifndef CONFIG_SPL_BUILD
9obj-$(CONFIG_AES) += aes.o
10obj-$(CONFIG_BZIP2) += bzlib.o
11obj-$(CONFIG_BZIP2) += bzlib_crctable.o
12obj-$(CONFIG_BZIP2) += bzlib_decompress.o
13obj-$(CONFIG_BZIP2) += bzlib_randtable.o
14obj-$(CONFIG_BZIP2) += bzlib_huffman.o
15obj-$(CONFIG_USB_TTY) += circbuf.o
16obj-y += crc7.o
17obj-y += crc16.o
18obj-$(CONFIG_OF_CONTROL) += fdtdec.o
19obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
20obj-$(CONFIG_GZIP) += gunzip.o
21obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
22obj-y += initcall.o
23obj-$(CONFIG_LMB) += lmb.o
24obj-y += ldiv.o
25obj-$(CONFIG_MD5) += md5.o
26obj-y += net_utils.o
27obj-$(CONFIG_PHYSMEM) += physmem.o
28obj-y += qsort.o
29obj-$(CONFIG_SHA1) += sha1.o
30obj-$(CONFIG_SHA256) += sha256.o
31obj-y	+= strmhz.o
32obj-$(CONFIG_TPM) += tpm.o
33obj-$(CONFIG_RBTREE)	+= rbtree.o
34obj-$(CONFIG_BITREVERSE) += bitrev.o
35endif
36
37ifdef CONFIG_SPL_BUILD
38obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
39obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
40endif
41obj-$(CONFIG_ADDR_MAP) += addr_map.o
42obj-y += hashtable.o
43obj-y += errno.o
44obj-y += display_options.o
45obj-$(CONFIG_BCH) += bch.o
46obj-y += crc32.o
47obj-y += ctype.o
48obj-y += div64.o
49obj-y += hang.o
50obj-y += linux_string.o
51obj-$(CONFIG_REGEX) += slre.o
52obj-y += string.o
53obj-y += time.o
54obj-$(CONFIG_TRACE) += trace.o
55obj-$(CONFIG_BOOTP_PXE) += uuid.o
56obj-y += vsprintf.o
57obj-$(CONFIG_RANDOM_MACADDR) += rand.o
58obj-$(CONFIG_BOOTP_RANDOM_DELAY) += rand.o
59obj-$(CONFIG_CMD_LINK_LOCAL) += rand.o
60
61# SEE README.arm-unaligned-accesses
62$(obj)bzlib.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
63