Blame view

lib/Makefile 11.7 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.
  #
15d5761ad   Masahiro Yamada   kbuild: introduce...
5
  ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE)
2464a609d   Ingo Molnar   ftrace: do not tr...
6

5c9a8750a   Dmitry Vyukov   kernel: add kcov ...
7
8
9
10
11
12
13
14
  # 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
43e76af85   Dmitry Vyukov   kcov: ignore faul...
15
  KCOV_INSTRUMENT_fault-inject.o := n
5c9a8750a   Dmitry Vyukov   kernel: add kcov ...
16

33d0f96ff   Arvind Sankar   lib/string.c: Use...
17
18
19
20
  # string.o implements standard library functions like memset/memcpy etc.
  # Use -ffreestanding to ensure that the compiler does not try to "optimize"
  # them into calls to themselves.
  CFLAGS_string.o := -ffreestanding
b51ce3744   Gary Hook   x86/mm/mem_encryp...
21
22
23
  # Early boot use of cmdline, don't instrument it
  ifdef CONFIG_AMD_MEM_ENCRYPT
  KASAN_SANITIZE_string.o := n
33d0f96ff   Arvind Sankar   lib/string.c: Use...
24
  CFLAGS_string.o += -fno-stack-protector
b51ce3744   Gary Hook   x86/mm/mem_encryp...
25
  endif
dfd402a4c   Marco Elver   kcsan: Add Kernel...
26
27
  # Used by KCSAN while enabled, avoid recursion.
  KCSAN_SANITIZE_random32.o := n
7a5c5d573   Alexey Dobriyan   Move kasprintf.o ...
28
  lib-y := ctype.o string.o vsprintf.o cmdline.o \
f8d5d0cc1   Matthew Wilcox   xarray: Add defin...
29
  	 rbtree.o radix-tree.o timerqueue.o xarray.o \
5fb8ef258   Ard Biesheuvel   crypto: chacha - ...
30
  	 idr.o extable.o sha1.o irq_regs.o argv_split.o \
d18d12d0f   Richard Cochran   lib/proportions: ...
31
  	 flex_proportions.o ratelimit.o show_mem.o \
18dd0bf22   Linus Torvalds   Merge branch 'x86...
32
  	 is_single_threaded.o plist.o decompress.o kobject_uevent.o \
f2ae67941   Sebastian Andrzej Siewior   alpha: Remove cus...
33
  	 earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
93048c094   Alexander Shishkin   lib: Fix ia64 boo...
34
  	 nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o
9a19fea43   Patrick Mochel   [PATCH] Add initi...
35

e36df28f5   Dave Young   printk: move dump...
36
  lib-$(CONFIG_PRINTK) += dump_stack.o
ccb46000f   Andrew Morton   [PATCH] cpumask: ...
37
  lib-$(CONFIG_SMP) += cpumask.o
4af679cd7   Peter Zijlstra   kref: Inline all ...
38
  lib-y	+= kobject.o klist.o
2f4f12e57   Linus Torvalds   lockref: uninline...
39
  obj-y	+= lockref.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
40

2c64e9cb0   Andy Shevchenko   lib: Move mathema...
41
  obj-y += bcd.o sort.o parser.o debug_locks.o random32.o \
64d1d77a4   Andy Shevchenko   hexdump: introduc...
42
  	 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
43
  	 list_sort.o uuid.o iov_iter.o clz_ctz.o \
840620a15   Yury Norov   lib: rename lib/f...
44
  	 bsearch.o find_bit.o llist.o memweight.o kfifo.o \
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
45
  	 percpu-refcount.o rhashtable.o \
ba20ba2e3   Kent Overstreet   generic radix trees
46
47
  	 once.o refcount.o usercopy.o errseq.o bucket_locks.o \
  	 generic-radix-tree.o
d6b28e099   Geert Uytterhoeven   lib: add module s...
48
  obj-$(CONFIG_STRING_SELFTEST) += test_string.o
16c7fa058   Andy Shevchenko   lib/string_helper...
49
50
  obj-y += string_helpers.o
  obj-$(CONFIG_TEST_STRING_HELPERS) += test-string_helpers.o
64d1d77a4   Andy Shevchenko   hexdump: introduc...
51
  obj-y += hexdump.o
60b2e8f4f   Andy Shevchenko   test_hexdump: ren...
52
  obj-$(CONFIG_TEST_HEXDUMP) += test_hexdump.o
