Blame view

lib/Makefile 9.41 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
4
  #
  # Makefile for some libs needed in the kernel.
  #
606576ce8   Steven Rostedt   ftrace: rename FT...
5
  ifdef CONFIG_FUNCTION_TRACER
2464a609d   Ingo Molnar   ftrace: do not tr...
6
  ORIG_CFLAGS := $(KBUILD_CFLAGS)
c0a80c0c2   Heiko Carstens   ftrace: allow arc...
7
  KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS))
2464a609d   Ingo Molnar   ftrace: do not tr...
8
  endif
5c9a8750a   Dmitry Vyukov   kernel: add kcov ...
9
10
11
12
13
14
15
16
  # These files are disabled because they produce lots of non-interesting and/or
  # flaky coverage that is not a function of syscall inputs. For example,
  # rbtree can be global and individual rotations don't correlate with inputs.
  KCOV_INSTRUMENT_string.o := n
  KCOV_INSTRUMENT_rbtree.o := n
  KCOV_INSTRUMENT_list_debug.o := n
  KCOV_INSTRUMENT_debugobjects.o := n
  KCOV_INSTRUMENT_dynamic_debug.o := n
5c9a8750a   Dmitry Vyukov   kernel: add kcov ...
17

b51ce3744   Gary Hook   x86/mm/mem_encryp...
18
19
20
  # Early boot use of cmdline, don't instrument it
  ifdef CONFIG_AMD_MEM_ENCRYPT
  KASAN_SANITIZE_string.o := n
b51ce3744   Gary Hook   x86/mm/mem_encryp...
21
22
  CFLAGS_string.o := $(call cc-option, -fno-stack-protector)
  endif
7a5c5d573   Alexey Dobriyan   Move kasprintf.o ...
23
  lib-y := ctype.o string.o vsprintf.o cmdline.o \
f8d5d0cc1   Matthew Wilcox   xarray: Add defin...
24
  	 rbtree.o radix-tree.o timerqueue.o xarray.o \
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
25
  	 idr.o extable.o \
1ca1b9179   Eric Biggers   crypto: chacha20-...
26
  	 sha1.o chacha.o irq_regs.o argv_split.o \
d18d12d0f   Richard Cochran   lib/proportions: ...
27
  	 flex_proportions.o ratelimit.o show_mem.o \
18dd0bf22   Linus Torvalds   Merge branch 'x86...
28
  	 is_single_threaded.o plist.o decompress.o kobject_uevent.o \
f2ae67941   Sebastian Andrzej Siewior   alpha: Remove cus...
29
  	 earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
93048c094   Alexander Shishkin   lib: Fix ia64 boo...
30
  	 nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o
9a19fea43   Patrick Mochel   [PATCH] Add initi...
31

e36df28f5   Dave Young   printk: move dump...
32
  lib-$(CONFIG_PRINTK) += dump_stack.o
74588d8ba   Haavard Skinnemoen   [PATCH] Generic i...
33
  lib-$(CONFIG_MMU) += ioremap.o
ccb46000f   Andrew Morton   [PATCH] cpumask: ...
34
  lib-$(CONFIG_SMP) += cpumask.o
4af679cd7   Peter Zijlstra   kref: Inline all ...
35
  lib-y	+= kobject.o klist.o
2f4f12e57   Linus Torvalds   lockref: uninline...
36
  obj-y	+= lockref.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
37

2c64e9cb0   Andy Shevchenko   lib: Move mathema...
38
  obj-y += bcd.o sort.o parser.o debug_locks.o random32.o \
64d1d77a4   Andy Shevchenko   hexdump: introduc...
39
  	 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
40
  	 list_sort.o uuid.o iov_iter.o clz_ctz.o \
840620a15   Yury Norov   lib: rename lib/f...
41
  	 bsearch.o find_bit.o llist.o memweight.o kfifo.o \
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
42
  	 percpu-refcount.o rhashtable.o \
