Blame view

lib/Makefile 3.75 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
  #
  # Makefile for some libs needed in the kernel.
  #
606576ce8   Steven Rostedt   ftrace: rename FT...
4
  ifdef CONFIG_FUNCTION_TRACER
2464a609d   Ingo Molnar   ftrace: do not tr...
5
6
7
  ORIG_CFLAGS := $(KBUILD_CFLAGS)
  KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
  endif
7a5c5d573   Alexey Dobriyan   Move kasprintf.o ...
8
  lib-y := ctype.o string.o vsprintf.o cmdline.o \
1f5a24794   John Stultz   timers: Rename ti...
9
  	 rbtree.o radix-tree.o dump_stack.o timerqueue.o\
5a6dca7c1   Paul Mundt   lib: move bitmap....
10
  	 idr.o int_sqrt.o extable.o prio_tree.o \
bc0b96b54   David S. Miller   crypto: Move md5_...
11
  	 sha1.o md5.o irq_regs.o reciprocal_div.o argv_split.o \
ceacc2c1c   Peter Zijlstra   sched: make plist...
12
  	 proportions.o prio_heap.o ratelimit.o show_mem.o \
bd823821e   Geert Uytterhoeven   bitops: Move find...
13
  	 is_single_threaded.o plist.o decompress.o
9a19fea43   Patrick Mochel   [PATCH] Add initi...
14

74588d8ba   Haavard Skinnemoen   [PATCH] Generic i...
15
  lib-$(CONFIG_MMU) += ioremap.o
ccb46000f   Andrew Morton   [PATCH] cpumask: ...
16
  lib-$(CONFIG_SMP) += cpumask.o
5c5daf657   Kay Sievers   Driver core: excl...
17
  lib-y	+= kobject.o kref.o klist.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
18

d3de851a4   David Brownell   rtc: BCD codeshrink
19
  obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \
3c9f3681d   James Bottomley   [SCSI] lib: add g...
20
  	 bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \
1a94dc35b   Tim Abbott   lib: Add generic ...
21
  	 string_helpers.o gcd.o lcm.o list_sort.o uuid.o flex_array.o \
1230db8e1   Huang Ying   llist: Make some ...
22
  	 bsearch.o find_last_bit.o find_next_bit.o llist.o
33ee3b2e2   Alexey Dobriyan   kstrto*: converti...
23
24
  obj-y += kstrtox.o
  obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
25
26
27
28
29
  
  ifeq ($(CONFIG_DEBUG_KOBJECT),y)
  CFLAGS_kobject.o += -DDEBUG
  CFLAGS_kobject_uevent.o += -DDEBUG
  endif
5c5daf657   Kay Sievers   Driver core: excl...
30
  lib-$(CONFIG_HOTPLUG) += kobject_uevent.o
5ea817699   Al Viro   [PATCH] sort the ...
31
  obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
928923c76   Geert Uytterhoeven   Introduce CONFIG_...
32
33
  obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
  obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
cae2ed9aa   Ingo Molnar   [PATCH] lockdep: ...
34
  obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
35
  obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
36
37
  lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
  lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
d61931d89   Borislav Petkov   x86: Add optimize...
38
39
  
  CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS))
702a28b1e   Randy Dunlap   [PATCH] lib funct...
40
  obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
d61931d89   Borislav Petkov   x86: Add optimize...
41

5db53f3e8   Joern Engel   [LogFS] add new f...
42
  obj-$(CONFIG_BTREE) += btree.o
39c715b71   Ingo Molnar   [PATCH] smp_proce...
43
  obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o
199a9afc3   Dave Jones   [PATCH] Debug var...
44
  obj-$(CONFIG_DEBUG_LIST) += list_debug.o
3ac7fe5a4   Thomas Gleixner   infrastructure to...
45
  obj-$(CONFIG_DEBUG_OBJECTS) += debugobjects.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
46

7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
47
  ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
48
49
    lib-y += dec_and_lock.o
  endif
a5cfc1ec5   Akinobu Mita   [PATCH] bit rever...
50
  obj-$(CONFIG_BITREVERSE) += bitrev.o
8759ef32d   Oskar Schirmer   lib: isolate rati...
51
  obj-$(CONFIG_RATIONAL)	+= rational.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
52
  obj-$(CONFIG_CRC_CCITT)	+= crc-ccitt.o
7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
53
  obj-$(CONFIG_CRC16)	+= crc16.o
f11f594ed   Martin K. Petersen   [SCSI] lib: Add s...
54
  obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
3e7cbae7c   Ivo van Doorn   CRC ITU-T V.41
55
  obj-$(CONFIG_CRC_ITU_T)	+= crc-itu-t.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
56
  obj-$(CONFIG_CRC32)	+= crc32.o