33ee3b2e2   Alexey Dobriyan   kstrto*: converti...
53
  obj-y += kstrtox.o
dceeb3e7f   Yury Norov   lib/test_find_bit...
54
  obj-$(CONFIG_FIND_BIT_BENCHMARK) += find_bit_benchmark.o
64a8946b4   Alexei Starovoitov   net: filter: BPF ...
55
  obj-$(CONFIG_TEST_BPF) += test_bpf.o
0a8adf584   Kees Cook   test: add firmwar...
56
  obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o
c348c1630   Jesse Brandeburg   lib: make a test ...
57
58
  obj-$(CONFIG_TEST_BITOPS) += test_bitops.o
  CFLAGS_test_bitops.o += -Werror
9308f2f9e   Luis R. Rodriguez   test_sysctl: add ...
59
  obj-$(CONFIG_TEST_SYSCTL) += test_sysctl.o
2c956a607   Jason A. Donenfeld   siphash: add cryp...
60
  obj-$(CONFIG_TEST_HASH) += test_hash.o test_siphash.o
8ab8ba38d   Matthew Wilcox   ida: Start new te...
61
  obj-$(CONFIG_TEST_IDA) += test_ida.o
73228c7ec   Patricia Alfonso   KASAN: port KASAN...
62
  obj-$(CONFIG_KASAN_KUNIT_TEST) += test_kasan.o
69ca372c1   Andrey Konovalov   kasan: prevent co...
63
  CFLAGS_test_kasan.o += -fno-builtin
0bb95f80a   Kees Cook   Makefile: Globall...
64
  CFLAGS_test_kasan.o += $(call cc-disable-warning, vla)
73228c7ec   Patricia Alfonso   KASAN: port KASAN...
65
66
  obj-$(CONFIG_TEST_KASAN_MODULE) += test_kasan_module.o
  CFLAGS_test_kasan_module.o += -fno-builtin
854686f4e   Jinbum Park   lib: add testing ...
67
  obj-$(CONFIG_TEST_UBSAN) += test_ubsan.o
0bb95f80a   Kees Cook   Makefile: Globall...
68
  CFLAGS_test_ubsan.o += $(call cc-disable-warning, vla)
854686f4e   Jinbum Park   lib: add testing ...
69
  UBSAN_SANITIZE_test_ubsan.o := y
3f15801cd   Andrey Ryabinin   lib: add kasan te...
70
  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
e327fd7c8   Geert Uytterhoeven   lib: add module s...
71
  obj-$(CONFIG_TEST_LIST_SORT) += test_list_sort.o
6e24628d7   Ian Rogers   lib: Introduce ge...
72
  obj-$(CONFIG_TEST_MIN_HEAP) += test_min_heap.o
3f15801cd   Andrey Ryabinin   lib: add kasan te...
73
  obj-$(CONFIG_TEST_LKM) += test_module.o
3f21a6b7e   Uladzislau Rezki (Sony)   vmalloc: add test...
74
  obj-$(CONFIG_TEST_VMALLOC) += test_vmalloc.o
455a35a6c   Rasmus Villemoes   lib: add runtime ...
75
  obj-$(CONFIG_TEST_OVERFLOW) += test_overflow.o
9d6dbe1bb   Geert Uytterhoeven   rhashtable: Make ...
76
  obj-$(CONFIG_TEST_RHASHTABLE) += test_rhashtable.o
c5adae958   Kostenzer Felix   lib: add CONFIG_T...
77
  obj-$(CONFIG_TEST_SORT) += test_sort.o
3f15801cd   Andrey Ryabinin   lib: add kasan te...
78
  obj-$(CONFIG_TEST_USER_COPY) += test_user_copy.o
2bf9e0ab0   Ingo Molnar   locking/static_ke...
79
80
  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...
81
  obj-$(CONFIG_TEST_PRINTF) += test_printf.o
5fd003f56   David Decotigny   test_bitmap: unit...
82
  obj-$(CONFIG_TEST_BITMAP) += test_bitmap.o
0b0600c8c   Tobin C. Harding   lib: Add test mod...
83
  obj-$(CONFIG_TEST_STRSCPY) += test_strscpy.o
cfaff0e51   Andy Shevchenko   lib/uuid: add a t...
84
  obj-$(CONFIG_TEST_UUID) += test_uuid.o
ad3d6c726   Matthew Wilcox   xarray: Add XArra...
85
  obj-$(CONFIG_TEST_XARRAY) += test_xarray.o
