Blame view

lib/Makefile 3.26 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 \
d28292246   Florian Fainelli   lib: add lib/gcd.c
21
  	 string_helpers.o gcd.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
702a28b1e   Randy Dunlap   [PATCH] lib funct...
38
  obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
39
  obj-$(CONFIG_LOCK_KERNEL) += kernel_lock.o
39c715b71   Ingo Molnar   [PATCH] smp_proce...
40
  obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o
199a9afc3   Dave Jones   [PATCH] Debug var...
41
  obj-$(CONFIG_DEBUG_LIST) += list_debug.o
3ac7fe5a4   Thomas Gleixner   infrastructure to...
42
  obj-$(CONFIG_DEBUG_OBJECTS) += debugobjects.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
43

7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
44
  ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
45
46
    lib-y += dec_and_lock.o
  endif
a5cfc1ec5   Akinobu Mita   [PATCH] bit rever...
47
  obj-$(CONFIG_BITREVERSE) += bitrev.o
8759ef32d   Oskar Schirmer   lib: isolate rati...
48
  obj-$(CONFIG_RATIONAL)	+= rational.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
49
  obj-$(CONFIG_CRC_CCITT)	+= crc-ccitt.o
7657ec1fc   Evgeniy Polyakov   [PATCH] lib/crc16...
50
  obj-$(CONFIG_CRC16)	+= crc16.o
f11f594ed   Martin K. Petersen   [SCSI] lib: Add s...
51
  obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o
3e7cbae7c   Ivo van Doorn   CRC ITU-T V.41
52
  obj-$(CONFIG_CRC_ITU_T)	+= crc-itu-t.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
53
  obj-$(CONFIG_CRC32)	+= crc32.o
ad241528c   Jan Nikitenko   CRC7 support
54
  obj-$(CONFIG_CRC7)	+= crc7.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
55
  obj-$(CONFIG_LIBCRC32C)	+= libcrc32c.o
f14f75b81   Jes Sorensen   [PATCH] ia64 unca...
56
  obj-$(CONFIG_GENERIC_ALLOCATOR) += genalloc.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
57
58
59
60
  
  obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
  obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
  obj-$(CONFIG_REED_SOLOMON) += reed_solomon/
64c70b1cf   Richard Purdie   Add LZO1X algorit...
61
62
  obj-$(CONFIG_LZO_COMPRESS) += lzo/
  obj-$(CONFIG_LZO_DECOMPRESS) += lzo/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
63

889c92d21   H. Peter Anvin   bzip2/lzma: centr...
64
65
66
  lib-$(CONFIG_DECOMPRESS_GZIP) += decompress_inflate.o
  lib-$(CONFIG_DECOMPRESS_BZIP2) += decompress_bunzip2.o
  lib-$(CONFIG_DECOMPRESS_LZMA) += decompress_unlzma.o
c8531ab34   H. Peter Anvin   bzip2/lzma: prope...
67

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

6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
75
  obj-$(CONFIG_SWIOTLB) += swiotlb.o
0291df8cc   FUJITA Tomonori   iommu sg: add IOM...
76
  obj-$(CONFIG_IOMMU_HELPER) += iommu-helper.o
6ff1cb355   Akinobu Mita   [PATCH] fault-inj...
77
  obj-$(CONFIG_FAULT_INJECTION) += fault-inject.o
6c654b5fd   John W. Linville   [PATCH] swiotlb: ...
78

7664c5a1d   Jeremy Fitzhardinge   [PATCH] Generic B...
79
  lib-$(CONFIG_GENERIC_BUG) += bug.o
d9b2b2a27   David S. Miller   [LIB]: Make Power...
80
  obj-$(CONFIG_HAVE_LMB) += lmb.o
bbc698636   Roland McGrath   task_current_syscall
81
  obj-$(CONFIG_HAVE_ARCH_TRACEHOOK) += syscall.o
e9d376f0f   Jason Baron   dynamic debug: co...
82
  obj-$(CONFIG_DYNAMIC_DEBUG) += dynamic_debug.o
346e15beb   Jason Baron   driver core: basi...
83

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

f2f45e5f3   Joerg Roedel   dma-debug: add he...
86
  obj-$(CONFIG_DMA_API_DEBUG) += dma-debug.o
26a28fa4f   Arnd Bergmann   add generic lib/c...
87
  obj-$(CONFIG_GENERIC_CSUM) += checksum.o
09d4e0edd   Paul Mackerras   lib: Provide gene...
88
  obj-$(CONFIG_GENERIC_ATOMIC64) += atomic64.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
89
90
91
92
93
94
95
96
97
98
  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)