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.

48 lines
1.7 KiB

# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../lazyfs/install.patch
# Copyright (C) 2004 - 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.
# --- T2-COPYRIGHT-NOTE-END ---
--- ./Makefile.in.orig 2005-04-24 22:51:22.000000000 +0200
+++ ./Makefile.in 2005-04-24 22:54:40.000000000 +0200
@@ -13,7 +13,7 @@
VPATH = @srcdir@
ROOT_PREFIX = @ROOT_PREFIX@
KERNEL_VERSION = @KERNEL_VERSION@
-MODULEDIR = $(ROOT_PREFIX)/lib/modules/${KERNEL_VERSION}/kernel/fs/lazyfs
+MODULEDIR = $(DESTDIR)/lib/modules/${KERNEL_VERSION}/kernel/fs/lazyfs
ifeq ($(KERNEL_TYPE), Linux_2_6)
KOBJECT = ko
@@ -36,19 +36,9 @@
MODFLAGS := -DMODULE -D__KERNEL__
install: lazyfs@COMMA_VERSION@.$(KOBJECT)
+ @echo Installing to ${MODULEDIR}
mkdir -p ${MODULEDIR}
- [ -n "${ROOT_PREFIX}" ] || ${MAKE} real-install
-
-real-install:
- @echo Installing to ${ROOT_PREFIX}/lib/modules/${KERNEL_VERSION}
- @echo "(current kernel uses $(ROOT_PREFIX)/lib/modules/`uname -r`)"
cp lazyfs@COMMA_VERSION@.$(KOBJECT) ${MODULEDIR}/
- /sbin/depmod -a
- @echo
- @echo '*** Testing kernel module ***'
- @echo
- @/sbin/modprobe lazyfs@COMMA_VERSION@ || echo "FAILED: Try 'dmesg' for help"
- @echo '(try "python tests/check.py" for more checking)'
uninstall:
rm -f ${MODULEDIR}/lazyfs@COMMA_VERSION@.${KOBJECT}