ba20ba2e3   Kent Overstreet   generic radix trees
43
44
  	 once.o refcount.o usercopy.o errseq.o bucket_locks.o \
  	 generic-radix-tree.o
d6b28e099   Geert Uytterhoeven   lib: add module s...
45
  obj-$(CONFIG_STRING_SELFTEST) += test_string.o
16c7fa058   Andy Shevchenko   lib/string_helper...
46
47
  obj-y += string_helpers.o
  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
64d1d77a4   Andy Shevchenko   hexdump: introduc...
48
  obj-y += hexdump.o
60b2e8f4f   Andy Shevchenko   test_hexdump: ren...
49
  obj-$(CONFIG_TEST_HEXDUMP) += test_hexdump.o
33ee3b2e2   Alexey Dobriyan   kstrto*: converti...
50
  obj-y += kstrtox.o
dceeb3e7f   Yury Norov   lib/test_find_bit...
51
  obj-$(CONFIG_FIND_BIT_BENCHMARK) += find_bit_benchmark.o
64a8946b4   Alexei Starovoitov   net: filter: BPF ...
52
  obj-$(CONFIG_TEST_BPF) += test_bpf.o
0a8adf584   Kees Cook   test: add firmwar...
53
  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
9308f2f9e   Luis R. Rodriguez   test_sysctl: add ...
54
  obj-$(CONFIG_TEST_SYSCTL) += test_sysctl.o
2c956a607   Jason A. Donenfeld   siphash: add cryp...
55
  obj-$(CONFIG_TEST_HASH) += test_hash.o test_siphash.o
8ab8ba38d   Matthew Wilcox   ida: Start new te...
56
  obj-$(CONFIG_TEST_IDA) += test_ida.o
3f15801cd   Andrey Ryabinin   lib: add kasan te...
57
  obj-$(CONFIG_TEST_KASAN) += test_kasan.o
69ca372c1   Andrey Konovalov   kasan: prevent co...
58
  CFLAGS_test_kasan.o += -fno-builtin
0bb95f80a   Kees Cook   Makefile: Globall...
59
  CFLAGS_test_kasan.o += $(call cc-disable-warning, vla)
854686f4e   Jinbum Park   lib: add testing ...
60
  obj-$(CONFIG_TEST_UBSAN) += test_ubsan.o
0bb95f80a   Kees Cook   Makefile: Globall...
61
  CFLAGS_test_ubsan.o += $(call cc-disable-warning, vla)
854686f4e   Jinbum Park   lib: add testing ...
62
  UBSAN_SANITIZE_test_ubsan.o := y
3f15801cd   Andrey Ryabinin   lib: add kasan te...
63
  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
e327fd7c8   Geert Uytterhoeven   lib: add module s...
64
  obj-$(CONFIG_TEST_LIST_SORT) += test_list_sort.o
3f15801cd   Andrey Ryabinin   lib: add kasan te...
65
  obj-$(CONFIG_TEST_LKM) += test_module.o
3f21a6b7e   Uladzislau Rezki (Sony)   vmalloc: add test...
66
  obj-$(CONFIG_TEST_VMALLOC) += test_vmalloc.o
455a35a6c   Rasmus Villemoes   lib: add runtime ...
67
  obj-$(CONFIG_TEST_OVERFLOW) += test_overflow.o
9d6dbe1bb   Geert Uytterhoeven   rhashtable: Make ...
68
  obj-$(CONFIG_TEST_RHASHTABLE) += test_rhashtable.o
c5adae958   Kostenzer Felix   lib: add CONFIG_T...
69
  obj-$(CONFIG_TEST_SORT) += test_sort.o
3f15801cd   Andrey Ryabinin   lib: add kasan te...
70
  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
2bf9e0ab0   Ingo Molnar   locking/static_ke...
71
72
  obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_keys.o
  obj-$(CONFIG_TEST_STATIC_KEYS) += test_static_key_base.o
707cc7280   Rasmus Villemoes   test_printf: test...
73
  obj-$(CONFIG_TEST_PRINTF) += test_printf.o
