소스 검색

Improve signcmd for CUSTOM signing in swupdate-common class

Signed-off-by: Jyothi <jyothik41rao@gmail.com>
Jyothi 4 년 전
부모
커밋
f4734e0885
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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":