feat: syscap文件打包进系统镜像

【背景】系统system中需要相关syscap文件

【修改方案】
1. syscap文件打包进系统镜像

【影响】
对现有的产品编译不会有影响。

re#I4T7SL

Change-Id: I4aec251bb794b05361b5fc95c151853358c2d466
Signed-off-by: lnlan <lanleinan3@huawei.com>
This commit is contained in:
lnlan 2022-02-10 22:28:05 +08:00
parent 93bec381dd
commit 7239ccdb67

View File

@ -275,6 +275,23 @@ if (defined(ohos_lite)) {
part_name = "init"
}
ohos_prebuilt_etc("syscap.para") {
source =
"${preloader_output_dir}/${product_name}/system/etc/param/syscap.para"
module_install_dir = "etc/param/"
part_name = "init"
}
ohos_prebuilt_etc("syscap.json") {
source = "${preloader_output_dir}/${product_name}/system/etc/syscap.json"
part_name = "init"
}
ohos_prebuilt_etc("systemcapability.json") {
source = "${preloader_output_dir}/${product_name}/system/etc/SystemCapability.json"
part_name = "init"
}
group("init_etc") {
deps = [
":boot.group",
@ -286,6 +303,9 @@ if (defined(ohos_lite)) {
":ohos.para",
":ohos.para.dac",
":passwd",
":syscap.json",
":syscap.para",
":systemcapability.json",
]
}
}