]> Git Repo - J-u-boot.git/blame - lib/Makefile
image: Use the correct checks for CRC32
[J-u-boot.git] / lib / Makefile
CommitLineData
83d290c5 1# SPDX-License-Identifier: GPL-2.0+
87e33a6f 2#
f9328639 3# (C) Copyright 2000-2006
87e33a6f 4# Wolfgang Denk, DENX Software Engineering, [email protected].
87e33a6f 5
05bad4aa 6ifndef CONFIG_SPL_BUILD
fdc36977 7
867a6ac8 8obj-$(CONFIG_EFI) += efi/
05ef48a2 9obj-$(CONFIG_EFI_LOADER) += efi_driver/
ed980b8c 10obj-$(CONFIG_EFI_LOADER) += efi_loader/
f6e7b653 11obj-$(CONFIG_CMD_BOOTEFI_SELFTEST) += efi_selftest/
fdc36977 12obj-$(CONFIG_LZMA) += lzma/
f071c501 13obj-$(CONFIG_BZIP2) += bzip2/
fdc36977 14obj-$(CONFIG_TIZEN) += tizen/
d1389403 15obj-$(CONFIG_FIT) += libfdt/
8b50d526 16obj-$(CONFIG_OF_LIVE) += of_live.o
d1389403 17obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
d330e04d 18obj-$(CONFIG_ARCH_AT91) += at91/
51827f9a 19obj-$(CONFIG_OPTEE_LIB) += optee/
ab8a0e06 20obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o
b4adf627 21obj-y += crypto/
fdc36977 22
0a1a1575 23obj-$(CONFIG_AES) += aes.o
4df35781 24obj-$(CONFIG_AES) += aes/
3c10dc95 25obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o
fbb3ea80
HS
26
27ifndef API_BUILD
1a46cb6c 28ifneq ($(CONFIG_CHARSET),)
f11a164b
HS
29obj-y += charset.o
30endif
fbb3ea80 31endif
0a1a1575 32obj-$(CONFIG_USB_TTY) += circbuf.o
60d18d3f 33obj-y += crc8.o
0a1a1575 34obj-y += crc16.o
10f5f5a9 35obj-$(CONFIG_ERRNO_STR) += errno_str.o
b047d671 36obj-$(CONFIG_FIT) += fdtdec_common.o
0a1a1575 37obj-$(CONFIG_TEST_FDTDEC) += fdtdec_test.o
0a1a1575 38obj-$(CONFIG_GZIP_COMPRESSED) += gzip.o
4b6dddc2 39obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
415eab06 40obj-$(CONFIG_SMBIOS_PARSER) += smbios-parser.o
c232d14d 41obj-$(CONFIG_IMAGE_SPARSE) += image-sparse.o
0a1a1575 42obj-y += ldiv.o
83a486b6 43obj-$(CONFIG_XXHASH) += xxhash.o
0a1a1575
MY
44obj-y += net_utils.o
45obj-$(CONFIG_PHYSMEM) += physmem.o
1acab96d 46obj-y += rc4.o
91fdabc6 47obj-$(CONFIG_SUPPORT_EMMC_RPMB) += sha256.o
0a1a1575
MY
48obj-$(CONFIG_RBTREE) += rbtree.o
49obj-$(CONFIG_BITREVERSE) += bitrev.o
c068d44a 50obj-y += list_sort.o
05bad4aa
A
51endif
52
6307896c
SG
53obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o
54ifeq ($(CONFIG_$(SPL_TPL_)TPM),y)
55obj-y += crc8.o
d6a885f0 56obj-$(CONFIG_TPM) += tpm_api.o
6307896c
SG
57obj-$(CONFIG_TPM_V1) += tpm-v1.o
58obj-$(CONFIG_TPM_V2) += tpm-v2.o
59endif
60
91fe8b79 61obj-$(CONFIG_$(SPL_)ACPIGEN) += acpi/
8239be61 62obj-$(CONFIG_$(SPL_)MD5) += md5.o
928a8be7 63obj-$(CONFIG_ECDSA) += ecdsa/
1b27753a 64obj-$(CONFIG_$(SPL_)RSA) += rsa/
464010b0 65obj-$(CONFIG_HASH) += hash-checksum.o
089df18b
TR
66obj-$(CONFIG_SHA1) += sha1.o
67obj-$(CONFIG_SHA256) += sha256.o
e60e4499 68obj-$(CONFIG_SHA512) += sha512.o
26dd9936 69obj-$(CONFIG_CRYPT_PW) += crypt/
51c14cd1 70
7264f292 71obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
8509f22a 72obj-$(CONFIG_$(SPL_)ZSTD) += zstd/
7264f292 73obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
f52bdf4b 74obj-$(CONFIG_$(SPL_)LZO) += lzo/
04cb3994 75obj-$(CONFIG_$(SPL_)LZMA) += lzma/
048c6e89 76obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o
f52bdf4b 77
7d0f3fbb
TK
78obj-$(CONFIG_$(SPL_)LIB_RATIONAL) += rational.o
79
3330584d 80obj-$(CONFIG_LIBAVB) += libavb/
7264f292 81
6dced7df 82obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
f99cbe4e 83obj-$(CONFIG_$(SPL_TPL_)OF_REAL) += fdtdec_common.o fdtdec.o
1d76bf22 84
24de357a 85ifdef CONFIG_SPL_BUILD
0a1a1575 86obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
07212096 87obj-$(CONFIG_$(SPL_TPL_)HASH) += crc16.o
c8291f53 88obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16.o
d721001f 89obj-y += net_utils.o
24de357a 90endif
0a1a1575 91obj-$(CONFIG_ADDR_MAP) += addr_map.o
03dcf17d 92obj-y += qsort.o
0a1a1575
MY
93obj-y += hashtable.o
94obj-y += errno.o
95obj-y += display_options.o
15b51878 96CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
0a1a1575 97obj-$(CONFIG_BCH) += bch.o
10860470 98obj-$(CONFIG_MMC_SPI) += crc7.o
e7d285b2 99obj-$(CONFIG_$(SPL_TPL_)CRC32) += crc32.o
85d8bf57 100obj-$(CONFIG_CRC32C) += crc32c.o
0a1a1575
MY
101obj-y += ctype.o
102obj-y += div64.o
d3329f09 103obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o
0a1a1575 104obj-y += hang.o
0c06db59 105obj-y += linux_compat.o
0a1a1575 106obj-y += linux_string.o
a156c47e 107obj-$(CONFIG_LMB) += lmb.o
b7b65090 108obj-y += membuff.o
0a1a1575
MY
109obj-$(CONFIG_REGEX) += slre.o
110obj-y += string.o
1befb38b 111obj-y += tables_csum.o
0a1a1575 112obj-y += time.o
f8c987f8 113obj-y += hexdump.o
72eda507 114obj-$(CONFIG_GETOPT) += getopt.o
0a1a1575 115obj-$(CONFIG_TRACE) += trace.o
4e4815fe 116obj-$(CONFIG_LIB_UUID) += uuid.o
3c1c68cc 117obj-$(CONFIG_LIB_RAND) += rand.o
14ad44ab 118obj-y += panic.o
e91df49f 119
14ad44ab 120ifeq ($(CONFIG_$(SPL_TPL_)BUILD),y)
7d9cde10 121# SPL U-Boot may use full-printf, tiny-printf or none at all
27084c03 122ifdef CONFIG_$(SPL_TPL_)USE_TINY_PRINTF
14ad44ab 123obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += tiny-printf.o
7d9cde10 124else
2189d5f1 125obj-$(CONFIG_$(SPL_TPL_)SPRINTF) += vsprintf.o
7d9cde10 126endif
14ad44ab 127obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o
7d9cde10
SR
128else
129# Main U-Boot always uses the full printf support
2189d5f1 130obj-y += vsprintf.o strto.o
4f4d526f 131obj-$(CONFIG_OID_REGISTRY) += oid_registry.o
e87dfb05 132obj-$(CONFIG_SSCANF) += sscanf.o
7d9cde10
SR
133endif
134
67bc59df 135obj-y += abuf.o
05429b6c 136obj-y += date.o
e94ef579 137obj-y += rtc-lib.o
805b3cac 138obj-$(CONFIG_LIB_ELF) += elf.o
05429b6c 139
a9b45e6e
AT
140#
141# Build a fast OID lookup registry from include/linux/oid_registry.h
142#
a9b45e6e
AT
143$(obj)/oid_registry.o: $(obj)/oid_registry_data.c
144
145$(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \
146 $(srctree)/scripts/build_OID_registry
147 $(call cmd,build_OID_registry)
148
149quiet_cmd_build_OID_registry = GEN $@
150 cmd_build_OID_registry = perl $(srctree)/scripts/build_OID_registry $< $@
151
152clean-files += oid_registry_data.c
153
e91df49f 154subdir-ccflags-$(CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED) += -O2
This page took 0.554625 seconds and 4 git commands to generate.