44091d29f   Jiri Pirko   lib: Introduce pr...
86
  obj-$(CONFIG_TEST_PARMAN) += test_parman.o
d9c6a72d6   Luis R. Rodriguez   kmod: add test dr...
87
  obj-$(CONFIG_TEST_KMOD) += test_kmod.o
e4dace361   Florian Fainelli   lib: add test mod...
88
  obj-$(CONFIG_TEST_DEBUG_VIRTUAL) += test_debug_virtual.o
ce76d938d   Alexander Shishkin   lib: Add memcat_p...
89
  obj-$(CONFIG_TEST_MEMCAT_P) += test_memcat_p.o
0a020d416   Jiri Pirko   lib: introduce in...
90
  obj-$(CONFIG_TEST_OBJAGG) += test_objagg.o
9cf016e6b   Kees Cook   lib: test_stackin...
91
  CFLAGS_test_stackinit.o += $(call cc-disable-warning, switch-unreachable)
50ceaa95e   Kees Cook   lib: Introduce te...
92
  obj-$(CONFIG_TEST_STACKINIT) += test_stackinit.o
509e56b37   Mahesh Bandewar   blackhole_dev: ad...
93
  obj-$(CONFIG_TEST_BLACKHOLE_DEV) += test_blackhole_dev.o
5015a300a   Alexander Potapenko   lib: introduce te...
94
  obj-$(CONFIG_TEST_MEMINIT) += test_meminit.o
30428ef5d   Konstantin Khlebnikov   lib/test_lockup: ...
95
  obj-$(CONFIG_TEST_LOCKUP) += test_lockup.o
b2ef9f5a5   Ralph Campbell   mm/hmm/test: add ...
96
  obj-$(CONFIG_TEST_HMM) += test_hmm.o
e320d3012   Matthew Wilcox (Oracle)   mm/page_alloc.c: ...
97
  obj-$(CONFIG_TEST_FREE_PAGES) += test_free_pages.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
98

4185b3b92   Petteri Aimonen   selftests/fpu: Ad...
99
100
101
102
103
  #
  # CFLAGS for compiling floating point code inside the kernel. x86/Makefile turns
  # off the generation of FPU/SSE* instructions for kernel proper but FPU_FLAGS
  # get appended last to CFLAGS and thus override those previous compiler options.
  #
84edc2eff   Arnd Bergmann   selftest/fpu: avo...
104
  FPU_CFLAGS := -msse -msse2
4185b3b92   Petteri Aimonen   selftests/fpu: Ad...
105
106
107
108
109
110
111
112
113
114
115
116
  ifdef CONFIG_CC_IS_GCC
  # Stack alignment mismatch, proceed with caution.
  # GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
  # (8B stack alignment).
  # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53383
  #
  # The "-msse" in the first argument is there so that the
  # -mpreferred-stack-boundary=3 build error:
  #
  #  -mpreferred-stack-boundary=3 is not between 4 and 12
  #
  # can be triggered. Otherwise gcc doesn't complain.
84edc2eff   Arnd Bergmann   selftest/fpu: avo...
117
  FPU_CFLAGS += -mhard-float
4185b3b92   Petteri Aimonen   selftests/fpu: Ad...
118
119
120
121
122
  FPU_CFLAGS += $(call cc-option,-msse -mpreferred-stack-boundary=3,-mpreferred-stack-boundary=4)
  endif
  
  obj-$(CONFIG_TEST_FPU) += test_fpu.o
  CFLAGS_test_fpu.o += $(FPU_CFLAGS)
a2818ee4d   Joe Lawrence   selftests/livepat...
123
  obj-$(CONFIG_TEST_LIVEPATCH) += livepatch/
84bc809ee   Brendan Higgins   lib: enable build...
124
  obj-$(CONFIG_KUNIT) += kunit/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
125
126
127
128
  ifeq ($(CONFIG_DEBUG_KOBJECT),y)
  CFLAGS_kobject.o += -DDEBUG
  CFLAGS_kobject_uevent.o += -DDEBUG
  endif
50ab9a692   Rasmus Villemoes   kbuild: include c...
129
130
  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...
131
  obj-y += math/ crypto/
2c64e9cb0   Andy Shevchenko   lib: Move mathema...
132

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

f361c863b   John Garry   logic_pio: Build ...
139
  lib-y += logic_pio.o
