Blame view

lib/Makefile 3.59 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 \
cefc8be82   Kirill Korotaev   [PATCH] Consolida...
9
  	 rbtree.o radix-tree.o dump_stack.o \
5a6dca7c1   Paul Mundt   lib: move bitmap....
10
  	 idr.o int_sqrt.o extable.o prio_tree.o \
145ca25eb   Peter Zijlstra   lib: floating pro...
11
  	 sha1.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 \
534acc057   Dave Hansen   lib: flexible arr...
13
  	 is_single_threaded.o plist.o decompress.o flex_array.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 \
fab1c2324   Huang Ying   Unified UUID/GUID...
21
  	 string_helpers.o gcd.o lcm.o list_sort.o uuid.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
23
24
25
26
  
  ifeq ($(CONFIG_DEBUG_KOBJECT),y)
  CFLAGS_kobject.o += -DDEBUG
  CFLAGS_kobject_uevent.o += -DDEBUG
  endif
5c5daf657   Kay Sievers   Driver core: excl...
27
  lib-$(CONFIG_HOTPLUG) += kobject_uevent.o
5ea817699   Al Viro   [PATCH] sort the ...
28
  obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
928923c76   Geert Uytterhoeven   Introduce CONFIG_...
29
30
  obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
  obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
cae2ed9aa   Ingo Molnar   [PATCH] lockdep: ...
31
  obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
fb1c8f93d   Ingo Molnar   [PATCH] spinlock ...
32
  obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
33
34
  lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
  lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
77b9bd9c4   Alexander van Heukelum   x86: generic vers...
35
  lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
36
  lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o
a5422a511   Fred Isaman   lib: find_last_bi...
37
  obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.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

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

7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
48
  ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
49
50
    lib-y += dec_and_lock.o
  endif
a5cfc1ec5   Akinobu Mita   [PATCH] bit rever...
51
  obj-$(CONFIG_BITREVERSE) += bitrev.o
8759ef32d   Oskar Schirmer   lib: isolate rati...
52
  obj-$(CONFIG_RATIONAL)	+= rational.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
53
  obj-$(CONFIG_CRC_CCITT)	+= crc-ccitt.o
7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
54
  obj-$(CONFIG_CRC16)	+= crc16.o
f11f594ed   Martin K. Petersen   [SCSI] lib: Add s...
55
  obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
3e7cbae7c   Ivo van Doorn   CRC ITU-T V.41
56
  obj-$(CONFIG_CRC_ITU_T)	+= crc-itu-t.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
57
  obj-$(CONFIG_CRC32)	+= crc32.o
ad241528c   Jan Nikitenko   CRC7 support
58
  obj-$(CONFIG_CRC7)	+= crc7.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
59
  obj-$(CONFIG_LIBCRC32C)	+= libcrc32c.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/
64c70b1cf   Richard Purdie   Add LZO1X algorit...
65
66
  obj-$(CONFIG_LZO_COMPRESS) += lzo/
  obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
f5e70d0fe   David Woodhouse   md: Factor out RA...
67
  obj-$(CONFIG_RAID6_PQ) += raid6/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
68

889c92d21   H. Peter Anvin   bzip2/lzma: centr...
69
70
71
  lib-$(CONFIG_DECOMPRESS_GZIP) += decompress_inflate.o
  lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
  lib-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o
cacb246f8   Albin Tonnerre   Add LZO compressi...
72
  lib-$(CONFIG_DECOMPRESS_LZO) += decompress_unlzo.o
c8531ab34   H. Peter Anvin   bzip2/lzma: prope...
73

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

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

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

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

b411b3637   Philipp Reisner   The DRBD driver
92
  obj-$(CONFIG_LRU_CACHE) += lru_cache.o
f2f45e5f3   Joerg Roedel   dma-debug: add he...
93
  obj-$(CONFIG_DMA_API_DEBUG) += dma-debug.o
26a28fa4f   Arnd Bergmann   add generic lib/c...
94
  obj-$(CONFIG_GENERIC_CSUM) += checksum.o
09d4e0edd   Paul Mackerras   lib: Provide gene...
95
  obj-$(CONFIG_GENERIC_ATOMIC64) += atomic64.o
86a893807   Luca Barbieri   lib: Add self-tes...
96
  obj-$(CONFIG_ATOMIC64_SELFTEST) += atomic64_test.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
97
98
99
100
101
102
103
104
105
106
  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)