openubmc-bingo 0.6.58__py3-none-any.whl → 0.6.59__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openubmc-bingo might be problematic. Click here for more details.
- bmcgo/__init__.py +1 -1
- bmcgo/tasks/task_sign_and_pack_hpm.py +15 -7
- {openubmc_bingo-0.6.58.dist-info → openubmc_bingo-0.6.59.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.58.dist-info → openubmc_bingo-0.6.59.dist-info}/RECORD +7 -7
- {openubmc_bingo-0.6.58.dist-info → openubmc_bingo-0.6.59.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.58.dist-info → openubmc_bingo-0.6.59.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.58.dist-info → openubmc_bingo-0.6.59.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
|
@@ -18,14 +18,9 @@ class TaskClass(Task):
|
|
|
18
18
|
def sign_hpms(self):
|
|
19
19
|
self.chdir(self.config.work_out)
|
|
20
20
|
if self.config.self_sign:
|
|
21
|
-
self.
|
|
22
|
-
# 复制预置的ca, crl作为签名文件,并复制cms
|
|
23
|
-
self.signature(f"rootfs_{self.config.board_name}.filelist",
|
|
24
|
-
f"rootfs_{self.config.board_name}.filelist.cms",
|
|
25
|
-
"cms.crl", "rootca.der")
|
|
21
|
+
self._self_sign()
|
|
26
22
|
else:
|
|
27
|
-
self.
|
|
28
|
-
self.run_command(f"cp {self.config.board_path}/cms.crl {self.config.work_out}/cms.crl")
|
|
23
|
+
self._online_sign()
|
|
29
24
|
self.chdir(self.config.work_out)
|
|
30
25
|
|
|
31
26
|
# 生成的文件为rootfs_{board_name}.hpm.signed
|
|
@@ -40,3 +35,16 @@ class TaskClass(Task):
|
|
|
40
35
|
|
|
41
36
|
def run(self):
|
|
42
37
|
self.sign_hpms()
|
|
38
|
+
|
|
39
|
+
def _self_sign(self):
|
|
40
|
+
# 复制预置的ca, crl作为签名文件,并复制cms
|
|
41
|
+
self.signature(f"rootfs_{self.config.board_name}.filelist",
|
|
42
|
+
f"rootfs_{self.config.board_name}.filelist.cms",
|
|
43
|
+
"cms.crl", "rootca.der")
|
|
44
|
+
|
|
45
|
+
# 在线签名逻辑,生成对应的crl和cms文件
|
|
46
|
+
# 此函数供继承类重写,不允许更改函数名,重要!!!
|
|
47
|
+
def _online_sign(self):
|
|
48
|
+
# bingo不实现在线签名逻辑,这里创建空文件满足后续流程
|
|
49
|
+
self.run_command(f"touch {self.config.work_out}/rootfs_{self.config.board_name}.filelist.cms")
|
|
50
|
+
self.run_command(f"cp {self.config.board_path}/cms.crl {self.config.work_out}/cms.crl")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=WCeuHxskNJNexpFQY1v5EHAl1f6ysPef-7lxsGm9TfE,562
|
|
2
2
|
bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
|
|
3
3
|
bmcgo/bmcgo_config.py,sha256=-KYhC3jNqWkCWu6YkyxDZlyC3floXIHaibGpmyB6YWQ,11873
|
|
4
4
|
bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
|
|
@@ -235,7 +235,7 @@ bmcgo/tasks/task_download_dependency.py,sha256=2AW4awv_njlTrKy11ygKWekFBXLyS18FL
|
|
|
235
235
|
bmcgo/tasks/task_hpm_envir_prepare.py,sha256=Jkt5tu04NUpSuiKG1Iaei8fUloWYhwHwdXehj4PLwMA,4244
|
|
236
236
|
bmcgo/tasks/task_packet_to_supporte.py,sha256=eaNtri3YQfXFBnceM1-2C_6AgMgrGxEj4xKXTgNRPH8,4100
|
|
237
237
|
bmcgo/tasks/task_prepare.py,sha256=K1cb_3lhclRkCYa2wgp5E2FMOd3pC7VHBnm_4L_nrRE,6704
|
|
238
|
-
bmcgo/tasks/task_sign_and_pack_hpm.py,sha256=
|
|
238
|
+
bmcgo/tasks/task_sign_and_pack_hpm.py,sha256=dLXTea5zfYg9UwYzhpl6o3eYd4Zg3vyB5GED4QcTvT0,2238
|
|
239
239
|
bmcgo/tasks/conan/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
240
240
|
bmcgo/tasks/conan/conanfile.py,sha256=MI6c2QNKixrkA5Tx4i9EKw7bZ20GVDIKgkaMwNHQKcg,1342
|
|
241
241
|
bmcgo/utils/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
@@ -264,8 +264,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
|
|
|
264
264
|
bmcgo/utils/installations/install_plans/studio.yml,sha256=AEspVgsVAnmUdvqZYNCb7SPoUEq_0i61dfpauyguLa4,229
|
|
265
265
|
bmcgo/utils/installations/installers/apt_installer.py,sha256=nPaCb4cobSi9InN_aHsEPtQ0k4FgsCUWE5_VgBPvcRE,3769
|
|
266
266
|
bmcgo/utils/installations/installers/pip_installer.py,sha256=dDdios1EQ7fzt90r02pZeoM3jCmjslLzkSvzd2hgRVM,3241
|
|
267
|
-
openubmc_bingo-0.6.
|
|
268
|
-
openubmc_bingo-0.6.
|
|
269
|
-
openubmc_bingo-0.6.
|
|
270
|
-
openubmc_bingo-0.6.
|
|
271
|
-
openubmc_bingo-0.6.
|
|
267
|
+
openubmc_bingo-0.6.59.dist-info/METADATA,sha256=42XLTEus73YQ00Rv-MmfEwoY7Cvt8ji1fMOB86l1g3A,1010
|
|
268
|
+
openubmc_bingo-0.6.59.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.59.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.59.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.59.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|