031e36018   Zhichang Yuan   lib: Add generic ...
140

702a28b1e   Randy Dunlap   [PATCH] lib funct...
141
  obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
d61931d89   Borislav Petkov   x86: Add optimize...
142

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

a5cfc1ec5   Akinobu Mita   [PATCH] bit rever...
150
  obj-$(CONFIG_BITREVERSE) += bitrev.o
d2218d4e4   Matti Vaittinen   lib: add linear r...
151
  obj-$(CONFIG_LINEAR_RANGES) += linear_ranges.o
554aae350   Vladimir Oltean   lib: Add support ...
152
  obj-$(CONFIG_PACKING)	+= packing.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
153
  obj-$(CONFIG_CRC_CCITT)	+= crc-ccitt.o
7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
154
  obj-$(CONFIG_CRC16)	+= crc16.o
f11f594ed   Martin K. Petersen   [SCSI] lib: Add s...
155
  obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
3e7cbae7c   Ivo van Doorn   CRC ITU-T V.41
156
  obj-$(CONFIG_CRC_ITU_T)	+= crc-itu-t.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
157
  obj-$(CONFIG_CRC32)	+= crc32.o
feba04fd2   Coly Li   lib: add crc64 ca...
158
  obj-$(CONFIG_CRC64)     += crc64.o
5fb7f8740   Geert Uytterhoeven   lib: add module s...
159
  obj-$(CONFIG_CRC32_SELFTEST)	+= crc32test.o
0cbaa4484   Jeremy Kerr   lib: Add crc4 module
160
  obj-$(CONFIG_CRC4)	+= crc4.o
ad241528c   Jan Nikitenko   CRC7 support
161
  obj-$(CONFIG_CRC7)	+= crc7.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
162
  obj-$(CONFIG_LIBCRC32C)	+= libcrc32c.o
7150962d6   Arend van Spriel   lib: crc8: add ne...
163
  obj-$(CONFIG_CRC8)	+= crc8.o
5d2405227   Nick Terrell   lib: Add xxhash m...
164
  obj-$(CONFIG_XXHASH)	+= xxhash.o
f14f75b81   Jes Sorensen   [PATCH] ia64 unca...
165
  obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
166

2da572c95   Dan Streetman   lib: add software...
167
168
  obj-$(CONFIG_842_COMPRESS) += 842/
  obj-$(CONFIG_842_DECOMPRESS) += 842/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
169
170
  obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
  obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
aa5b395b6   Mikhail Zaslonko   lib/zlib: add s39...
171
  obj-$(CONFIG_ZLIB_DFLTCC) += zlib_dfltcc/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
172
  obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
437aa565e   Ivan Djelic   lib: add shared B...
173
  obj-$(CONFIG_BCH) += bch.o
64c70b1cf   Richard Purdie   Add LZO1X algorit...
174
175
  obj-$(CONFIG_LZO_COMPRESS) += lzo/
  obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
c72ac7a1a   Chanho Min   lib: add lz4 comp...
176
177
  obj-$(CONFIG_LZ4_COMPRESS) += lz4/
  obj-$(CONFIG_LZ4HC_COMPRESS) += lz4/
e76e1fdfa   Kyungsik Lee   lib: add support ...
178
  obj-$(CONFIG_LZ4_DECOMPRESS) += lz4/
73f3d1b48   Nick Terrell   lib: Add zstd mod...
179
180
  obj-$(CONFIG_ZSTD_COMPRESS) += zstd/
  obj-$(CONFIG_ZSTD_DECOMPRESS) += zstd/
24fa0402a   Lasse Collin   decompressors: ad...
181
  obj-$(CONFIG_XZ_DEC) += xz/
f5e70d0fe   David Woodhouse   md: Factor out RA...
182
  obj-$(CONFIG_RAID6_PQ) += raid6/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
183

889c92d21   H. Peter Anvin   bzip2/lzma: centr...
184
185
186
  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...
187
  lib-$(CONFIG_DECOMPRESS_XZ) += decompress_unxz.o
cacb246f8   Albin Tonnerre   Add LZO compressi...
188
  lib-$(CONFIG_DECOMPRESS_LZO) += decompress_unlzo.o
e76e1fdfa   Kyungsik Lee   lib: add support ...
189
  lib-$(CONFIG_DECOMPRESS_LZ4) += decompress_unlz4.o
