1 如何下载xr806鸿蒙代码并编译? - HarmonyOS技术社区 - 电子技术论坛 - 广受欢迎的专业电子论坛 - 德赢Vwin官网

[问答]如何下载xr806鸿蒙代码并编译?

阅读量0
0
4
  下载命令
  mkdir xr806_openharmony
  cd xr806_openharmony
  repo init -u ssh://git@gitee.com/openharmony-sig/manifest.git -b OpenHarmony_1.0.1_release --no-repo-verify -m devboard_xr806.xml
  repo sync -c
  //下载部分大容量二进制文件
  repo forall -c ‘git lfs pull’
  下载中
  PDC-XRseries@AwExdroid94:~/workspace/chenkunyao/xr806_openharmony2$ repo init -u ssh://git@gitee.com/openharmony-sig/manifest.git -b OpenHarmony_1.0.1_release --no-repo-verify -m devboard_xr806.xml
  remote: Enumerating objects: 7031, done.
  remote: Counting objects: 100% (7031/7031), done.
  remote: Compressing objects: 100% (3676/3676), done.
  remote: Total 7031 (delta 4541), reused 5422 (delta 3281)
  Receiving objects: 100% (7031/7031), 3.04 MiB | 7.14 MiB/s, done.
  Resolving deltas: 100% (4541/4541), done.
  repo: warning: verification of repo code has been disabled;
  repo will not be able to verify the integrity of itself.
  Downloading manifest from ssh://git@gitee.com/openharmony-sig/manifest.git
  remote: Enumerating objects: 181, done.
  remote: Counting objects: 100% (181/181), done.
  remote: Compressing objects: 100% (136/136), done.
  remote: Total 274 (delta 89), reused 94 (delta 45), pack-reused 93
  下载大的二进制文件
  repo forall -c ‘git lfs pull’
  Git LFS: (0 of 2 files) 0 B / 3.82 MB
  Git LFS: (0 of 2 files) 0 B / 3.82 MB
  Git LFS: (0 of 2 files) 0 B / 3.82 MB
  Git LFS: (0 of 2 files) 51.69 KB / 3.82 MB
  Git LFS: (0 of 2 files) 691.23 KB / 3.82 MB
  Git LFS: (1 of 2 files) 2.17 MB / 3.82 MB
  Git LFS: (1 of 2 files) 2.52 MB / 3.82 MB
  Git LFS: (1 of 2 files) 3.08 MB / 3.82 MB
  Git LFS: (1 of 2 files) 3.79 MB / 3.82 MB
  Git LFS: (2 of 2 files) 3.82 MB / 3.82 MB
  下载编译工具链
  根据自己的编译PC选择对应的编译工具链,我的PC是x86 linux的,所以选择gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
  
  2.1
  解压出来放到源码的根目录的tool下
  tar -jxvf gcc-arm-none-eabi-10-2020-q4-major-src.tar.bz2
  2.2
  改编译工具链路径
  
  改成
  ~/workspace/chenkunyao/xr806_openharmony2/tool/gcc-arm-none-eabi-10-2020-q4-major
  PDC-XRseries@AwExdroid94:~/workspace/chenkunyao/xr806_openharmony2/device/xradio/xr806/liteos_m$ git diff 。
  diff --git a/xr806/liteos_m/config.gni b/xr806/liteos_m/config.gni
  index 85878dc..08718a9 100755
  --- a/xr806/liteos_m/config.gni
  +++ b/xr806/liteos_m/config.gni
  @@ -34,7 +34,7 @@ board_toolchain = “arm-none-eabi-gcc”
  board_toolchain_path = “”
  # Compiler prefix.
  -board_toolchain_prefix = “~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-”
  +board_toolchain_prefix = “~/workspace/chenkunyao/xr806_openharmony2/tool/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-”
  # Compiler type, “gcc” or “clang”。
  board_toolchain_type = “gcc”
  @@ -95,4 +95,4 @@ storage_type = “”
  asmflags = [
  “-D__FPU_PRESENT=1U”,
  “-D__FPU_USED=1U”
  xr_skylarks里的gcc
  PDC-XRseries@AwExdroid94:~/workspace/chenkunyao/xr806_openharmony2/device/xradio/xr806/xr_skylark$ git diff gcc.mk
  diff --git a/xr806/xr_skylark/gcc.mk b/xr806/xr_skylark/gcc.mk
  index 0512969..dbc908c 100755
  --- a/xr806/xr_skylark/gcc.mk
  +++ b/xr806/xr_skylark/gcc.mk
  @@ -5,7 +5,7 @@
  # ----------------------------------------------------------------------------
  # cross compiler
  # ----------------------------------------------------------------------------
  -CC_DIR := ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin
  +CC_DIR := ~/workspace/chenkunyao/xr806_openharmony2/tool/gcc-arm-none-eabi-10-2020-q4-major/bin
  CC_PREFIX := $(CC_DIR)/arm-none-eabi-
  AS := $(CC_PREFIX)as
  编译成功
  

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表德赢Vwin官网 网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友