Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Build Lite
提交
2f4ed0f1
B
Build Lite
项目概览
OpenHarmony
/
Build Lite
8 个月 前同步成功
通知
22
Star
24
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Build Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2f4ed0f1
编写于
1月 18, 2023
作者:
T
taiyi.pei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused verion 2 config support.
Signed-off-by:
N
taiyi.pei
<
peitaiyi@huawei.com
>
上级
8ff25ff7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
24 deletion
+1
-24
hb_internal/common/config.py
hb_internal/common/config.py
+0
-9
hb_internal/common/product.py
hb_internal/common/product.py
+1
-14
hb_internal/preloader/preloader.py
hb_internal/preloader/preloader.py
+0
-1
未找到文件。
hb_internal/common/config.py
浏览文件 @
2f4ed0f1
...
...
@@ -304,15 +304,6 @@ class Config(metaclass=Singleton):
f
'Invalid built-in product path:
{
_built_in_product_path
}
'
)
return
_built_in_product_path
@
property
def
built_in_device_path
(
self
):
_built_in_device_path
=
os
.
path
.
join
(
self
.
root_path
,
'productdefine/common/device'
)
if
not
os
.
path
.
isdir
(
_built_in_device_path
):
raise
OHOSException
(
f
'Invalid built-in product path:
{
_built_in_device_path
}
'
)
return
_built_in_device_path
@
property
def
build_tools_path
(
self
):
try
:
...
...
hb_internal/common/product.py
浏览文件 @
2f4ed0f1
...
...
@@ -131,20 +131,7 @@ class Product():
config
=
Config
()
version
=
info
.
get
(
'version'
,
'3.0'
)
if
version
==
'2.0'
:
device_json
=
os
.
path
.
join
(
config
.
built_in_device_path
,
f
'
{
info
[
"product_device"
]
}
.json'
)
device_info
=
read_json_file
(
device_json
)
return
{
'board'
:
device_info
.
get
(
'device_name'
),
'kernel'
:
device_info
.
get
(
'kernel_type'
,
'linux'
),
'kernel_version'
:
device_info
.
get
(
'kernel_version'
),
'company'
:
device_info
.
get
(
'device_company'
),
'board_path'
:
device_info
.
get
(
'device_build_path'
),
'target_cpu'
:
device_info
.
get
(
'target_cpu'
),
'target_os'
:
device_info
.
get
(
'target_os'
)
}
elif
version
==
'3.0'
:
if
version
==
'3.0'
:
device_company
=
info
.
get
(
'device_company'
)
board
=
info
.
get
(
'board'
)
_board_path
=
info
.
get
(
'board_path'
)
...
...
hb_internal/preloader/preloader.py
浏览文件 @
2f4ed0f1
...
...
@@ -488,7 +488,6 @@ class Dirs:
self
.
built_in_product_dir
=
config
.
built_in_product_path
self
.
productdefine_dir
=
os
.
path
.
join
(
self
.
source_root_dir
,
'productdefine/common'
)
self
.
built_in_device_dir
=
config
.
built_in_device_path
self
.
built_in_base_dir
=
os
.
path
.
join
(
self
.
productdefine_dir
,
'base'
)
# Configs of vendor specified products are stored in
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录