ad241528c   Jan Nikitenko   CRC7 support
57
  obj-$(CONFIG_CRC7)	+= crc7.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
58
  obj-$(CONFIG_LIBCRC32C)	+= libcrc32c.o
7150962d6   Arend van Spriel   lib: crc8: add ne...
59
  obj-$(CONFIG_CRC8)	+= crc8.o
f14f75b81   Jes Sorensen   [PATCH] ia64 unca...
60
  obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
61
62
63
64
  
  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...
65
  obj-$(CONFIG_BCH) += bch.o
64c70b1cf   Richard Purdie   Add LZO1X algorit...
66
67
  obj-$(CONFIG_LZO_COMPRESS) += lzo/
  obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
24fa0402a   Lasse Collin   decompressors: ad...
68
  obj-$(CONFIG_XZ_DEC) += xz/
f5e70d0fe   David Woodhouse   md: Factor out RA...
69
  obj-$(CONFIG_RAID6_PQ) += raid6/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
70

889c92d21   H. Peter Anvin   bzip2/lzma: centr...
71
72
73
  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...
74
  lib-$(CONFIG_DECOMPRESS_XZ) += decompress_unxz.o
cacb246f8   Albin Tonnerre   Add LZO compressi...
75
  lib-$(CONFIG_DECOMPRESS_LZO) += decompress_unlzo.o
c8531ab34   H. Peter Anvin   bzip2/lzma: prope...
76

65df877ab   David S. Miller   [LIB]: textsearch...
77
  obj-$(CONFIG_TEXTSEARCH) += textsearch.o
df3fb93ad   Thomas Graf   [LIB]: Knuth-Morr...
78
  obj-$(CONFIG_TEXTSEARCH_KMP) += ts_kmp.o
8082e4ed0   Pablo Neira Ayuso   [LIB]: Boyer-Moor...
79
  obj-$(CONFIG_TEXTSEARCH_BM) += ts_bm.o
6408f79cc   Thomas Graf   [LIB]: Naive fini...
80
  obj-$(CONFIG_TEXTSEARCH_FSM) += ts_fsm.o
3cbc56402   Ravikiran G Thirumalai   [PATCH] percpu_co...
81
  obj-$(CONFIG_SMP) += percpu_counter.o
e65e1fc2d   Al Viro   [PATCH] syscall c...
82
  obj-$(CONFIG_AUDIT_GENERIC) += audit.o
2de4ff7bd   Thomas Graf   [LIB]: Textsearch...
83

6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
84
  obj-$(CONFIG_SWIOTLB) += swiotlb.o
0291df8cc   FUJITA Tomonori   iommu sg: add IOM...
85
  obj-$(CONFIG_IOMMU_HELPER) += iommu-helper.o
6ff1cb355   Akinobu Mita   [PATCH] fault-inj...
86
  obj-$(CONFIG_FAULT_INJECTION) += fault-inject.o
c9d221f86   Akinobu Mita   fault-injection: ...
87
  obj-$(CONFIG_CPU_NOTIFIER_ERROR_INJECT) += cpu-notifier-error-inject.o
6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
88

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

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

b411b3637   Philipp Reisner   The DRBD driver
95
  obj-$(CONFIG_LRU_CACHE) += lru_cache.o
f2f45e5f3   Joerg Roedel   dma-debug: add he...
96
  obj-$(CONFIG_DMA_API_DEBUG) += dma-debug.o
26a28fa4f   Arnd Bergmann   add generic lib/c...
97
  obj-$(CONFIG_GENERIC_CSUM) += checksum.o
09d4e0edd   Paul Mackerras   lib: Provide gene...
98
  obj-$(CONFIG_GENERIC_ATOMIC64) += atomic64.o
86a893807   Luca Barbieri   lib: Add self-tes...
99
  obj-$(CONFIG_ATOMIC64_SELFTEST) += atomic64_test.o
c5485a7e7   Bruno Randolf   lib: Add generic ...
100
  obj-$(CONFIG_AVERAGE) += average.o
c39649c33   Ben Hutchings   lib: cpu_rmap: CP...
101
  obj-$(CONFIG_CPU_RMAP) += cpu_rmap.o
10f8113ec   Arend van Spriel   lib: cordic: add ...
102
  obj-$(CONFIG_CORDIC) += cordic.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
103
104
105
106
107
108
109
110
111
112
  hostprogs-y	:= gen_crc32table
  clean-files	:= crc32table.h
  
  $(obj)/crc32.o: $(obj)/crc32table.h
  
  quiet_cmd_crc32 = GEN     $@
        cmd_crc32 = $< > $@
  
  $(obj)/crc32table.h: $(obj)/gen_crc32table
  	$(call cmd,crc32)