openubmc-bingo 0.6.17__py3-none-any.whl → 0.6.21__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/cli/cli.py +8 -1
- bmcgo/tasks/task.py +7 -4
- bmcgo/tasks/task_build_conan.py +6 -8
- bmcgo/utils/fetch_component_code.py +2 -0
- {openubmc_bingo-0.6.17.dist-info → openubmc_bingo-0.6.21.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.17.dist-info → openubmc_bingo-0.6.21.dist-info}/RECORD +10 -10
- {openubmc_bingo-0.6.17.dist-info → openubmc_bingo-0.6.21.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.17.dist-info → openubmc_bingo-0.6.21.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.17.dist-info → openubmc_bingo-0.6.21.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
bmcgo/cli/cli.py
CHANGED
|
@@ -312,11 +312,18 @@ class Command(object):
|
|
|
312
312
|
studio_version = self._bmc_studio_version()
|
|
313
313
|
if studio_version:
|
|
314
314
|
log.info("bmc-studio 版本为: %s", studio_version)
|
|
315
|
+
|
|
316
|
+
def conan_init(self):
|
|
317
|
+
if misc.conan_v2():
|
|
318
|
+
tools.run_command("conan profile detect --force")
|
|
319
|
+
else:
|
|
320
|
+
tools.run_command("conan config init")
|
|
321
|
+
tools.run_command("conan config set general.revisions_enabled=1")
|
|
315
322
|
|
|
316
323
|
def _check_conan_profile(self):
|
|
317
324
|
profile_dir = os.path.join(tools.conan_home, "profiles")
|
|
318
325
|
if not os.path.isdir(profile_dir):
|
|
319
|
-
|
|
326
|
+
self.conan_init()
|
|
320
327
|
|
|
321
328
|
if misc.conan_v2():
|
|
322
329
|
bingo_profiles = "/usr/share/bingo/profiles_for_conan2"
|
bmcgo/tasks/task.py
CHANGED
|
@@ -54,7 +54,7 @@ class Task(Process):
|
|
|
54
54
|
# OPENUBMC_DEFAULT_VENDOR环境变量未设置时,使用openubmc
|
|
55
55
|
self.vendor = self.get_manufacture_config("base/vendor", misc.vendor())
|
|
56
56
|
os.environ["OPENUBMC_PRODUCT_VENDOR"] = self.vendor
|
|
57
|
-
self.
|
|
57
|
+
self.conan_install = os.path.join(self.config.build_path, "conan_install")
|
|
58
58
|
|
|
59
59
|
@property
|
|
60
60
|
def conan_home(self):
|
|
@@ -331,14 +331,17 @@ class Task(Process):
|
|
|
331
331
|
|
|
332
332
|
def _component_cust_action_v2(self, action: str):
|
|
333
333
|
profile, _ = self.get_profile_config()
|
|
334
|
-
for name in os.listdir(self.
|
|
335
|
-
path_dir = os.path.join(self.
|
|
334
|
+
for name in os.listdir(self.conan_install):
|
|
335
|
+
path_dir = os.path.join(self.conan_install, name)
|
|
336
|
+
cust = os.path.join(path_dir, "include", "customization.py")
|
|
337
|
+
if not os.path.isfile(cust):
|
|
338
|
+
continue
|
|
336
339
|
self.info(f"开始执行组件 {name} 定制化 {action},定制脚本 {path_dir}/include/customization.py")
|
|
337
340
|
post = ComponentPost(self.config, path_dir, profile)
|
|
338
341
|
post.post_work(os.getcwd(), action)
|
|
339
342
|
|
|
340
343
|
def _component_cust_action_v1(self, action: str):
|
|
341
|
-
conan_install =
|
|
344
|
+
conan_install = self.conan_install
|
|
342
345
|
|
|
343
346
|
# 优先处理rootfs定制化脚本
|
|
344
347
|
comps = ["rootfs"]
|
bmcgo/tasks/task_build_conan.py
CHANGED
|
@@ -333,8 +333,6 @@ class TaskClass(Task):
|
|
|
333
333
|
def update_path(self):
|
|
334
334
|
# conan source folder
|
|
335
335
|
self.conan_source = os.path.join(self.config.build_path, misc.community_name())
|
|
336
|
-
# conan install folder
|
|
337
|
-
self.conan_install = os.path.join(self.config.build_path, "conan_install")
|
|
338
336
|
# openubmc install folder
|
|
339
337
|
self.openubmc_ins_dir = os.path.join(self.conan_install, misc.community_name())
|
|
340
338
|
# openubmc top rootfs folder
|
|
@@ -964,19 +962,19 @@ class TaskClass(Task):
|
|
|
964
962
|
rootfs.package_folder = os.path.join(self.conan_install, misc.community_name())
|
|
965
963
|
self.graph_nodes[misc.community_name()] = rootfs
|
|
966
964
|
|
|
967
|
-
def
|
|
968
|
-
if os.path.isdir(self.customization_dir):
|
|
969
|
-
self.run_command(f"rm -rf {self.customization_dir}")
|
|
970
|
-
self.run_command(f"mkdir -p {self.customization_dir}")
|
|
965
|
+
def copy_component_include_dirs(self):
|
|
971
966
|
for name, node in self.graph_nodes.items():
|
|
967
|
+
if node.package_folder.startswith(self.conan_install):
|
|
968
|
+
continue
|
|
972
969
|
cust = os.path.join(node.package_folder, "include", "customization.py")
|
|
973
970
|
if not os.path.isfile(cust):
|
|
974
971
|
continue
|
|
975
|
-
|
|
972
|
+
comp_dir = os.path.join(self.conan_install, name)
|
|
973
|
+
shutil.copytree(node.package_folder, comp_dir)
|
|
976
974
|
|
|
977
975
|
def package_v2(self):
|
|
978
976
|
self.update_graph_nodes()
|
|
979
|
-
self.
|
|
977
|
+
self.copy_component_include_dirs()
|
|
980
978
|
self.run_command(f"sudo rm -rf {self.config.rootfs_path}")
|
|
981
979
|
os.makedirs(self.config.rootfs_path)
|
|
982
980
|
profile, _ = self.get_profile_config()
|
|
@@ -45,6 +45,8 @@ class FetchComponentCode:
|
|
|
45
45
|
def resolve_version_range(component_name, version_range):
|
|
46
46
|
cmd = f"conan info '{version_range}' --package-filter={component_name}/*" \
|
|
47
47
|
f" -r {misc.conan_remote()} --only None 2>/dev/null"
|
|
48
|
+
if misc.conan_v2():
|
|
49
|
+
cmd = f"conan graph info --requires='{version_range}' --filter {component_name}"
|
|
48
50
|
ret, output = subprocess.getstatusoutput(cmd)
|
|
49
51
|
output = output.strip()
|
|
50
52
|
if ret != 0 or not output:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256
|
|
1
|
+
bmcgo/__init__.py,sha256=Oam3SkOb8QiCRykhhHrp4EPrCj2Lo20xJkOI7vXC8p0,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
|
|
@@ -7,7 +7,7 @@ bmcgo/logger.py,sha256=rcMqJnyQ5Ag3k04KLEskrG8ZJ508OOU_JH4fMFiGOqQ,6644
|
|
|
7
7
|
bmcgo/misc.py,sha256=w0vzsD7uzrsxTly5Y1viLgYTKHhLP4sxa499XwbqHnU,6986
|
|
8
8
|
bmcgo/worker.py,sha256=OXz5Gam3pmZjgQeoGJrYy73ZrQszCOxk9X19nbeBI_A,15710
|
|
9
9
|
bmcgo/cli/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
10
|
-
bmcgo/cli/cli.py,sha256=
|
|
10
|
+
bmcgo/cli/cli.py,sha256=MY-DIvJ4q0roWfshZHkPaG1VGoWWrQcKDYx5ahE-IRg,27116
|
|
11
11
|
bmcgo/cli/config.conan2.yaml,sha256=SAtM_6_qOjZbkgUT5fzWbhbq4aWCayqE8o4xJ2vBRww,261
|
|
12
12
|
bmcgo/cli/config.yaml,sha256=tbnFhz2TTrl2-ALpHHujbXB1ymZpjGC4f0zTfqfUZfM,194
|
|
13
13
|
bmcgo/codegen/__init__.py,sha256=eplRBfR_obzVWMQtIeX1RRq6DOEezBx_l1EqcZYLRPM,775
|
|
@@ -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=X1CFVHIjS9ej9S3euZtb7yiMdTCizuLvXbgZntT_duo,18424
|
|
227
|
+
bmcgo/tasks/task_build_conan.py,sha256=o08zhFXvipn-8mTzNtlTYu3m_a2rNr9rRDvsNC0Raxg,49803
|
|
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
|
|
@@ -246,7 +246,7 @@ bmcgo/utils/combine_json_schemas.py,sha256=08JrAlLeo_JgUqzYcZNgSwJZPLfjbWVJ4esPP
|
|
|
246
246
|
bmcgo/utils/component_post.py,sha256=rTSMv36geI6rbm6ZFQenZfG0mn1nVPpdJqn7g8bYtKA,2330
|
|
247
247
|
bmcgo/utils/component_version_check.py,sha256=nKfav7EnJ_JWfCvH_SiyhhIapGXUzhFs1QvLb58MPBs,6266
|
|
248
248
|
bmcgo/utils/config.py,sha256=xCljGFk7m8IVsCSchJDAzollZEZyXoMDLIgqRMepL-I,49952
|
|
249
|
-
bmcgo/utils/fetch_component_code.py,sha256=
|
|
249
|
+
bmcgo/utils/fetch_component_code.py,sha256=WtPJ5h1nM87X6RicrAhMOJzOzh9A0jD3CbjPc4A-REo,11280
|
|
250
250
|
bmcgo/utils/install_manager.py,sha256=XMZUuIHm7_DWRdLV4dAevsyamQ6rt8lb_7OqGWzNBC8,4927
|
|
251
251
|
bmcgo/utils/json_validator.py,sha256=_k5wU78wfYGrzvSDaqOEtT4otgKUjquVhZNpVf2PW_c,7524
|
|
252
252
|
bmcgo/utils/mapping_config_patch.py,sha256=_gKfZnrvsLPgHn1yXhEJRVTAeuGpeGD9T-Pqyw5Ydys,16827
|
|
@@ -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.21.dist-info/METADATA,sha256=fd5aaiA7Dbttae0qPRFYfbNkBEtgm-gjWz_ycuHc_7o,1010
|
|
268
|
+
openubmc_bingo-0.6.21.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.21.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.21.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.21.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|