You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.9 KiB
54 lines
1.9 KiB
18 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../dfb-linux-fusion/kernel-version.patch
|
||
|
# Copyright (C) 2006 The OpenSDE Project
|
||
|
# Copyright (C) 2006 The T2 SDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This patch file is dual-licensed. It is available under the license the
|
||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||
|
# of the GNU General Public License as published by the Free Software
|
||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||
|
# version.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
--- linux-fusion-3.0/Makefile.orig 2006-04-30 13:33:39.000000000 +0200
|
||
|
+++ linux-fusion-3.0/Makefile 2006-05-03 09:19:50.000000000 +0200
|
||
|
@@ -1,7 +1,8 @@
|
||
|
-KERNEL_MODLIB = /lib/modules/$(shell uname -r)
|
||
|
+LINUXVERSION ?= $(shell uname -r)
|
||
|
+KERNEL_MODLIB = /lib/modules/$(LINUXVERSION)
|
||
|
KERNEL_BUILD = $(KERNEL_MODLIB)/build
|
||
|
KERNEL_SOURCE = $(KERNEL_MODLIB)/source
|
||
|
-KERNEL_PATCHLEVEL = $(shell uname -r | cut -d . -f 2)
|
||
|
+KERNEL_PATCHLEVEL = $(shell echo $(LINUXVERSION) | cut -d . -f 2)
|
||
|
#KERNEL_PATCHLEVEL = $(shell grep 'PATCHLEVEL =' $(KERNEL_BUILD)/Makefile | cut -d ' ' -f 3)
|
||
|
|
||
|
SUB = linux/drivers/char/fusion
|
||
|
@@ -24,9 +25,6 @@
|
||
|
SUBDIRS=`pwd`/$(SUB) modules
|
||
|
|
||
|
-install: all
|
||
|
- install -d $(DESTDIR)/usr/include/linux
|
||
|
- install -m 644 linux/include/linux/fusion.h $(DESTDIR)/usr/include/linux
|
||
|
-
|
||
|
+install:
|
||
|
install -d $(DESTDIR)$(KERNEL_MODLIB)/drivers/char/fusion
|
||
|
|
||
|
ifeq ($(KERNEL_PATCHLEVEL),4)
|
||
|
@@ -36,11 +34,6 @@
|
||
|
install -m 644 $(SUB)/fusion.ko $(DESTDIR)$(KERNEL_MODLIB)/drivers/char/fusion
|
||
|
rm -f $(DESTDIR)$(KERNEL_MODLIB)/fusion.ko
|
||
|
endif
|
||
|
-ifneq ($(strip $(DESTDIR)),)
|
||
|
- /sbin/depmod -ae -b $(DESTDIR)
|
||
|
-else
|
||
|
- /sbin/depmod -ae
|
||
|
-endif
|
||
|
|
||
|
|
||
|
|