5fd003f56   David Decotigny   test_bitmap: unit...
74
  obj-$(CONFIG_TEST_BITMAP) += test_bitmap.o
0b0600c8c   Tobin C. Harding   lib: Add test mod...
75
  obj-$(CONFIG_TEST_STRSCPY) += test_strscpy.o
0e2dc70e3   Johannes Berg   bitfield: add tests
76
  obj-$(CONFIG_TEST_BITFIELD) += test_bitfield.o
cfaff0e51   Andy Shevchenko   lib/uuid: add a t...
77
  obj-$(CONFIG_TEST_UUID) += test_uuid.o
ad3d6c726   Matthew Wilcox   xarray: Add XArra...
78
  obj-$(CONFIG_TEST_XARRAY) += test_xarray.o
44091d29f   Jiri Pirko   lib: Introduce pr...
79
  obj-$(CONFIG_TEST_PARMAN) += test_parman.o
d9c6a72d6   Luis R. Rodriguez   kmod: add test dr...
80
  obj-$(CONFIG_TEST_KMOD) += test_kmod.o
e4dace361   Florian Fainelli   lib: add test mod...
81
  obj-$(CONFIG_TEST_DEBUG_VIRTUAL) += test_debug_virtual.o
ce76d938d   Alexander Shishkin   lib: Add memcat_p...
82
  obj-$(CONFIG_TEST_MEMCAT_P) += test_memcat_p.o
0a020d416   Jiri Pirko   lib: introduce in...
83
  obj-$(CONFIG_TEST_OBJAGG) += test_objagg.o
50ceaa95e   Kees Cook   lib: Introduce te...
84
  obj-$(CONFIG_TEST_STACKINIT) += test_stackinit.o
509e56b37   Mahesh Bandewar   blackhole_dev: ad...
85
  obj-$(CONFIG_TEST_BLACKHOLE_DEV) += test_blackhole_dev.o
5015a300a   Alexander Potapenko   lib: introduce te...
86
  obj-$(CONFIG_TEST_MEMINIT) += test_meminit.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
87

a2818ee4d   Joe Lawrence   selftests/livepat...
88
  obj-$(CONFIG_TEST_LIVEPATCH) += livepatch/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
89
90
91
92
  ifeq ($(CONFIG_DEBUG_KOBJECT),y)
  CFLAGS_kobject.o += -DDEBUG
  CFLAGS_kobject_uevent.o += -DDEBUG
  endif
50ab9a692   Rasmus Villemoes   kbuild: include c...
93
94
  obj-$(CONFIG_DEBUG_INFO_REDUCED) += debug_info.o
  CFLAGS_debug_info.o += $(call cc-option, -femit-struct-debug-detailed=any)
dc51f2575   Ard Biesheuvel   crypto: arc4 - re...
95
  obj-y += math/ crypto/
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
96

5ea817699   Al Viro   [PATCH] sort the ...
97
  obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
66eab4df2   Michael S. Tsirkin   lib: add GENERIC_...
98
  obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o
928923c76   Geert Uytterhoeven   Introduce CONFIG_...
99
100
  obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
  obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
cae2ed9aa   Ingo Molnar   [PATCH] lockdep: ...
101
  obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
d61931d89   Borislav Petkov   x86: Add optimize...
102

031e36018   Zhichang Yuan   lib: Add generic ...
103
  obj-y += logic_pio.o
702a28b1e   Randy Dunlap   [PATCH] lib funct...
104
  obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
d61931d89   Borislav Petkov   x86: Add optimize...
105

5db53f3e8   Joern Engel   [LogFS] add new f...
106
  obj-$(CONFIG_BTREE) += btree.o
a88cc108f   Chris Wilson   lib: Export inter...
107
  obj-$(CONFIG_INTERVAL_TREE) += interval_tree.o
3cb989501   David Howells   Add a generic ass...
108
  obj-$(CONFIG_ASSOCIATIVE_ARRAY) += assoc_array.o
39c715b71   Ingo Molnar   [PATCH] smp_proce...
109
  obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o
