openubmc-bingo 0.6.60__py3-none-any.whl → 0.6.62__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/component/analysis/analysis.py +3 -2
- bmcgo/component/test.py +1 -1
- bmcgo/tasks/task_hpm_envir_prepare.py +21 -7
- {openubmc_bingo-0.6.60.dist-info → openubmc_bingo-0.6.62.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.60.dist-info → openubmc_bingo-0.6.62.dist-info}/RECORD +9 -9
- {openubmc_bingo-0.6.60.dist-info → openubmc_bingo-0.6.62.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.60.dist-info → openubmc_bingo-0.6.62.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.60.dist-info → openubmc_bingo-0.6.62.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
|
@@ -128,14 +128,15 @@ class AnalysisComp():
|
|
|
128
128
|
dependencies_keys = [key for key, dep in dependencies_data.items() if dep["direct"]]
|
|
129
129
|
requires[node.index] = dependencies_keys
|
|
130
130
|
comm_name = misc.community_name()
|
|
131
|
+
excluded_prefixes = (comm_name, "openubmc")
|
|
131
132
|
for index, pkg in packages.items():
|
|
132
|
-
if not pkg.name.startswith(
|
|
133
|
+
if not pkg.name.startswith(excluded_prefixes):
|
|
133
134
|
self.set_node_subsys(pkg)
|
|
134
135
|
for require_id in requires.get(index, []):
|
|
135
136
|
require_package = packages.get(int(require_id), None)
|
|
136
137
|
if require_package:
|
|
137
138
|
pkg.requires.append(require_package)
|
|
138
|
-
if not pkg.name.startswith(
|
|
139
|
+
if not pkg.name.startswith(excluded_prefixes):
|
|
139
140
|
self.nodes.append(pkg)
|
|
140
141
|
|
|
141
142
|
def run(self):
|
bmcgo/component/test.py
CHANGED
|
@@ -877,7 +877,7 @@ class TestComp():
|
|
|
877
877
|
def check_folder(self):
|
|
878
878
|
test_package_folder = os.path.join(self.folder, "test_package")
|
|
879
879
|
ut_path = os.path.join(self.folder, "test", "unit")
|
|
880
|
-
it_path = os.path.join(self.folder, "test", "
|
|
880
|
+
it_path = os.path.join(self.folder, "test", "integration")
|
|
881
881
|
fz_path = os.path.join(self.folder, "test", "fuzz")
|
|
882
882
|
|
|
883
883
|
has_dt_type = self.unit_test or self.integration_test or self.fuzz_test
|
|
@@ -13,6 +13,7 @@ import os
|
|
|
13
13
|
import subprocess
|
|
14
14
|
import time
|
|
15
15
|
from multiprocessing import Process
|
|
16
|
+
|
|
16
17
|
from bmcgo.tasks.task import Task
|
|
17
18
|
from bmcgo import errors
|
|
18
19
|
|
|
@@ -27,13 +28,24 @@ class SignProcess(Process):
|
|
|
27
28
|
self.work.work_name = "sign_rootfs_image"
|
|
28
29
|
self.work.chdir(self.config.build_path)
|
|
29
30
|
if self.config.self_sign:
|
|
30
|
-
self.
|
|
31
|
-
f"{self.config.work_out}/rootfs_BMC.img.cms",
|
|
32
|
-
f"{self.config.work_out}/cms.crl",
|
|
33
|
-
f"{self.config.work_out}/rootca.der")
|
|
31
|
+
self.self_sign()
|
|
34
32
|
else:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
self.online_sign()
|
|
34
|
+
|
|
35
|
+
# 自签名函数,继承类可扩展,不能变更方法名,重要!!!
|
|
36
|
+
def self_sign(self):
|
|
37
|
+
self.work.signature(
|
|
38
|
+
f"{self.config.work_out}/rootfs_BMC.img",
|
|
39
|
+
f"{self.config.work_out}/rootfs_BMC.img.cms",
|
|
40
|
+
f"{self.config.work_out}/cms.crl",
|
|
41
|
+
f"{self.config.work_out}/rootca.der",
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
# 在线签名函数,继承类可扩展,不能变更方法名,重要!!!
|
|
45
|
+
def online_sign(self):
|
|
46
|
+
# bingo无需在线签名逻辑,仅占位满足后续流程即可
|
|
47
|
+
out_file = f"{self.config.work_out}/rootfs_BMC.img.cms"
|
|
48
|
+
self.work.tools.pipe_command([f"echo 'cms placeholder'"], out_file=out_file)
|
|
37
49
|
|
|
38
50
|
|
|
39
51
|
class TarImageProcess(Process):
|
|
@@ -45,6 +57,9 @@ class TarImageProcess(Process):
|
|
|
45
57
|
def run(self):
|
|
46
58
|
self.work.work_name = "tar_rootfs_image"
|
|
47
59
|
self.work.chdir(self.config.work_out)
|
|
60
|
+
self.tar_image()
|
|
61
|
+
|
|
62
|
+
def tar_image(self):
|
|
48
63
|
self.work.run_command("tar --format=gnu --exclude BMC_rootfs.tar.gz -czf rootfs_BMC.tar.gz rootfs_BMC.img")
|
|
49
64
|
self.work.success("tar BMC_rootfs.tar.gz successfully")
|
|
50
65
|
|
|
@@ -116,4 +131,3 @@ class TaskClass(Task):
|
|
|
116
131
|
raise errors.BmcGoException(f"打包进程发生错误, 返回值: {tar.exitcode}")
|
|
117
132
|
break
|
|
118
133
|
time.sleep(0.1)
|
|
119
|
-
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=AakrBEE0OLoYJqOtyMmj_oXuKZzZNxOMFT1yjxm-Bqc,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
|
|
@@ -174,8 +174,8 @@ bmcgo/component/component_helper.py,sha256=gB2N3eRH8gmWbYBHAV-ejD4bEhk71ZVeuXi46
|
|
|
174
174
|
bmcgo/component/deploy.py,sha256=Iy5CsiolKS1h5jDg13nYkfy6--BtbBZ8FLou2oVuoLQ,6544
|
|
175
175
|
bmcgo/component/gen.py,sha256=lhPe_VV08CDFSydSLCX7IC5m8obNvYZSSzIp9o84nd0,7248
|
|
176
176
|
bmcgo/component/package_info.py,sha256=pYgubJ-564JXQmEaSlYfGnoVgrNlY3O5jJP1vxZe-Qc,14844
|
|
177
|
-
bmcgo/component/test.py,sha256=
|
|
178
|
-
bmcgo/component/analysis/analysis.py,sha256=
|
|
177
|
+
bmcgo/component/test.py,sha256=8_70RP9LFr0lF0WlqTWBXGBlB4v6FOVc1j_sDyhogtg,45815
|
|
178
|
+
bmcgo/component/analysis/analysis.py,sha256=pwX14SRtKS8ZATrOCniENHiuuEHAjCOq11P5AI1aAJc,9431
|
|
179
179
|
bmcgo/component/analysis/build_deps.py,sha256=cyQh5D3R1syQfMJcNxEIKKSJGanPMNRFPGlJRitDAa0,7324
|
|
180
180
|
bmcgo/component/analysis/data_deps.py,sha256=lDCVZ1B56pOW3BApCroujEaak4I07tN9mDOWruhuDkc,16431
|
|
181
181
|
bmcgo/component/analysis/dep-rules.json,sha256=fLNK_MN7plr9WYLzlla56geGBreYQ_3t9xZSIX0beag,35251
|
|
@@ -232,7 +232,7 @@ bmcgo/tasks/task_buildhpm_ext4.py,sha256=DBZnmU_eb14J0CW_wVoCc9VKnssFF1vXmRhLJQ6
|
|
|
232
232
|
bmcgo/tasks/task_create_interface_config.py,sha256=rkFRGLrUgYCics-n1CKwCoQscU2BaRQkH7KP3zwJ6FI,5393
|
|
233
233
|
bmcgo/tasks/task_download_buildtools.py,sha256=QZpsrm2eaoJ0z5PkdSuHXg1n7L9qPz2s3XAVCnQi-hA,4292
|
|
234
234
|
bmcgo/tasks/task_download_dependency.py,sha256=2AW4awv_njlTrKy11ygKWekFBXLyS18FLcws8cVXGz0,3169
|
|
235
|
-
bmcgo/tasks/task_hpm_envir_prepare.py,sha256=
|
|
235
|
+
bmcgo/tasks/task_hpm_envir_prepare.py,sha256=fG_5VAYF8x00VEes1RNBzkd1ucwMRQ_J7qrD-WUH7Ok,4597
|
|
236
236
|
bmcgo/tasks/task_packet_to_supporte.py,sha256=5VSnC9typxiShCxt8YWWyBVojJ6MaXvgPHiIf6bObuA,4351
|
|
237
237
|
bmcgo/tasks/task_prepare.py,sha256=K1cb_3lhclRkCYa2wgp5E2FMOd3pC7VHBnm_4L_nrRE,6704
|
|
238
238
|
bmcgo/tasks/task_sign_and_pack_hpm.py,sha256=dLXTea5zfYg9UwYzhpl6o3eYd4Zg3vyB5GED4QcTvT0,2238
|
|
@@ -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.62.dist-info/METADATA,sha256=OBCy8TdKhZ1JnE_S2_xipqSKFs4awl-a_8TJqfFCOZ8,1010
|
|
268
|
+
openubmc_bingo-0.6.62.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.62.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.62.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.62.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|