openubmc-bingo 0.6.21__py3-none-any.whl → 0.6.24__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/codegen/lua/script/render_utils/model_lua.py +1 -1
- bmcgo/tasks/task.py +1 -1
- bmcgo/tasks/task_build_conan.py +21 -7
- bmcgo/utils/tools.py +2 -2
- {openubmc_bingo-0.6.21.dist-info → openubmc_bingo-0.6.24.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.21.dist-info → openubmc_bingo-0.6.24.dist-info}/RECORD +10 -10
- {openubmc_bingo-0.6.21.dist-info → openubmc_bingo-0.6.24.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.21.dist-info → openubmc_bingo-0.6.24.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.21.dist-info → openubmc_bingo-0.6.24.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
|
@@ -487,7 +487,7 @@ class ModelLuaUtils(Base, Utils):
|
|
|
487
487
|
for key, value in input_dict.items():
|
|
488
488
|
if isinstance(value, dict):
|
|
489
489
|
_ = self.remove_description(value)
|
|
490
|
-
if key
|
|
490
|
+
if key in ['description', 'constraint', 'example']:
|
|
491
491
|
keys_to_delete.append(key)
|
|
492
492
|
for key in keys_to_delete:
|
|
493
493
|
del input_dict[key]
|
bmcgo/tasks/task.py
CHANGED
bmcgo/tasks/task_build_conan.py
CHANGED
|
@@ -561,6 +561,7 @@ class TaskClass(Task):
|
|
|
561
561
|
require_list = list(bundle.keys())
|
|
562
562
|
list.sort(require_list)
|
|
563
563
|
package_info_list = deepcopy(require_list)
|
|
564
|
+
dst_file = os.path.join(self.config.rootfs_path, dst_file)
|
|
564
565
|
self.run_command(f"rm -rf {dst_file}", sudo=True)
|
|
565
566
|
with os.fdopen(os.open(self.package_info, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, stat.S_IWUSR | stat.S_IRUSR |
|
|
566
567
|
stat.S_IWGRP | stat.S_IRGRP | stat.S_IWOTH | stat.S_IROTH), 'w') as fp:
|
|
@@ -570,7 +571,8 @@ class TaskClass(Task):
|
|
|
570
571
|
else:
|
|
571
572
|
package_info_list.remove(package)
|
|
572
573
|
fp.close()
|
|
573
|
-
|
|
574
|
+
os.makedirs(os.path.dirname(dst_file), exist_ok=True)
|
|
575
|
+
self.run_command(f"cp -f {self.package_info} {dst_file}", sudo=True)
|
|
574
576
|
|
|
575
577
|
def sensitive_data_conf_gen(self, comps, dst_file):
|
|
576
578
|
self.run_command(f"rm -rf {dst_file}", sudo=True)
|
|
@@ -697,6 +699,8 @@ class TaskClass(Task):
|
|
|
697
699
|
graph_cmd = f"conan graph info . {base_cmd} -f json --lockfile={self.lockfile} --out-file={self.graphfile}"
|
|
698
700
|
self.run_command(graph_cmd)
|
|
699
701
|
self.success(f"start build dependency packages of {self.config.board_name}")
|
|
702
|
+
if self.skip_install_comp:
|
|
703
|
+
return
|
|
700
704
|
bcp = BuildConans(self.graphfile, self.lockfile, base_cmd, self.config.from_source, self.config.log_path)
|
|
701
705
|
bcp.build()
|
|
702
706
|
|
|
@@ -741,11 +745,13 @@ class TaskClass(Task):
|
|
|
741
745
|
self.run_command(install_cmd, command_echo=True, warn_log="缓存安装失败,可能缺少某个依赖项制品,开始从源码构建缺失的软件包")
|
|
742
746
|
except Exception:
|
|
743
747
|
ret = -1
|
|
748
|
+
shutil.copyfile(self.lockfile, f"{self.conan_install}/conan.lock")
|
|
749
|
+
if self.skip_install_comp:
|
|
750
|
+
return
|
|
744
751
|
if ret != 0:
|
|
745
752
|
bundle_parse = ConanLockParse("openubmc.bundle", self)
|
|
746
753
|
bundle_parse.conan_parallel_build(cmd, self.config.build_path)
|
|
747
754
|
self.run_command(install_cmd, command_echo=True)
|
|
748
|
-
shutil.copyfile(self.lockfile, f"{self.conan_install}/conan.lock")
|
|
749
755
|
# 检查使用到的组件是否都在单板目录 manifest.yml 中配置了
|
|
750
756
|
self.component_check.run()
|
|
751
757
|
self.clean_luac_out()
|
|
@@ -846,14 +852,17 @@ class TaskClass(Task):
|
|
|
846
852
|
def package_info_gen_v2(self, bmc_lock, dst_file):
|
|
847
853
|
with open(bmc_lock, "r") as bmc_lock_fp:
|
|
848
854
|
lock_info = json.load(bmc_lock_fp)
|
|
849
|
-
require_list = lock_info.get("requires")
|
|
850
|
-
self.run_command(f"rm -rf {dst_file}", sudo=True)
|
|
855
|
+
require_list = lock_info.get("requires", [])
|
|
851
856
|
with os.fdopen(os.open(self.package_info, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, stat.S_IWUSR | stat.S_IRUSR |
|
|
852
857
|
stat.S_IWGRP | stat.S_IRGRP | stat.S_IWOTH | stat.S_IROTH), 'w') as fp:
|
|
853
858
|
for package in require_list:
|
|
854
859
|
fp.write(f"{package}\n")
|
|
855
860
|
fp.close()
|
|
856
|
-
|
|
861
|
+
dst_file = os.path.join(self.config.rootfs_path, dst_file)
|
|
862
|
+
self.run_command(f"rm -rf {dst_file}", sudo=True)
|
|
863
|
+
os.makedirs(os.path.dirname(dst_file), exist_ok=True)
|
|
864
|
+
self.run_command(f"cp -f {self.package_info} {dst_file}", sudo=True)
|
|
865
|
+
|
|
857
866
|
|
|
858
867
|
def sensitive_data_conf_gen_v2(self, dst_file):
|
|
859
868
|
self.run_command(f"rm -rf {dst_file}", sudo=True)
|
|
@@ -1066,8 +1075,9 @@ class TaskClass(Task):
|
|
|
1066
1075
|
self.run_command(cmd)
|
|
1067
1076
|
cmd = f"cp temp/.deploy/luajit/usr/lib64/liblua.so {conan_bin}"
|
|
1068
1077
|
self.run_command(cmd)
|
|
1069
|
-
|
|
1070
|
-
|
|
1078
|
+
if os.path.isfile("temp/.deploy/luajit/usr/bin/jit"):
|
|
1079
|
+
cmd = f"cp -r temp/.deploy/luajit/usr/bin/jit {conan_bin}"
|
|
1080
|
+
self.run_command(cmd)
|
|
1071
1081
|
self.link(luac, luac_back)
|
|
1072
1082
|
# 仅在覆盖率使能场景下,对luac进行打桩
|
|
1073
1083
|
if self.config.enable_arm_gcov:
|
|
@@ -1086,6 +1096,10 @@ class TaskClass(Task):
|
|
|
1086
1096
|
if self.only_manifest_yml:
|
|
1087
1097
|
return
|
|
1088
1098
|
self.package_lock()
|
|
1099
|
+
if misc.conan_v2():
|
|
1100
|
+
self.package_info_gen_v2(self.lockfile, "etc/package_info")
|
|
1101
|
+
else:
|
|
1102
|
+
self.package_info_gen(f"{self.conan_source}/all/openubmc.bundle", "etc/package_info")
|
|
1089
1103
|
if not self.skip_package:
|
|
1090
1104
|
self.package()
|
|
1091
1105
|
|
bmcgo/utils/tools.py
CHANGED
|
@@ -645,7 +645,7 @@ class Tools():
|
|
|
645
645
|
error_log = kwargs.get("error_log")
|
|
646
646
|
warn_log = kwargs.get("warn_log")
|
|
647
647
|
log_name = kwargs.get("log_name")
|
|
648
|
-
timeout = kwargs.get("timeout",
|
|
648
|
+
timeout = kwargs.get("timeout", 1800)
|
|
649
649
|
capture_output = kwargs.get("capture_output", False)
|
|
650
650
|
if command_key:
|
|
651
651
|
key = command_key + ":"
|
|
@@ -775,7 +775,7 @@ class Tools():
|
|
|
775
775
|
tmpdir = TemporaryDirectory()
|
|
776
776
|
graph_file = os.path.join(tmpdir.name, "package.json")
|
|
777
777
|
cmd = f"conan install --requires='{package}' {install_args}"
|
|
778
|
-
cmd += f" -f json --out-file={graph_file}"
|
|
778
|
+
cmd += f" -f json --out-file={graph_file} -of temp"
|
|
779
779
|
self.run_command(cmd, ignore_error=False)
|
|
780
780
|
return self.get_package_folder_from_graph_file(graph_file, package)
|
|
781
781
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=BXSf7vrJJ8RdepowzFwMLtfu3srWxlFdp6BQdVXPvQ0,562
|
|
2
2
|
bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
|
|
3
3
|
bmcgo/bmcgo_config.py,sha256=-HZcTsnccE5wUsgGJ59kq8sDdu8feftIbpyoFvyvBhU,11264
|
|
4
4
|
bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
|
|
@@ -91,7 +91,7 @@ bmcgo/codegen/lua/script/render_utils/ipmi_message_lua.py,sha256=Y-5pXMfAPDZqqoA
|
|
|
91
91
|
bmcgo/codegen/lua/script/render_utils/mdb_lua.py,sha256=gKX_GUkIbYbbviBw9cEO3pfTwoLWurczYFmoOoWA1Us,6141
|
|
92
92
|
bmcgo/codegen/lua/script/render_utils/message_lua.py,sha256=ZHJy35iJir1O149dafZnl-oEdU89-eP6VIeQmKjh9D8,1155
|
|
93
93
|
bmcgo/codegen/lua/script/render_utils/messages_lua.py,sha256=eAe46JU1AJxfpifQCnioD1jxfDhfc-DLGRy8CmwCfBg,4948
|
|
94
|
-
bmcgo/codegen/lua/script/render_utils/model_lua.py,sha256=
|
|
94
|
+
bmcgo/codegen/lua/script/render_utils/model_lua.py,sha256=kxlPkPboUKtUfK2HTWakmgKMFLLZ3UofPouWvng7UWY,18456
|
|
95
95
|
bmcgo/codegen/lua/script/render_utils/old_model_lua.py,sha256=OFUPJOaiXDjXpknbh6Pw0TNC1dUVtjPbuIs-3fSN7p4,15611
|
|
96
96
|
bmcgo/codegen/lua/script/render_utils/plugin_lua.py,sha256=-_r-MqjDNnoYel6zdsNSkqYI3w1DKJPwJy5Vsevl33s,1481
|
|
97
97
|
bmcgo/codegen/lua/script/render_utils/redfish_proto.py,sha256=lAVo9pPxkc7Iv22enuqCOJVTFy8_63C57iADjzYWz5g,3130
|
|
@@ -223,8 +223,8 @@ bmcgo/target/publish.yml,sha256=WvaJAUZ0_6CMV3O1p1t6dagHe-DdLcXqLxKP11_ki1E,1615
|
|
|
223
223
|
bmcgo/tasks/__init__.py,sha256=VapgzhPMmB7dzPIRohoVm1jjfVn_v97cYNCRmkxScaU,539
|
|
224
224
|
bmcgo/tasks/download_buildtools_hm.py,sha256=f4UxStARc8Z8DnT_5O6ONajQ7P0sKyJ8brixr43fHVQ,5988
|
|
225
225
|
bmcgo/tasks/misc.py,sha256=GK_bSDLGZW0FxywB2ICG1iIEz2y2QoCb1YQQk8SYOIA,711
|
|
226
|
-
bmcgo/tasks/task.py,sha256=
|
|
227
|
-
bmcgo/tasks/task_build_conan.py,sha256=
|
|
226
|
+
bmcgo/tasks/task.py,sha256=w8tdU5NwoUfVF4xKFvSzcCWCf0FGTBHJAToNLlP0p4w,18424
|
|
227
|
+
bmcgo/tasks/task_build_conan.py,sha256=kzUcYhXN5ItQrWLmzNBkhiaA5NzO7KbW8PNtm-Nrw5g,50458
|
|
228
228
|
bmcgo/tasks/task_build_rootfs_img.py,sha256=JKEvldJnLWu2IdVSntuVowocQwdVtBQUpxzhplYauPI,29209
|
|
229
229
|
bmcgo/tasks/task_build_wbd_up.py,sha256=X9-0Qqad-s3mGfJBMeBQvfZ99KlWcgaMluDr_zv6Z-o,3122
|
|
230
230
|
bmcgo/tasks/task_buildgppbin.py,sha256=epBxxrYFPgoTzpBgPzSRXcUs-ia_BJWsLGflylEJS7I,6614
|
|
@@ -252,7 +252,7 @@ bmcgo/utils/json_validator.py,sha256=_k5wU78wfYGrzvSDaqOEtT4otgKUjquVhZNpVf2PW_c
|
|
|
252
252
|
bmcgo/utils/mapping_config_patch.py,sha256=_gKfZnrvsLPgHn1yXhEJRVTAeuGpeGD9T-Pqyw5Ydys,16827
|
|
253
253
|
bmcgo/utils/merge_csr.py,sha256=JNxHCfW1au84WQshdz0aQy8wMTEOHonjQT3s6LjlZN4,4580
|
|
254
254
|
bmcgo/utils/perf_analysis.py,sha256=fh6lV9AAKVhpPkGPwAJ8EWfGfUoHjqGYQxrvc32Xiac,4767
|
|
255
|
-
bmcgo/utils/tools.py,sha256=
|
|
255
|
+
bmcgo/utils/tools.py,sha256=NrYd4bNzRiBGu7FklN6PT1gj-sdqUWB_lj11Q7TjI8Y,32480
|
|
256
256
|
bmcgo/utils/installations/README.md,sha256=hKXnFYmeHEuROFMFE-vzlGLSHg71bei5ZYwyYZphWNk,2
|
|
257
257
|
bmcgo/utils/installations/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
258
258
|
bmcgo/utils/installations/base_installer.py,sha256=3UZiKWoa41ygRbLD3QsE2FTp-VFp79V0I53QLRIf4E8,5902
|
|
@@ -264,8 +264,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
|
|
|
264
264
|
bmcgo/utils/installations/install_plans/studio.yml,sha256=APR3GM-3Q11LFfe8vh7t3LztDn4LLEpNHRUNjkaVekA,143
|
|
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.24.dist-info/METADATA,sha256=aVekPJxRxrfTvjLNpuaqdu3ziQW4GxLomcFhfw0zX8Q,1010
|
|
268
|
+
openubmc_bingo-0.6.24.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.24.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.24.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|