+ kernel_cutoff = KernelVersion("2.6.36")
+ kernel_git = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
+ kernel_path = os.getcwd() + "/kernel"
+
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--kernel-path", help="The location of the kernel. Default to the currentdir/linux")
+ parser.add_argument("--kernel-git-remote", help="The git url of the kernel. Default to git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git")
+ parser.add_argument("--kernel-cutoff", help="The lower bersion cutoff in X.X.X format. Default to 2.6.36")
+ args = parser.parse_args()
+
+ if args.kernel_path:
+ kernel_path = args.kernel_path
+ if args.kernel_git_remote:
+ kernel_git = args.kernel_git_remote
+ if args.kernel_cutoff:
+ kernel_cutoff = KernelVersion(args.kernel_cutoff)