Add sysconfig SWI upgrade mode.

This commit is contained in:
Jeffrey Townsend
2016-09-23 14:48:18 +00:00
parent 4c45a7cd39
commit 13d06bab43
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ to upgrade the SWI, only a means to detect if a SWI upgrade is indicated.
import os
import re
from onl.upgrade import ubase
from onl.sysconfig import sysconfig
class Swi_Upgrade(ubase.BaseUpgrade):
name="swi"
@@ -68,4 +69,5 @@ class Swi_Upgrade(ubase.BaseUpgrade):
self.logger.info("THIS STEP INTENTIONALLY LEFT BLANK")
if __name__ == '__main__':
Swi_Upgrade().main()
if sysconfig.upgrade.swi.auto != 'disabled':
Swi_Upgrade().main()

View File

@@ -30,6 +30,8 @@ upgrade:
fit:
- $PLATFORM.itb
- onl-loader-fit.itb
swi:
auto: disabled
pki:
key: