summaryrefslogtreecommitdiff
path: root/linux/lib
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-01-03 17:16:42 +0000
committerMichael Hunold <devnull@localhost>2003-01-03 17:16:42 +0000
commitbd8c6ee428efa388f2ef1d6c1a42dde0c21bbb51 (patch)
tree8e1e4d9aa181233db4686576913b87402c64fc84 /linux/lib
parent76eafd9ffccb43beb97cdcf2e688c98c3e92638d (diff)
downloadmediapointer-dvb-s2-bd8c6ee428efa388f2ef1d6c1a42dde0c21bbb51.tar.gz
mediapointer-dvb-s2-bd8c6ee428efa388f2ef1d6c1a42dde0c21bbb51.tar.bz2
Build fixes for 2.5.x, thank Gregoire Favre <greg@ulima.unil.ch>
for pointing out these flaws regularly... Changes in detail: - added comapt.[ch] again, but removed the *_usercopy() crap. We define dvb_usercopy() until generic_usercopy() is available. If you have an external source tree, please check what's actually needed to get your application to compile and report back to me or on the mailing list. Thanks! (Necessary changes to the Makefile, and various dvb files, removed some unnecessary #include <linux/videodev>) - added linux/lib/Makefile. We need to add an include to drivers/media/dvb/dvb-core/Makefile.lib, so that crc32.o gets build automagically (Adjusted the "makelinks" script as well)
Diffstat (limited to 'linux/lib')
-rw-r--r--linux/lib/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/linux/lib/Makefile b/linux/lib/Makefile
new file mode 100644
index 000000000..5071969b0
--- /dev/null
+++ b/linux/lib/Makefile
@@ -0,0 +1,42 @@
+#
+# Makefile for some libs needed in the kernel.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+
+L_TARGET := lib.a
+
+export-objs := cmdline.o dec_and_lock.o rwsem-spinlock.o rwsem.o \
+ crc32.o rbtree.o radix-tree.o kobject.o
+
+obj-y := errno.o ctype.o string.o vsprintf.o brlock.o cmdline.o \
+ bust_spinlocks.o rbtree.o radix-tree.o dump_stack.o \
+ kobject.o
+
+obj-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o
+obj-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o
+
+ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
+ obj-y += dec_and_lock.o
+endif
+
+obj-$(CONFIG_CRC32) += crc32.o
+
+obj-$(CONFIG_ZLIB_INFLATE) += zlib_inflate/
+obj-$(CONFIG_ZLIB_DEFLATE) += zlib_deflate/
+
+include $(TOPDIR)/drivers/net/Makefile.lib
+include $(TOPDIR)/drivers/usb/class/Makefile.lib
+include $(TOPDIR)/fs/Makefile.lib
+include $(TOPDIR)/net/bluetooth/bnep/Makefile.lib
+include $(TOPDIR)/drivers/media/dvb/dvb-core/Makefile.lib
+
+host-progs := gen_crc32table
+clean-files := crc32table.h
+
+$(obj)/crc32.o: $(obj)/crc32table.h
+
+$(obj)/crc32table.h: $(obj)/gen_crc32table
+ ./$< > $@