sm6150-common: releasetools: Drop support for multiple modem version
* The modem version is a minimum requirement, hence it's useless to assert on multiple modem versions. Change-Id: I206b05365681d2292417dfbdc78b9faf11e2a295
This commit is contained in:
parent
2c30dfedda
commit
7de8311de3
@ -57,9 +57,8 @@ def AddBasebandAssertion(info, input_zip):
|
|||||||
m = re.search(r'require\s+version-baseband\s*=\s*(.+)', android_info)
|
m = re.search(r'require\s+version-baseband\s*=\s*(.+)', android_info)
|
||||||
if m:
|
if m:
|
||||||
modem_version, firmware_version = m.group(1).rstrip().split(',')
|
modem_version, firmware_version = m.group(1).rstrip().split(',')
|
||||||
modem_versions = modem_version.split('|')
|
if ((len(modem_version) and '*' not in modem_version) and \
|
||||||
if ((len(modem_versions) and '*' not in modem_versions) and \
|
|
||||||
(len(firmware_version) and '*' not in firmware_version)):
|
(len(firmware_version) and '*' not in firmware_version)):
|
||||||
cmd = 'assert(xiaomi.verify_baseband(' + ','.join(['"%s"' % baseband for baseband in modem_versions]) + ') == "1" || abort("ERROR: This package requires firmware from MIUI {1} or newer. Please upgrade firmware and retry!"););'
|
cmd = 'assert(xiaomi.verify_baseband({0}) == "1" || abort("ERROR: This package requires firmware from MIUI {1} or newer. Please upgrade firmware and retry!"););'
|
||||||
info.script.AppendExtra(cmd.format(modem_versions, firmware_version))
|
info.script.AppendExtra(cmd.format(modem_version, firmware_version))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user