4963bb2b8   Nick Terrell   lib: Add zstd sup...
190
  lib-$(CONFIG_DECOMPRESS_ZSTD) += decompress_unzstd.o
c8531ab34   H. Peter Anvin   bzip2/lzma: prope...
191

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

0d3fdb157   Christoph Hellwig   iommu-common: mov...
200
  obj-$(CONFIG_IOMMU_HELPER) += iommu-helper.o
6ff1cb355   Akinobu Mita   [PATCH] fault-inj...
201
  obj-$(CONFIG_FAULT_INJECTION) += fault-inject.o
2c739ced5   Albert van der Linde   lib, include/linu...
202
  obj-$(CONFIG_FAULT_INJECTION_USERCOPY) += fault-inject-usercopy.o
8d4382881   Akinobu Mita   fault-injection: ...
203
  obj-$(CONFIG_NOTIFIER_ERROR_INJECTION) += notifier-error-inject.o
048b9c354   Akinobu Mita   PM: PM notifier e...
204
  obj-$(CONFIG_PM_NOTIFIER_ERROR_INJECT) += pm-notifier-error-inject.o
02fff96a7   Nikolay Aleksandrov   net: add support ...
205
  obj-$(CONFIG_NETDEV_NOTIFIER_ERROR_INJECT) += netdev-notifier-error-inject.o
9579f5bd3   Akinobu Mita   memory: memory no...
206
  obj-$(CONFIG_MEMORY_NOTIFIER_ERROR_INJECT) += memory-notifier-error-inject.o
d526e85f6   Benjamin Herrenschmidt   powerpc+of: Renam...
207
208
  obj-$(CONFIG_OF_RECONFIG_NOTIFIER_ERROR_INJECT) += \
  	of-reconfig-notifier-error-inject.o
540adea38   Masami Hiramatsu   error-injection: ...
209
  obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
210

7664c5a1d   Jeremy Fitzhardinge   [PATCH] Generic B...
211
  lib-$(CONFIG_GENERIC_BUG) += bug.o
bbc698636   Roland McGrath   task_current_syscall
212
  obj-$(CONFIG_HAVE_ARCH_TRACEHOOK) += syscall.o
ceabef7dd   Orson Zhai   dynamic_debug: ad...
213
  obj-$(CONFIG_DYNAMIC_DEBUG_CORE) += dynamic_debug.o
57f5677e5   Rasmus Villemoes   printf: add suppo...
214
  obj-$(CONFIG_SYMBOLIC_ERRNAME) += errname.o
346e15beb   Jason Baron   driver core: basi...
215

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

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

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

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

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

4cd5773a2   Andy Shevchenko   net: core: move m...
236
  obj-$(CONFIG_GENERIC_NET_UTILS) += net_utils.o
f8bcbe62a   Robert Jarzmik   lib: scatterlist:...
237
  obj-$(CONFIG_SG_SPLIT) += sg_split.o
9b1d6c895   Ming Lin   lib: scatterlist:...
238
  obj-$(CONFIG_SG_POOL) += sg_pool.o
33dd70752   Dan Williams   lib: Uplevel the ...
239
  obj-$(CONFIG_MEMREGION) += memregion.o
4ccf4beab   Wolfram Sang   lib: add support ...
240
  obj-$(CONFIG_STMP_DEVICE) += stmp_device.o
511cbce2f   Christoph Hellwig   irq_poll: make bl...
241
  obj-$(CONFIG_IRQ_POLL) += irq_poll.o
4ccf4beab   Wolfram Sang   lib: add support ...
242

7b65942fb   Alexander Potapenko   lib/stackdepot.c:...
243
244
245
246
  # stackdepot.c should not be instrumented or call instrumented functions.
  # Prevent the compiler from calling builtins like memcmp() or bcmp() from this
  # file.
  CFLAGS_stackdepot.o += -fno-builtin
cd11016e5   Alexander Potapenko   mm, kasan: stackd...
247
248
  obj-$(CONFIG_STACKDEPOT) += stackdepot.o
  KASAN_SANITIZE_stackdepot.o := n
65deb8af7   Alexander Potapenko   kcov: do not inst...
249
  KCOV_INSTRUMENT_stackdepot.o := n
cd11016e5   Alexander Potapenko   mm, kasan: stackd...
250

adaf56878   Mark Salter   lib: add fdt_empt...
251
  libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
c273a2bd8   AKASHI Takahiro   libfdt: include f...
252
  	       fdt_empty_tree.o fdt_addresses.o