199a9afc3   Dave Jones   [PATCH] Debug var...
110
  obj-$(CONFIG_DEBUG_LIST) += list_debug.o
3ac7fe5a4   Thomas Gleixner   infrastructure to...
111
  obj-$(CONFIG_DEBUG_OBJECTS) += debugobjects.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
112

a5cfc1ec5   Akinobu Mita   [PATCH] bit rever...
113
  obj-$(CONFIG_BITREVERSE) += bitrev.o
554aae350   Vladimir Oltean   lib: Add support ...
114
  obj-$(CONFIG_PACKING)	+= packing.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
115
  obj-$(CONFIG_CRC_CCITT)	+= crc-ccitt.o
7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
116
  obj-$(CONFIG_CRC16)	+= crc16.o
f11f594ed   Martin K. Petersen   [SCSI] lib: Add s...
117
  obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
3e7cbae7c   Ivo van Doorn   CRC ITU-T V.41
118
  obj-$(CONFIG_CRC_ITU_T)	+= crc-itu-t.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
119
  obj-$(CONFIG_CRC32)	+= crc32.o
feba04fd2   Coly Li   lib: add crc64 ca...
120
  obj-$(CONFIG_CRC64)     += crc64.o
5fb7f8740   Geert Uytterhoeven   lib: add module s...
121
  obj-$(CONFIG_CRC32_SELFTEST)	+= crc32test.o
0cbaa4484   Jeremy Kerr   lib: Add crc4 module
122
  obj-$(CONFIG_CRC4)	+= crc4.o
ad241528c   Jan Nikitenko   CRC7 support
123
  obj-$(CONFIG_CRC7)	+= crc7.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
124
  obj-$(CONFIG_LIBCRC32C)	+= libcrc32c.o
7150962d6   Arend van Spriel   lib: crc8: add ne...
125
  obj-$(CONFIG_CRC8)	+= crc8.o
5d2405227   Nick Terrell   lib: Add xxhash m...
126
  obj-$(CONFIG_XXHASH)	+= xxhash.o
f14f75b81   Jes Sorensen   [PATCH] ia64 unca...
127
  obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
128

2da572c95   Dan Streetman   lib: add software...
129
130
  obj-$(CONFIG_842_COMPRESS) += 842/
  obj-$(CONFIG_842_DECOMPRESS) += 842/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
131
132
133
  obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
  obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
  obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
437aa565e   Ivan Djelic   lib: add shared B...
134
  obj-$(CONFIG_BCH) += bch.o
64c70b1cf   Richard Purdie   Add LZO1X algorit...
135
136
  obj-$(CONFIG_LZO_COMPRESS) += lzo/
  obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
c72ac7a1a   Chanho Min   lib: add lz4 comp...
137
138
  obj-$(CONFIG_LZ4_COMPRESS) += lz4/
  obj-$(CONFIG_LZ4HC_COMPRESS) += lz4/
e76e1fdfa   Kyungsik Lee   lib: add support ...
139
  obj-$(CONFIG_LZ4_DECOMPRESS) += lz4/
73f3d1b48   Nick Terrell   lib: Add zstd mod...
140
141
  obj-$(CONFIG_ZSTD_COMPRESS) += zstd/
  obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd/
24fa0402a   Lasse Collin   decompressors: ad...
142
  obj-$(CONFIG_XZ_DEC) += xz/
f5e70d0fe   David Woodhouse   md: Factor out RA...
143
  obj-$(CONFIG_RAID6_PQ) += raid6/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
144

889c92d21   H. Peter Anvin   bzip2/lzma: centr...
145
146
147
  lib-$(CONFIG_DECOMPRESS_GZIP) += decompress_inflate.o
  lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
  lib-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o
3ebe12439   Lasse Collin   decompressors: ad...
148
  lib-$(CONFIG_DECOMPRESS_XZ) += decompress_unxz.o
cacb246f8   Albin Tonnerre   Add LZO compressi...
149
  lib-$(CONFIG_DECOMPRESS_LZO) += decompress_unlzo.o
