diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-17 13:46:33 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-17 13:46:33 +0200 |
commit | 1b79f8510362da33c09f6e2c18740dce2cd24e5c (patch) | |
tree | caa98d51ee8ad47fa13fd14f7440336f1d39d3b9 /bin | |
parent | 31a6f42e08a0285b2f6153a91605a400089d1199 (diff) |
configurable Kconfig filename and randconfig command
now also works with busybox
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/explore-kconfig.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/explore-kconfig.py b/bin/explore-kconfig.py index 4c08826..e59db17 100755 --- a/bin/explore-kconfig.py +++ b/bin/explore-kconfig.py @@ -56,6 +56,15 @@ def main(): help="Attribute extraction command", default="make attributes", ) + parser.add_argument( + "--randconfig-command", + type=str, + help="Randconfig command for --random", + default="make randconfig", + ) + parser.add_argument( + "--kconfig-file", type=str, help="Kconfig file", default="Kconfig" + ) parser.add_argument("project_root", type=str, help="Project root directory") args = parser.parse_args() @@ -73,6 +82,10 @@ def main(): kconf.build_command = args.build_command if args.attribute_command: kconf.attribute_command = args.attribute_command + if args.randconfig_command: + kconf.randconfig_command = args.randconfig_command + if args.kconfig_file: + kconf.kconfig = args.kconfig_file if args.random: for i in range(args.random): |