ab2538398   David Daney   of/lib: Allow scr...
253
  $(foreach file, $(libfdt_files), \
13d3bc715   Masahiro Yamada   libfdt: prefix he...
254
  	$(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt))
ab2538398   David Daney   of/lib: Allow scr...
255
  lib-$(CONFIG_LIBFDT) += $(libfdt_files)
26445f98e   Masami Hiramatsu   bootconfig: Remov...
256
  lib-$(CONFIG_BOOT_CONFIG) += bootconfig.o
76db5a27a   Masami Hiramatsu   bootconfig: Add E...
257

910a742d4   Michel Lespinasse   rbtree: performan...
258
  obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o
fff3fd8a1   Michel Lespinasse   rbtree: add prio ...
259
  obj-$(CONFIG_INTERVAL_TREE_TEST) += interval_tree_test.o
623fd8072   Greg Thelen   percpu: add test ...
260
  obj-$(CONFIG_PERCPU_TEST) += percpu_test.o
42d5ec27f   David Howells   X.509: Add an ASN...
261
  obj-$(CONFIG_ASN1) += asn1_decoder.o
ee89bd6bc   Geert Uytterhoeven   lib: Move fonts f...
262
  obj-$(CONFIG_FONT_SUPPORT) += fonts/
5f2fb52fa   Masahiro Yamada   kbuild: rename ho...
263
264
  hostprogs	:= gen_crc32table
  hostprogs	+= gen_crc64table
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
265
  clean-files	:= crc32table.h
feba04fd2   Coly Li   lib: add crc64 ca...
266
  clean-files	+= crc64table.h
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
267
268
269
270
271
272
273
274
  
  $(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 ...
275

feba04fd2   Coly Li   lib: add crc64 ca...
276
277
278
279
280
281
282
  $(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 ...
283
284
285
286
  #
  # 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...
287
  $(obj)/oid_registry.o: $(obj)/oid_registry_data.c
a77ad6ea0   David Howells   X.509: Implement ...
288
289
290
291
292
293
294
295
296
  
  $(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...
297
298
  
  obj-$(CONFIG_UCS2_STRING) += ucs2_string.o
0887a7ebc   Kees Cook   ubsan: add trap i...
299
  ifneq ($(CONFIG_UBSAN_TRAP),y)
c6d308534   Andrey Ryabinin   UBSAN: run-time u...
300
  obj-$(CONFIG_UBSAN) += ubsan.o
0887a7ebc   Kees Cook   ubsan: add trap i...
301
  endif
c6d308534   Andrey Ryabinin   UBSAN: run-time u...
302
303
  
  UBSAN_SANITIZE_ubsan.o := n
af700eaed   Arnd Bergmann   ubsan: build ubsa...
304
  KASAN_SANITIZE_ubsan.o := n
d47715f50   Marco Elver   kcsan, ubsan: Mak...
305
  KCSAN_SANITIZE_ubsan.o := n
893ab0043   Masahiro Yamada   kbuild: remove cc...
306
  CFLAGS_ubsan.o := -fno-stack-protector $(DISABLE_STACKLEAK_PLUGIN)
88459642c   Omar Sandoval   blk-mq: abstract ...
307
308
  
  obj-$(CONFIG_SBITMAP) += sbitmap.o
44091d29f   Jiri Pirko   lib: Introduce pr...
309
310
  
  obj-$(CONFIG_PARMAN) += parman.o
b35cd9884   Palmer Dabbelt   lib: Add shared c...
311
312
  
  # GCC library routines
e3d598056   Matt Redfearn   lib: Rename compi...
313
314
315
316
317
318
  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...
319
  obj-$(CONFIG_OBJAGG) += objagg.o
ea2dd7c08   David Gow   lib/list-test: ad...
320

b8265621f   Jacob Keller   Add pldmfw librar...
321
322
  # pldmfw library
  obj-$(CONFIG_PLDMFW) += pldmfw/
ea2dd7c08   David Gow   lib/list-test: ad...
323
  # KUnit tests
d2585f516   Vitor Massaru Iha   lib: kunit: add b...
324
  obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
ea2dd7c08   David Gow   lib/list-test: ad...
325
  obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
33d599f05   Matti Vaittinen   lib/test_linear_r...
326
  obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
6d511020e   Rikard Falkeborn   lib/test_bits.c: ...
327
  obj-$(CONFIG_BITS_TEST) += test_bits.o