Ver código fonte

Improve signcmd for CUSTOM signing in swupdate-common class

Signed-off-by: Jyothi <jyothik41rao@gmail.com>
Jyothi 4 anos atrás
pai
commit
dcf6616ff2
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      classes/swupdate-common.bbclass

+ 5 - 1
classes/swupdate-common.bbclass

@@ -260,7 +260,11 @@ def prepare_sw_description(d):
         sw_desc =  os.path.join(s, 'sw-description.plain' if encrypt else 'sw-description')
 
         if signing == "CUSTOM":
-            signcmd = d.getVar('SWUPDATE_SIGN_TOOL', True)
+            signcmd = []
+            sign_tool = d.getVar('SWUPDATE_SIGN_TOOL', True)
+            signtool = sign_tool.split()
+            for i in range(len(signtool)):
+                signcmd.append(signtool[i])
             if not signcmd:
                 bb.fatal("Custom SWUPDATE_SIGN_TOOL is not given")
         elif signing == "RSA":