e76e1fdfa   Kyungsik Lee   lib: add support ...
150
  lib-$(CONFIG_DECOMPRESS_LZ4) += decompress_unlz4.o
c8531ab34   H. Peter Anvin   bzip2/lzma: prope...
151

65df877ab   David S. Miller   [LIB]: textsearch...
152
  obj-$(CONFIG_TEXTSEARCH) += textsearch.o
df3fb93ad   Thomas Graf   [LIB]: Knuth-Morr...
153
  obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o
8082e4ed0   Pablo Neira Ayuso   [LIB]: Boyer-Moor...
154
  obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o
6408f79cc   Thomas Graf   [LIB]: Naive fini...
155
  obj-$(CONFIG_TEXTSEARCH_FSM) += ts_fsm.o
3cbc56402   Ravikiran G Thirumalai   [PATCH] percpu_co...
156
  obj-$(CONFIG_SMP) += percpu_counter.o
e65e1fc2d   Al Viro   [PATCH] syscall c...
157
  obj-$(CONFIG_AUDIT_GENERIC) += audit.o
4b5884114   AKASHI Takahiro   audit: Add generi...
158
  obj-$(CONFIG_AUDIT_COMPAT_GENERIC) += compat_audit.o
2de4ff7bd   Thomas Graf   [LIB]: Textsearch...
159

0d3fdb157   Christoph Hellwig   iommu-common: mov...
160
  obj-$(CONFIG_IOMMU_HELPER) += iommu-helper.o
6ff1cb355   Akinobu Mita   [PATCH] fault-inj...
161
  obj-$(CONFIG_FAULT_INJECTION) += fault-inject.o
8d4382881   Akinobu Mita   fault-injection: ...
162
  obj-$(CONFIG_NOTIFIER_ERROR_INJECTION) += notifier-error-inject.o
048b9c354   Akinobu Mita   PM: PM notifier e...
163
  obj-$(CONFIG_PM_NOTIFIER_ERROR_INJECT) += pm-notifier-error-inject.o
02fff96a7   Nikolay Aleksandrov   net: add support ...
164
  obj-$(CONFIG_NETDEV_NOTIFIER_ERROR_INJECT) += netdev-notifier-error-inject.o
9579f5bd3   Akinobu Mita   memory: memory no...
165
  obj-$(CONFIG_MEMORY_NOTIFIER_ERROR_INJECT) += memory-notifier-error-inject.o
d526e85f6   Benjamin Herrenschmidt   powerpc+of: Renam...
166
167
  obj-$(CONFIG_OF_RECONFIG_NOTIFIER_ERROR_INJECT) += \
  	of-reconfig-notifier-error-inject.o
540adea38   Masami Hiramatsu   error-injection: ...
168
  obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
169

7664c5a1d   Jeremy Fitzhardinge   [PATCH] Generic B...
170
  lib-$(CONFIG_GENERIC_BUG) += bug.o
bbc698636   Roland McGrath   task_current_syscall
171
  obj-$(CONFIG_HAVE_ARCH_TRACEHOOK) += syscall.o
e9d376f0f   Jason Baron   dynamic debug: co...
172
  obj-$(CONFIG_DYNAMIC_DEBUG) += dynamic_debug.o
346e15beb   Jason Baron   driver core: basi...
173

e9cc8bdda   Geert Uytterhoeven   netlink: Move net...
174
  obj-$(CONFIG_NLATTR) += nlattr.o
346e15beb   Jason Baron   driver core: basi...
175

b411b3637   Philipp Reisner   The DRBD driver
176
  obj-$(CONFIG_LRU_CACHE) += lru_cache.o
26a28fa4f   Arnd Bergmann   add generic lib/c...
177
  obj-$(CONFIG_GENERIC_CSUM) += checksum.o
09d4e0edd   Paul Mackerras   lib: Provide gene...
178
  obj-$(CONFIG_GENERIC_ATOMIC64) += atomic64.o
