]> git.pld-linux.org Git - packages/bttv.git/blame - bttv-Makefile.patch
- Upadetd for recent bttv (0.7.81 for sure, it works with some older
[packages/bttv.git] / bttv-Makefile.patch
CommitLineData
8307b843 1diff -urN bttv-0.7.78.orig/driver/Makefile bttv-0.7.78/driver/Makefile
2--- bttv-0.7.78.orig/driver/Makefile Mon Sep 10 21:06:48 2001
3+++ bttv-0.7.78/driver/Makefile Mon Sep 10 21:07:08 2001
ec4e1abc 4@@ -3,8 +3,8 @@
d033880b 5
6 # where the kernel sources are located
ec4e1abc 7 RUNNING := /lib/modules/$(shell uname -r)/build
d033880b 8-KERNEL_DIR := $(shell if test -d $(RUNNING); then echo $(RUNNING); else echo /usr/src/linux; fi)
9-#KERNEL_DIR := /usr/src/linux
d033880b 10+#KERNEL_DIR := $(shell if test -d $(RUNNING); then echo $(RUNNING); else echo /usr/src/linux; fi)
11+KERNEL_DIR := /usr/src/linux
12
13 # kernel version
8307b843 14 CURRENT := $(shell ./uts-release $(KERNEL_DIR))
d033880b 15@@ -17,9 +17,7 @@
16 KCOMPAT := kcompat24.o
17 endif
18
19-MODULE_DIR := $(shell test -d "/lib/modules/$(CURRENT)/kernel" && \
20- echo "/lib/modules/$(CURRENT)/kernel/drivers/media/video" ||\
21- echo "/lib/modules/$(CURRENT)/misc")
22+MODULE_DIR := $(DESTDIR)/lib/modules/$(CURRENT)/misc
23
8307b843 24 EXTRA_CFLAGS=-g
25
ec4e1abc 26@@ -59,7 +57,7 @@
d033880b 27
28 install:
8307b843 29 strip --strip-debug *.o
ec4e1abc 30- su -c "set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR); depmod -a"
8307b843 31+ set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR)
ec4e1abc 32
d033880b 33 clean:
34 -rm -f *.o .*.o.flags *~
This page took 0.069379 seconds and 4 git commands to generate.