make bootloader requirements optional

Interpret a "*" in the "require version-bootloader" line as "don't
require any specific bootloader".  Sholes OTAs include the bootloader
and the main system in the same package.
This commit is contained in:
Doug Zongker 2009-07-22 09:28:25 -07:00
parent 7166e3a882
commit 0493e240fd
1 changed files with 2 additions and 1 deletions

View File

@ -291,7 +291,8 @@ def AppendAssertions(script, input_zip):
m = re.search(r"require\s+version-bootloader\s*=\s*(\S+)", info)
if m:
bootloaders = m.group(1).split("|")
script.AssertSomeBootloader(*bootloaders)
if "*" not in bootloaders:
script.AssertSomeBootloader(*bootloaders)
def WriteFullOTAPackage(input_zip, output_zip):