86a893807   Luca Barbieri   lib: Add self-tes...
179
  obj-$(CONFIG_ATOMIC64_SELFTEST) += atomic64_test.o
c39649c33   Ben Hutchings   lib: cpu_rmap: CP...
180
  obj-$(CONFIG_CPU_RMAP) += cpu_rmap.o
75957ba36   Tom Herbert   dql: Dynamic queu...
181
  obj-$(CONFIG_DQL) += dynamic_queue_limits.o
b01250856   George Spelvin   lib: add lib/glob.c
182
  obj-$(CONFIG_GLOB) += glob.o
ba95b045e   Geert Uytterhoeven   lib: add module s...
183
  obj-$(CONFIG_GLOB_SELFTEST) += globtest.o
b01250856   George Spelvin   lib: add lib/glob.c
184

d9c46b184   Dmitry Kasatkin   crypto: GnuPG bas...
185
  obj-$(CONFIG_MPILIB) += mpi/
4f75da366   Tal Gilboa   linux/dim: Move i...
186
  obj-$(CONFIG_DIMLIB) += dim/
5e8898e97   Dmitry Kasatkin   lib: digital sign...
187
  obj-$(CONFIG_SIGNATURE) += digsig.o
d9c46b184   Dmitry Kasatkin   crypto: GnuPG bas...
188

f59487018   Chris Metcalf   lib/clz_tab.c: pu...
189
  lib-$(CONFIG_CLZ_TAB) += clz_tab.o
c6df4b17c   David Miller   lib: Fix multiple...
190

2922585b9   David S. Miller   lib: Sparc's strn...
191
  obj-$(CONFIG_GENERIC_STRNCPY_FROM_USER) += strncpy_from_user.o
a08c5356a   Linus Torvalds   lib: add generic ...
192
  obj-$(CONFIG_GENERIC_STRNLEN_USER) += strnlen_user.o
2922585b9   David S. Miller   lib: Sparc's strn...
193

4cd5773a2   Andy Shevchenko   net: core: move m...
194
  obj-$(CONFIG_GENERIC_NET_UTILS) += net_utils.o
f8bcbe62a   Robert Jarzmik   lib: scatterlist:...
195
  obj-$(CONFIG_SG_SPLIT) += sg_split.o
9b1d6c895   Ming Lin   lib: scatterlist:...
196
  obj-$(CONFIG_SG_POOL) += sg_pool.o
4ccf4beab   Wolfram Sang   lib: add support ...
197
  obj-$(CONFIG_STMP_DEVICE) += stmp_device.o
511cbce2f   Christoph Hellwig   irq_poll: make bl...
198
  obj-$(CONFIG_IRQ_POLL) += irq_poll.o
4ccf4beab   Wolfram Sang   lib: add support ...
199

cd11016e5   Alexander Potapenko   mm, kasan: stackd...
200
201
  obj-$(CONFIG_STACKDEPOT) += stackdepot.o
  KASAN_SANITIZE_stackdepot.o := n
65deb8af7   Alexander Potapenko   kcov: do not inst...
202
  KCOV_INSTRUMENT_stackdepot.o := n
cd11016e5   Alexander Potapenko   mm, kasan: stackd...
203

adaf56878   Mark Salter   lib: add fdt_empt...
204
205
  libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
  	       fdt_empty_tree.o
ab2538398   David Daney   of/lib: Allow scr...
206
  $(foreach file, $(libfdt_files), \
13d3bc715   Masahiro Yamada   libfdt: prefix he...
207
  	$(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt))
ab2538398   David Daney   of/lib: Allow scr...
208
  lib-$(CONFIG_LIBFDT) += $(libfdt_files)
910a742d4   Michel Lespinasse   rbtree: performan...
209
  obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o
fff3fd8a1   Michel Lespinasse   rbtree: add prio ...
210
  obj-$(CONFIG_INTERVAL_TREE_TEST) += interval_tree_test.o
