diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 23:14:30 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 23:23:18 +0200 |
commit | 41b0af42514404a0af3698e2da460f3453bb8b40 (patch) | |
tree | 5f33e5e78121f52f1c8cb3d94807f609c5cb481e /devel | |
parent | 35fdf82e6adeb9b7404f32cd20ce64dcfdad2574 (diff) |
ckmake: allow using defconfig file
This is useful to check only a certain subsystem, e.g. DRM.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/ckmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/ckmake b/devel/ckmake index aae99b78..a0deb7d5 100755 --- a/devel/ckmake +++ b/devel/ckmake @@ -148,6 +148,8 @@ def process_kernel(num, kset, cmdline_args): config_name = 'allnoconfig' if cmdline_args.allyesconfig: config_name = 'allyesconfig' + elif cmdline_args.defconfig: + all_config.write(open(os.path.join(work_dir, 'defconfigs', cmdline_args.defconfig)).read()) else: all_config.write("CPTCFG_BACKPORT_USERSEL_BUILD_ALL=y\n") all_config.close() @@ -397,6 +399,8 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description='compile against all kernels you have') parser.add_argument('--allyesconfig', const=True, default=False, action="store_const", help='Build allyesconfig rather than only backport code.') + parser.add_argument('--defconfig', metavar='<name>', type=str, + help='Build this defconfig rather than only backport code.') args = parser.parse_args() if not os.path.exists(modules): |