]> git.pld-linux.org Git - packages/kernel.git/blob - bttv-makefile.patch
9cdd694a797623b3d0f76ee69304dd85 linux-loop-hvr-2.4.16.0.patch
[packages/kernel.git] / bttv-makefile.patch
1 diff -urN linux/bttv-0.7.87.orig/driver/Makefile bttv-0.7.87/driver/Makefile
2 --- linux/bttv-0.7.87.orig/driver/Makefile      Tue Dec  4 11:08:37 2001
3 +++ linux/bttv-0.7.87/driver/Makefile   Thu Jan 10 17:10:47 2002
4 @@ -3,7 +3,7 @@
5  
6  # where the kernel sources are located
7  RUNNING := /lib/modules/$(shell uname -r)/build
8 -KDIR := $(shell if test -d $(RUNNING); then echo $(RUNNING); else echo /usr/src/linux; fi)
9 +KDIR := ../../../linux
10  
11  # kernel version
12  CURRENT        := $(shell ./uts-release $(KDIR))
13 @@ -16,9 +16,7 @@
14    KCOMPAT := kcompat24.o
15  endif
16  
17 -MODULE_DIR := $(shell test -d "/lib/modules/$(CURRENT)/kernel" && \
18 -       echo "/lib/modules/$(CURRENT)/kernel/drivers/media/video" ||\
19 -       echo "/lib/modules/$(CURRENT)/misc")
20 +MODULE_DIR := ../../../linux-installed/lib/modules/$(CURRENT)/misc
21  
22  EXTRA_CFLAGS=-g -Wmissing-prototypes -Wstrict-prototypes #-DVIDEODAT_HACK
23  
24 @@ -58,7 +56,7 @@
25  
26  install:
27         strip --strip-debug *.o
28 -       su -c "set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR); depmod -a"
29 +       set -x; mkdir -p $(MODULE_DIR); cp -v $(M_OBJS) $(MX_OBJS) $(MODULE_DIR)
30  
31  clean:
32         -rm -f *.o .*.o.flags *~
This page took 0.023819 seconds and 3 git commands to generate.