623fd8072   Greg Thelen   percpu: add test ...
211
  obj-$(CONFIG_PERCPU_TEST) += percpu_test.o
42d5ec27f   David Howells   X.509: Add an ASN...
212
  obj-$(CONFIG_ASN1) += asn1_decoder.o
ee89bd6bc   Geert Uytterhoeven   lib: Move fonts f...
213
  obj-$(CONFIG_FONT_SUPPORT) += fonts/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
214
  hostprogs-y	:= gen_crc32table
feba04fd2   Coly Li   lib: add crc64 ca...
215
  hostprogs-y	+= gen_crc64table
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
216
  clean-files	:= crc32table.h
feba04fd2   Coly Li   lib: add crc64 ca...
217
  clean-files	+= crc64table.h
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
218
219
220
221
222
223
224
225
  
  $(obj)/crc32.o: $(obj)/crc32table.h
  
  quiet_cmd_crc32 = GEN     $@
        cmd_crc32 = $< > $@
  
  $(obj)/crc32table.h: $(obj)/gen_crc32table
  	$(call cmd,crc32)
a77ad6ea0   David Howells   X.509: Implement ...
226

feba04fd2   Coly Li   lib: add crc64 ca...
227
228
229
230
231
232
233
  $(obj)/crc64.o: $(obj)/crc64table.h
  
  quiet_cmd_crc64 = GEN     $@
        cmd_crc64 = $< > $@
  
  $(obj)/crc64table.h: $(obj)/gen_crc64table
  	$(call cmd,crc64)
a77ad6ea0   David Howells   X.509: Implement ...
234
235
236
237
  #
  # Build a fast OID lookip registry from include/linux/oid_registry.h
  #
  obj-$(CONFIG_OID_REGISTRY) += oid_registry.o
527897ccd   Tim Gardner   lib/Makefile: Fix...
238
  $(obj)/oid_registry.o: $(obj)/oid_registry_data.c
a77ad6ea0   David Howells   X.509: Implement ...
239
240
241
242
243
244
245
246
247
  
  $(obj)/oid_registry_data.c: $(srctree)/include/linux/oid_registry.h \
  			    $(src)/build_OID_registry
  	$(call cmd,build_OID_registry)
  
  quiet_cmd_build_OID_registry = GEN     $@
        cmd_build_OID_registry = perl $(srctree)/$(src)/build_OID_registry $< $@
  
  clean-files	+= oid_registry_data.c
0635eb8a5   Matthew Garrett   Move utf16 functi...
248
249
  
  obj-$(CONFIG_UCS2_STRING) += ucs2_string.o
c6d308534   Andrey Ryabinin   UBSAN: run-time u...
250
251
252
  obj-$(CONFIG_UBSAN) += ubsan.o
  
  UBSAN_SANITIZE_ubsan.o := n
af700eaed   Arnd Bergmann   ubsan: build ubsa...
253
254
  KASAN_SANITIZE_ubsan.o := n
  CFLAGS_ubsan.o := $(call cc-option, -fno-stack-protector) $(DISABLE_STACKLEAK_PLUGIN)
88459642c   Omar Sandoval   blk-mq: abstract ...
255
256
  
  obj-$(CONFIG_SBITMAP) += sbitmap.o
44091d29f   Jiri Pirko   lib: Introduce pr...
257
258
  
  obj-$(CONFIG_PARMAN) += parman.o
b35cd9884   Palmer Dabbelt   lib: Add shared c...
259
260
  
  # GCC library routines
e3d598056   Matt Redfearn   lib: Rename compi...
261
262
263
264
265
266
  obj-$(CONFIG_GENERIC_LIB_ASHLDI3) += ashldi3.o
  obj-$(CONFIG_GENERIC_LIB_ASHRDI3) += ashrdi3.o
  obj-$(CONFIG_GENERIC_LIB_LSHRDI3) += lshrdi3.o
  obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o
  obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o
  obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o
0a020d416   Jiri Pirko   lib: introduce in...
267
  obj-$(CONFIG_OBJAGG) += objagg.o