summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2020-06-15 14:44:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-16 15:20:01 +0100
commitbf902a810f98f55dd9e8cb9e6c6b0903f9902157 (patch)
tree38b4b73fb50be81fcd22c4e822b4e334cdaf4fb2 /scripts
parent52dc6f671ff67a1149be7ef4c65126ea3c907a3d (diff)
downloadopenembedded-core-contrib-bf902a810f98f55dd9e8cb9e6c6b0903f9902157.tar.gz
install-buildtools: add option to disable checksum validation
The --check option turns on checksum validation, but it defaults to 'on' so is pointless. Add a corresponding --no-check option to turn off validation. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-buildtools8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/install-buildtools b/scripts/install-buildtools
index a9173fa096d..69ce9a1f054 100755
--- a/scripts/install-buildtools
+++ b/scripts/install-buildtools
@@ -154,9 +154,11 @@ def main():
group.add_argument('--without-extended-buildtools', action='store_false',
dest='with_extended_buildtools',
help='disable extended buildtools (traditional buildtools tarball)')
- parser.add_argument('-c', '--check', help='enable md5 checksum checking',
- default=True,
- action='store_true')
+ group = parser.add_mutually_exclusive_group()
+ group.add_argument('-c', '--check', help='enable checksum validation',
+ default=True, action='store_true')
+ group.add_argument('-n', '--no-check', help='disable checksum validation',
+ dest="check", action='store_false')
parser.add_argument('-D', '--debug', help='enable debug output',
action='store_true')
parser.add_argument('-q', '--quiet', help='print only errors',