 |
libfusd-1.10-10-Makefile.patch |
|
diff -Nru fusd-kor-1.10-10.orig/kfusd/Makefile fusd-kor-1.10-10/kfusd/Makefile
--- fusd-kor-1.10-10.orig/kfusd/Makefile 2005-12-05 11:42:49.000000000 +0100
+++ fusd-kor-1.10-10/kfusd/Makefile 2005-12-05 11:49:27.000000000 +0100
@@ -5,7 +5,7 @@
ifneq ($(KERNELRELEASE),)
obj-m := kfusd.o
else
-KDIR ?= /lib/modules/$(shell uname -r)/build
+KDIR ?= /lib/modules/$(KVER)/build
PWD := $(shell pwd)
default:
@@ -15,8 +15,8 @@
install:
echo EXTRA_CFLAGS=-I$(PWD)/../include
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) EXTRA_CFLAGS=-I$(PWD)/../include modules
- mkdir -p /lib/modules/$(shell uname -r)/misc
- cp kfusd.ko /lib/modules/$(shell uname -r)/misc
+ mkdir -p $(DESTDIR)/lib/modules/$(KVER)/misc
+ cp kfusd.ko $(DESTDIR)/lib/modules/$(KVER)/misc
clean:
rm kfusd.ko kfusd.o kfusd.mod.o kfusd.mod.c built-in.o
diff -Nru fusd-kor-1.10-10.orig/Makefile fusd-kor-1.10-10/Makefile
--- fusd-kor-1.10-10.orig/Makefile 2005-12-05 11:42:49.000000000 +0100
+++ fusd-kor-1.10-10/Makefile 2005-12-05 11:49:48.000000000 +0100
@@ -4,14 +4,14 @@
#
# Change this to reflect where your kernel sources are
-KERNEL_HOME := /lib/modules/$(shell uname -r)/build
+KVER := $(shell uname -r)
+KERNEL_HOME := /lib/modules/$(KVER)/build
##################################################################
TARGETS := \
libfusd.a \
- kfusd.ko \
regdevice \
opentest \
simpleopen \
@@ -46,7 +46,7 @@
####################################################
-KDIR := /lib/modules/$(shell uname -r)/build
+KDIR := /lib/modules/$(KVER)/build
$(OBJDIR)/kfusd.ko: $(MODPATH)/kfusd/kfusd.c fusd_msg.h kfusd.h
$(MAKE) -C $(MODPATH)/kfusd
@@ -64,6 +64,6 @@
$(CC) $(CCFLAGS) $< -o $@ -lfusd
install:
- cp $(OBJDIR)/libfusd.a /usr/local/lib
- cp include/*.h /usr/local/include
- $(MAKE) -C $(MODPATH)/kfusd install
+ mkdir -p $(DESTDIR)/usr/lib $(DESTDIR)/usr/include
+ cp $(OBJDIR)/libfusd.a $(DESTDIR)/usr/lib
+ cp include/*.h $(DESTDIR)/usr/include
|
|
|