提交 c5a45081 编写于 作者: c00244171's avatar c00244171

fixed 9b78e13a from https://gitee.com/chenmudan/startup_init_lite/pulls/1595

add customization of const.debuggable and const.build.characteristics
issue: https://gitee.com/openharmony/build/issues/I6478USigned-off-by: c00244171's avatarchenmudan <chenmudan@huawei.com>

Change-Id: I2461f7d161de41f76bda856c056a32b13bad8912
上级 cfa2abe5
......@@ -119,8 +119,26 @@ if (defined(ohos_lite)) {
]
part_name = "init"
subsystem_name = "startup"
extra_paras = []
if (target_cpu == "arm64") {
extra_paras = [ "const.product.cpu.abilist=arm64-v8a" ]
extra_paras += [ "const.product.cpu.abilist=arm64-v8a" ]
}
if (build_variant == "user") {
extra_paras += [
"const.secure=1",
"const.debuggable=0",
]
} else if (build_variant == "root") {
extra_paras += [
"const.secure=0",
"const.debuggable=1",
]
}
if (device_type != "default") {
extra_paras += [
"const.product.devicetype=${device_type}",
"const.build.characteristics=${device_type}",
]
}
module_install_dir = "etc/param"
}
......
......@@ -13,7 +13,7 @@
const.actionable_compatible_property.enabled=false
const.postinstall.fstab.prefix=/system
const.secure=1
const.secure=0
security.perf_harden=1
const.allow.mock.location=0
const.debuggable=1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册