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 23:39:28 +0100
commit4db392007eb854118eb443de2a7006062373c117 (patch)
treebcf1b7924ccdd552d4826d4fa0f8e7a8f6d1dc12 /scripts
parent2ea4530918792e54c800635eec9c1fd54689b66b (diff)
downloadpoky-4db392007eb854118eb443de2a7006062373c117.tar.gz
poky-4db392007eb854118eb443de2a7006062373c117.tar.bz2
poky-4db392007eb854118eb443de2a7006062373c117.zip
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. (From OE-Core rev: bf902a810f98f55dd9e8cb9e6c6b0903f9902157) 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 a9173fa096..69ce9a1f05 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',