58 Star 122 Fork 1.4K

OpenHarmony/build

 / 详情

为方便调试默认编译root版本

已完成
需求 成员
创建于  
2022-12-01 20:20

【需求价值】:
为方便调试默认编译root版本

【需求描述】:
为方便调试默认编译root版本

【方案描述】:
build_variant库上默认是root版本:
切换编译参数:--build-variant=$val,val可选user或root
对应gn变量:build_variant
ohos.para默认值:
const.secure=0
const.debuggable=1
eg: 切换user版本
./build.sh --product-name rk3568 --build-variant=user --ccache

device_type默认是default:
切换编译参数:--device-type=$val,val根据设备需要选取。
对应gn变量:device_type
ohos.para默认值:
const.product.devicetype=default
const.build.characteristics=default
注:const.build.characteristics后续会被淘汰,统一使用const.product.devicetype
eg: 切换phone
./build.sh --product-name rk3568 --device-type=phone --ccache

【配套文档】:

【验收标准】:

评论 (0)

chenmudan 创建了需求 2年前
chenmudan 任务状态待办的 修改为已确认 2年前
chenmudan 修改了描述 2年前
chenmudan 修改了描述 2年前
chenmudan 修改了描述 2年前
chenmudan 修改了描述 2年前
chenmudan 修改了描述 2年前
lubinglun 通过合并 Pull Request !1498: modified build_variant user to root任务状态已确认 修改为已完成 2年前
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
chenmudan-chenmudan
1
https://gitee.com/openharmony/build.git
git@gitee.com:openharmony/build.git
openharmony
build
build

搜索帮助