Jan Kiszka wrote:
In order to allow sync'ing the kmod dir against arbitrary kernels trees,
extend the sync script to accept alternative paths and adjust the
Makefile accordingly.
@@ -17,6 +17,7 @@ ORIGMODDIR = $(patsubst %/build,%/kernel,$(KERNELDIR))
rpmrelease = devel
+KVM_VERSION = kvm-devel
LINUX = ./linux-2.6
You're overriding ./configure here. What was the motivation?
-version = 'kvm-devel'
-if len(sys.argv) >= 2:
- version = sys.argv[1]
+parser = OptionParser(usage='usage: %prog [-v version][-l linuxkernel]')
+parser.add_option('-v', action='store', type='string', dest='version')
+parser.add_option('-l', action='store', type='string', dest='linux')
Please add help, and spaces around '='.
+(options, args) = parser.parse_args()
+version = 'kvm-devel'
linux = 'linux-2.6'
+if options.version:
+ version = options.version
+if options.linux:
+ linux = options.linux
+
Can replace this with set_defaults().
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html