def callbackAdvCertSettings(self, event):
     if (self.secureBootType in RTyyyy_uidef.kSecureBootType_HwCrypto
         ) and self.bootDevice != RTyyyy_uidef.kBootDevice_FlexspiNor:
         self.popupMsgBox(uilang.kMsgLanguageContentDict[
             'operHwCryptoError_onlyForFlexspiNor'][self.languageIndex])
     elif self.secureBootType == RTyyyy_uidef.kSecureBootType_HabCrypto and \
          (self.bootDevice == RTyyyy_uidef.kBootDevice_FlexspiNor or self.bootDevice == RTyyyy_uidef.kBootDevice_SemcNor) and \
          (not self.tgt.isNonXipImageAppliableForXipableDeviceUnderClosedHab):
         self.popupMsgBox(uilang.kMsgLanguageContentDict[
             'operHabError_notAppliableDevice'][self.languageIndex])
     elif self.secureBootType != RTyyyy_uidef.kSecureBootType_Development:
         if (self.secureBootType in RTyyyy_uidef.kSecureBootType_HwCrypto
             ) and (not self.isCertEnabledForHwCrypto):
             self.popupMsgBox(uilang.kMsgLanguageContentDict[
                 'certGenError_notEnabledForHwCrypto'][self.languageIndex])
         else:
             if self.checkIfSubWinHasBeenOpened():
                 return
             certSettingsFrame = ui_settings_cert.secBootUiSettingsCert(
                 None)
             certSettingsFrame.SetTitle(
                 uilang.kSubLanguageContentDict['cert_title'][
                     self.languageIndex])
             certSettingsFrame.Show(True)
             self.updateAllCstPathToCorrectVersion()
     else:
         self.popupMsgBox(uilang.kMsgLanguageContentDict[
             'certGenError_noNeedToSetForUnsigned'][self.languageIndex])
Exemple #2
0
 def callbackAdvCertSettings( self, event ):
     if self.secureBootType == uidef.kSecureBootType_BeeCrypto and self.bootDevice != uidef.kBootDevice_FlexspiNor:
         self.popupMsgBox('Action is not available because BEE encryption boot is only designed for FlexSPI NOR device!')
     elif self.secureBootType != uidef.kSecureBootType_Development:
         if self.secureBootType == uidef.kSecureBootType_BeeCrypto and (not self.isCertEnabledForBee):
             self.popupMsgBox('Certificate is not enabled for BEE, You can enable it then try again!')
         else:
             certSettingsFrame = ui_settings_cert.secBootUiSettingsCert(None)
             certSettingsFrame.SetTitle(u"Advanced Certificate Settings")
             certSettingsFrame.Show(True)
             self.updateAllCstPathToCorrectVersion()
     else:
         self.popupMsgBox('No need to set certificate option when booting unsigned image!')
Exemple #3
0
 def callbackAdvCertSettings(self, event):
     if self.secureBootType == uidef.kSecureBootType_BeeCrypto and self.bootDevice != uidef.kBootDevice_FlexspiNor:
         self.popupMsgBox(uilang.kMsgLanguageContentDict[
             'operBeeError_onlyForFlexspiNor'][self.languageIndex])
     elif self.secureBootType != uidef.kSecureBootType_Development:
         if self.secureBootType == uidef.kSecureBootType_BeeCrypto and (
                 not self.isCertEnabledForBee):
             self.popupMsgBox(uilang.kMsgLanguageContentDict[
                 'certGenError_notEnabledForBee'][self.languageIndex])
         else:
             if self._checkIfSubWinHasBeenOpened():
                 return
             certSettingsFrame = ui_settings_cert.secBootUiSettingsCert(
                 None)
             certSettingsFrame.SetTitle(
                 uilang.kSubLanguageContentDict['cert_title'][
                     self.languageIndex])
             certSettingsFrame.Show(True)
             self.updateAllCstPathToCorrectVersion()
     else:
         self.popupMsgBox(uilang.kMsgLanguageContentDict[
             'certGenError_noNeedToSetForUnsigned'][self.languageIndex])