[Vmware-package-maintainers] Bug#447134: vmware-package: please add option to pass target kernel version to m-a
Tilman Koschnick
til at subnetz.org
Thu Oct 18 09:44:00 UTC 2007
Package: vmware-package
Version: 0.16
Severity: wishlist
Tags: patch
Hi,
please add an option to make-vmpkg to build kernel modules for versions
other than the currently running kernel.
I have attached a patch which adds the new option -K/--kernelver to
achieve that.
Cheers, Til
-------------- next part --------------
=== make-vmpkg
==================================================================
--- make-vmpkg (revision 2)
+++ make-vmpkg (local)
@@ -222,7 +222,7 @@
sh('%s dpkg -i %s/%s' % (rootcmd, pkgdir, deb))
log('building kernel modules')
- sh('%s m-a -f -t -u %s a-b %s' % (rootcmd, pkgdir, pkg))
+ sh('%s m-a -f -t -l %s -u %s a-b %s' % (rootcmd, opt.kernelver, pkgdir, pkg))
sh('%s rm -rf %s/usr_src %s/var_cache_modass' % (rootcmd, pkgdir, pkgdir))
log('deinstalling kernel source package')
@@ -270,6 +270,10 @@
default=False,
help='build kernel modules (requires root privileges)')
+ parser.add_option('-K', '--kernelver', dest='kernelver',
+ default=os.uname()[2],
+ help='kernel version to build modules for (defaults to running kernel)')
+
parser.add_option('-l', '--localver', dest='localver',
default='0',
help='local version (appended to the upstream version)')
=== make-vmpkg.1
==================================================================
--- make-vmpkg.1 (revision 2)
+++ make-vmpkg.1 (local)
@@ -52,6 +52,9 @@
\fB\-k\fR, \fB\-\-kernel\fR
build kernel modules (requires root privileges)
.TP
+\fB\-K\fR, \fB\-\-kernelver\fR=\fIVER\fR
+kernel version to build modules for (defaults to running kernel)
+.TP
\fB\-l\fR, \fB\-\-localver\fR=\fIVER\fR
local version (appended to the upstream version)
.TP
More information about the Vmware-package-maintainers
mailing list