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
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():
154 group.add_argument('--without-extended-buildtools', action='store_false', 154 group.add_argument('--without-extended-buildtools', action='store_false',
155 dest='with_extended_buildtools', 155 dest='with_extended_buildtools',
156 help='disable extended buildtools (traditional buildtools tarball)') 156 help='disable extended buildtools (traditional buildtools tarball)')
157 parser.add_argument('-c', '--check', help='enable md5 checksum checking', 157 group = parser.add_mutually_exclusive_group()
158 default=True, 158 group.add_argument('-c', '--check', help='enable checksum validation',
159 action='store_true') 159 default=True, action='store_true')
160 group.add_argument('-n', '--no-check', help='disable checksum validation',
161 dest="check", action='store_false')
160 parser.add_argument('-D', '--debug', help='enable debug output', 162 parser.add_argument('-D', '--debug', help='enable debug output',
161 action='store_true') 163 action='store_true')
162 parser.add_argument('-q', '--quiet', help='print only errors', 164 parser.add_argument('-q', '--quiet', help='print only errors',