AMD Ryzen系统调试工具终极指南:解锁处理器性能的秘密
2026/6/7 3:03:56
环境预设置
代码拉取
gitclone https://github.com/project-chip/connectedhomeip.gitcdconnectedhomeip切换分支
gitcheckout v1.4.2-branch拉取仓库中的submodule
gitsubmodule update--init--recursive该命令会拉取所有平台下的所有submodule,较为耗时,一般仅推荐拉取需要的平台,即
# 这一步会拉取Linux平台的依赖子模块python3 scripts/checkout_submodules.py--shallow--platformlinux设置编译环境(这里建议使用Python 3.11,否则可能失败)
sourcescripts/activate.sh交叉编译
设置环境变量SYSROOT_AARCH64
exportSYSROOT_AARCH64=${buildroot}/output/${plt}/host/aarch64-buildroot-linux-gnu/sysroot编译
python3 scripts/build/build_examples.py--targetlinux-arm64-light build