已关闭
feat(nearlink_dk_3863_xts_minimal): BUILD_BT gate to release the SLE stack (SLE-only minimal form) #1726
feat(nearlink_dk_3863_xts_minimal): BUILD_BT gate to release the SLE stack (SLE-only minimal form) #1726
已关闭
hwlwq创建于 9月8日关闭于 23 天前
hwlwq
hwlwq
9月8日

特性概述

为 nearlink_dk_3863_xts_minimal 增加 BUILD_BT 环境变量门控(GN arg build_bt → env BUILD_BT=1),支持从"全砍协议栈"的 minimal 形态一键放行星闪 SLE 栈(bth 主机栈 + btc controller + 依赖组件 + sle_uuid_server 验收样例),形成 SLE-only minimal 形态——此前上游只有"全砍"(无连接)与"全留"(ws63-liteos-app 全协议栈)两个极端。

默认关闭时与上游行为逐字节零漂移(双向交替构建实测)。

放行的完整依赖集(8 轮构建迭代剥出,预编译 .a 依赖只能构建暴露)

  • 组件:bt_host/bth_gle/bt_app/bg_common/bth_sdk/bgtp/bt_at + security_unified + nv/nv_ws63/nv_zdiag_ws63 + algorithm + mips/hal_mips
  • defines:CONFIG_NV_SUPPORT_SINGLE_CORE_SYSTEM / BTH_TASK_EXIST / BGLE_TASK_EXIST(minimal 整体替换 defines 时丢失的 stock 宏)
  • Kconfig:NV=y、PARTITION=y 放开 + 样例两级 choice 对称 append/teardown 机制(append_kconfig_lines():modify 只能改已有行,choice 条目需追加且门控切换必须对称)

SLE_TRIM 优化(BUILD_BT 时自动注入)

  • 15 个 -Wl,--wrap 切断 BLE/AT 分发链入口(stub 在 device_soc 侧样例内,见配对 PR)
  • 预期收益 -105KB Flash(587,968 → 481,472B 实测)

实测数据(WS63 真机)

形态 bin Flash 占用
上游 minimal(无连接) 139,968B 6.6%
BUILD_BT=1(本特性) 587,968B 28.0%
+ SLE_TRIM(配对 device_soc PR) 481,472B 22.9%
标准产品(全协议栈)参照 1,324,288B 63.1%
  • 硬件验收:L1(栈初始化)/L2(广播运行 announce state:00)通过;与 XTS 组合 16 套件 188 用例 100% 零重启
  • 门控对称性:BT-on/BT-off 双向交替构建零漂移验证

依赖说明

需配对 PR(device_soc_hisilicon):build_bt gn arg、组件 cmake 的 SLE_TRIM 门控、样例 wrap stubs、wifi_pkt_ram 回收——无该 PR 时本 PR 仅实现"全量放行"(SLE_TRIM 增强缺失但不影响功能)。

commit 说明

系列保留 10 个迭代 commit(B1-2 至 B2-1v5):预编译栈依赖是逐轮构建暴露的,commit 边界即依赖边界,方便 review 按轮次对照。

Co-Authored-By: Agent

likedislike
当前Pull Request已关闭, 关闭人@openharmony_dcp
openharmony_ciopenharmony_ci成员
9月8日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
9月8日 评论:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态。

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理。

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:

likedislike
openharmony_ciopenharmony_ci成员
9月8日 添加了label:dco检查失败
hwlwqhwlwq
9月10日 强制推送  10 个提交:e83bd0f1-feat: make BUILD_BT env-driven to release SLE stack (B1),fc7c3980-fix(B1-2): add missing SLE link deps and kconfig append mechanism,297b4e75-fix(B1-4): restore defines dropped by wholesale replacement,9353ae1c-fix(B1-5): drop CONFIG_OTA_UPDATE_SUPPORT from restored defines,94b881fc-fix(B1-6): add mips/hal_mips for prebuilt bt host reference,25634d16-fix(B1-7): symmetric sample kconfig teardown for BT-off builds,d89170a0-fix(B1-8): full-symmetry sample kconfig setup (modify flip + append),9d34b8da-feat(B2-1): inject SLE_TRIM define under BUILD_BT,b5f4e6bb-feat(B2-1v3): inject 14 -Wl,--wrap flags under BUILD_BT,ed071eb1-feat(B2-1v5): wrap uapi_at_bt_register_cmd (BT AT subtree, ~2KB)
hwlwq
hwlwq
9月10日 评论:

check dco

likedislike
openharmony_ci
openharmony_ci成员
9月10日 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接。


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
9月10日 删除了label:dco检查失败
openharmony_ciopenharmony_ci成员
9月10日 添加了label:dco检查成功
openharmony_ci
openharmony_ci成员
9月10日 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接。


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_dcp
openharmony_dcp成员
28 天前 评论:

您好, @weixin_46033862 该PR需要您响应,已过去25天未响应,请根据检视意见进行修改,如5天内未响应检视意见,此PR会被自动关闭。关闭后的PR,如有需要,您可以自行打开该PR。

likedislike
openharmony_dcp
openharmony_dcp成员
23 天前 评论:

您的PR超过一个月未合入,已经被自动关闭,如有需要您可以重新提交代码进行贡献。

likedislike
openharmony_dcpopenharmony_dcp成员
23 天前 关闭了 pull request