From: Russ Allbery Date: Sat, 25 Sep 2010 00:11:52 +0000 (-0700) Subject: Use /lib/modules/`uname -r`/source as the default kernel source X-Git-Tag: debian/1.5.77-2~4 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=108240bafc075bbb3e97a314e98854b91113d385;p=packages%2Fo%2Fopenafs.git Use /lib/modules/`uname -r`/source as the default kernel source * In openafs-modules-source, use /lib/modules/`uname -r`/source as the default path to the kernel headers rather than /usr/src/linux. Current kernel header packages will create an appropriate symlink there. This default is only used when neither module-assistant nor kernel-package are used. --- diff --git a/debian/changelog b/debian/changelog index 37a0d3f57..a9e745dec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,11 @@ openafs (1.5.77-2) UNRELEASED; urgency=low - [e36b4e00] Update bos create man page for new demand-attach * Add backslashes to the DKMS command, which will be required once DKMS uses proper shell quoting. + * In openafs-modules-source, use /lib/modules/`uname -r`/source as the + default path to the kernel headers rather than /usr/src/linux. + Current kernel header packages will create an appropriate symlink + there. This default is only used when neither module-assistant nor + kernel-package are used. -- Russ Allbery Fri, 24 Sep 2010 17:05:35 -0700 diff --git a/debian/module/rules b/debian/module/rules index 684b6ba53..c03033f49 100755 --- a/debian/module/rules +++ b/debian/module/rules @@ -12,7 +12,7 @@ endif # Find kernel build information. ifndef KSRC - KSRC = /usr/src/linux + KSRC := /lib/modules/$(shell uname -r)/source endif ifndef KPKG_DEST_DIR KPKG_DEST_DIR = ..