本文介绍: 玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 编译构建及此过程中的踩坑填坑(4)

接前一篇文章:玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 编译构建及此过程中的踩坑填坑(3)

上一回重走OpenHarmony的编译构建流程,完成了第1步——安装依赖工具。本回继续往下进行。

2. 获取标准系统源码

这一步和之前并无不同,参考:玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 代码下载(2)

(1)前提条件

1)注册码云gitee账号

参考:码云gitee怎样注册-git-PHP中文网

2)注册码云SSH公钥,请参考码云帮助中心(Gitee 帮助中心 – Gitee.com

参考:码云(gitee)配置SSH密钥

由于笔者在前几年注册过,因此无需再次注册。

3)安装git客户端和git-lfs并配置用户信息

git config –global user.name “yourname”
git config –global user.email “your-email-address”
git config –global credential.helper store

实际命令及结果如下(由于涉及隐私,因此以xxx代表实际的用户名和邮箱地址):

$ git config --global user.name "xxx"
$
 
$ git config --global user.email "xxx@xxx.com"
$
 
$ git config --global credential.helper store
$ 

4)安装码云repo工具

可以执行如下命令:

curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 >/usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变中

chmod a+x /usr/local/bin/repo
pip3 install -i Simple index requests

各步骤实际命令及结果如下:

$ sudo chmod 777 /usr/local/bin/
[sudo] password for ph: 
$ ls -l /usr/local/
total 32
drwxrwxrwx 2 root root 4096  8月  8 06:52 bin
drwxr-xr-x 2 root root 4096  8月  8 06:52 etc
drwxr-xr-x 2 root root 4096  8月  8 06:52 games
drwxr-xr-x 2 root root 4096  8月  8 06:52 include
drwxr-xr-x 3 root root 4096  8月  8 06:52 lib
lrwxrwxrwx 1 root root    9  1月  5 00:57 man -> share/man
drwxr-xr-x 2 root root 4096  8月  8 06:52 sbin
drwxr-xr-x 7 root root 4096  8月  8 06:55 share
drwxr-xr-x 2 root root 4096  8月  8 06:52 src
$ curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo
$ 
$ chmod a+x /usr/local/bin/repo
$ 
$ pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.25.1)

(2)获取各版本源码操作步骤

1)下载4.0-Release版本代码

repo init -u git@gitee.com:bearkey/manifest.git -b bearkey-bq3588c-4.0release –no-repo-verify
repo sync -c
repo forall -c ‘git lfs pull’

  • 通过repo + https下载

repo init -u bearkey/manifest -b bearkey-bq3588c-4.0release –no-repo-verify
repo sync -c
repo forall -c ‘git lfs pull’

这里笔者选择后一种方法“通过repo + https下载”,各步骤实际命令及结果如下:

  • 新建目录并进入(可选)

新建一个目录(文件夹),以存放OpenHarmony源码。

$ mkdir OpenHarmony_Source
$ ls
Desktop  Documents  Downloads  Music  OpenHarmony_Source  Pictures  Public  snap  Templates  Videos

进入此目录。

$ cd OpenHarmony_Source/
~/OpenHarmony_Source$ ls
  • 创建软链接
$ sudo ln -s /usr/bin/python3 /usr/bin/python
$ 
$ ls /usr/bin/python*
/usr/bin/python  /usr/bin/python3  /usr/bin/python3.10  /usr/bin/python3.10-config  /usr/bin/python3-config  /usr/bin/python3-futurize  /usr/bin/python3-pasteurize
  • repo init
$ repo init -u https://gitee.com/bearkey/manifest.git -b bearkey-bq3588c-4.0release --no-repo-verify
Downloading Repo source from https://gitee.com/oschina/repo.git
remote: Enumerating objects: 9003, done.
remote: Counting objects: 100% (3098/3098), done.
remote: Compressing objects: 100% (985/985), done.
remote: Total 9003 (delta 2183), reused 2998 (delta 2093), pack-reused 5905
repo: warning: verification of repo code has been disabled;
repo will not be able to verify the integrity of itself.

Downloading manifest from https://gitee.com/bearkey/manifest.git
remote: Enumerating objects: 9988, done.        
remote: Counting objects: 100% (4453/4453), done.        
remote: Compressing objects: 100% (639/639), done.        
remote: Total 9988 (delta 3823), reused 3932 (delta 3357), pack-reused 5535        

Your identity is: phmatthaus <phmatthaus@163.com>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/ph/OpenHarmony_Source
  • repo sync
$ repo sync -c
remote: Enumerating objects: 51, done.        
remote: Counting objects: 100% (4/4), done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 51 (delta 0), reused 2 (delta 0), pack-reused 47        
remote: Enumerating objects: 137, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (8/8), done.        
remote: Enumerating objects: 1689, done.        
remote: Counting objects: 100% (128/128), done.        
remote: Compressing objects: 100% (44/44), done.        
remote: Enumerating objects: 1356, done.        
remote: Counting objects: 100% (25/25), done.        
remote: Compressing objects: 100% (6/6), done.        
Fetching projects:   0% (1/474) applications_camera_sample_communicationremote: Total 137 (delta 4), reused 5 (delta 3), pack-reused 126        
Fetching projects:   0% (2/474) applications_camera_screensaver_appremote: Total 1356 (delta 22), reused 19 (delta 19), pack-reused 1331        
Fetching projects:   0% (3/474) applications_sample_cameraremote: Enumerating objects: 809, done.        
remote: Enumerating objects: 122680, done.        
remote: Counting objects: 100% (4134/4134), done.        
remote: Compressing objects: 100% (272/272), done.        
remote: Total 809 (delta 0), reused 0 (delta 0), pack-reused 809        
remote: Enumerating objects: 1236, done.        
remote: Counting objects: 100% (6/6), done.        
remote: Compressing objects: 100% (5/5), done.        
Fetching projects:   0% (4/474) applications_admin_provisioningremote: Total 1236 (delta 1), reused 3 (delta 1), pack-reused 1230        
Fetching projects:   1% (5/474) applications_auth_widgetremote: Enumerating objects: 1446, done.        
remote: Counting objects: 100% (139/139), done.        
remote: Compressing objects: 100% (7/7), done.        
remote: Total 1446 (delta 133), reused 133 (delta 132), pack-reused 1307        
Fetching projects:   1% (6/474) applications_calendar_dataremote: Enumerating objects: 2444, done.        
remote: Total 2444 (delta 0), reused 0 (delta 0), pack-reused 2444        
Fetching projects:   1% (7/474) applications_callremote: Enumerating objects: 7571, done.        
remote: Counting objects: 100% (19/19), done.        
remote: Compressing objects: 100% (9/9), done.        
……
……
Fetching projects:  68% (324/474) third_party_iptablesremote: Enumerating objects: 42404, done.        
remote: Counting objects: 100% (107/107), done.        
remote: Compressing objects: 100% (50/50), done.        
remote: Total 42404 (delta 74), reused 69 (delta 57), pack-reused 42297        
remote: Total 18790 (delta 0), reused 0 (delta 0), pack-reused 18783        
Fetching projects:  68% (325/474) third_party_jerryscriptremote: Enumerating objects: 14399, done.        
remote: Total 14399 (delta 0), reused 0 (delta 0), pack-reused 14399        
Fetching projects:  68% (326/474) third_party_jinja2remote: Enumerating objects: 8735, done.        
remote: Counting objects: 100% (707/707), done.        
remote: Compressing objects: 100% (116/116), done.        
remote: Total 8735 (delta 678), reused 592 (delta 591), pack-reused 8028        
Fetching projects:  68% (327/474) third_party_jsframeworkremote: Enumerating objects: 2418, done.        
Fetching projects:  69% (328/474) third_party_icuremote: Enumerating objects: 460, done.        
remote: Counting objects: 100% (5/5), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 460 (delta 0), reused 2 (delta 0), pack-reused 455        
Fetching projects:  69% (329/474) third_party_jsoncppremote: Enumerating objects: 24393, done.        
remote: Total 2418 (delta 0), reused 0 (delta 0), pack-reused 2418        
Fetching projects:  69% (330/474) third_party_jsonremote: Enumerating objects: 7761, done.        
remote: Counting objects: 100% (6/6), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 7761 (delta 1), reused 2 (delta 1), pack-reused 7755        
Fetching projects:  69% (331/474) third_party_libbpfremote: Enumerating objects: 739, done.        
remote: Counting objects: 100% (8/8), done.        
remote: Total 739 (delta 7), reused 7 (delta 7), pack-reused 731        
Fetching projects:  70% (332/474) third_party_libcoapremote: Enumerating objects: 591, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Total 591 (delta 0), reused 0 (delta 0), pack-reused 590        
Fetching projects:  70% (333/474) third_party_libdrmremote: Enumerating objects: 455, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Total 455 (delta 0), reused 0 (delta 0), pack-reused 454        
Fetching projects:  70% (334/474) third_party_libevdevremote: Enumerating objects: 7569, done.        
remote: Total 7569 (delta 0), reused 0 (delta 0), pack-reused 7569        
Fetching projects:  70% (335/474) third_party_libexifremote: Enumerating objects: 545, done.        
remote: Total 545 (delta 0), reused 0 (delta 0), pack-reused 545        
Fetching projects:  70% (336/474) third_party_libffiremote: Enumerating objects: 11508, done.        
remote: Total 11508 (delta 0), reused 0 (delta 0), pack-reused 11508        
Fetching projects:  71% (337/474) third_party_libfuseremote: Enumerating objects: 660, done.        
remote: Counting objects: 100% (5/5), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 660 (delta 0), reused 0 (delta 0), pack-reused 655        
Fetching projects:  71% (338/474) third_party_libinputremote: Enumerating objects: 16328, done.        
Fetching projects:  71% (339/474) third_party_ffmpegremote: Enumerating objects: 12345, done.        
remote: Total 16328 (delta 0), reused 0 (delta 0), pack-reused 16328        
remote: Total 12345 (delta 0), reused 0 (delta 0), pack-reused 12345        
Fetching projects:  71% (341/474) third_party_libjpeg-turboremote: Enumerating objects: 3575, done.        
remote: Counting objects: 100% (59/59), done.        
remote: Compressing objects: 100% (3/3), done.        
remote: Enumerating objects: 75309, done.        
remote: Counting objects: 100% (14/14), done.        
remote: Compressing objects: 100% (13/13), done.        
remote: Total 3575 (delta 57), reused 56 (delta 56), pack-reused 3516        
Fetching projects:  72% (342/474) third_party_libphonenumberremote: Total 75309 (delta 1), reused 5 (delta 1), pack-reused 75295        
remote: Total 24393 (delta 0), reused 0 (delta 0), pack-reused 24393        
remote: Enumerating objects: 18047, done.        
remote: Counting objects: 100% (1091/1091), done.        
remote: Compressing objects: 100% (436/436), done.        
remote: Total 18047 (delta 687), reused 909 (delta 638), pack-reused 16956        
Fetching projects:  72% (344/474) third_party_grpcremote: Enumerating objects: 18311, done.        
remote: Total 18311 (delta 0), reused 0 (delta 0), pack-reused 18311        
remote: Enumerating objects: 574, done.        
remote: Counting objects: 100% (3/3), done.        
remote: Compressing objects: 100% (3/3), done.        
remote: Total 574 (delta 0), reused 0 (delta 0), pack-reused 571        
Fetching projects:  72% (346/474) third_party_libunwindremote: Enumerating objects: 1250, done.        
remote: Counting objects: 100% (76/76), done.        
remote: Compressing objects: 100% (9/9), done.        
remote: Enumerating objects: 44184, done.        
remote: Counting objects: 100% (4/4), done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 1250 (delta 73), reused 67 (delta 67), pack-reused 1174        
Fetching projects:  73% (347/474) third_party_libuvremote: Enumerating objects: 4221, done.        
remote: Counting objects: 100% (2/2), done.        
remote: Compressing objects: 100% (2/2), done.        
Fetching projects:  73% (348/474) third_party_libpngremote: Total 4221 (delta 1), reused 0 (delta 0), pack-reused 4219        
Fetching projects:  73% (349/474) third_party_libxml2remote: Enumerating objects: 2517, done.        
remote: Counting objects: 100% (367/367), done.        
remote: Compressing objects: 100% (3/3), done.        
remote: Total 44184 (delta 0), reused 0 (delta 0), pack-reused 44180        
remote: Total 2517 (delta 365), reused 364 (delta 364), pack-reused 2150        
remote: Enumerating objects: 15688, done.        
remote: Counting objects: 100% (9/9), done.        
remote: Compressing objects: 100% (9/9), done.        
Fetching projects:  73% (350/474) third_party_littlefsremote: Enumerating objects: 1129, done.        
remote: Counting objects: 100% (22/22), done.        
remote: Compressing objects: 100% (9/9), done.        
remote: Total 15688 (delta 0), reused 2 (delta 0), pack-reused 15679        
Fetching projects:  74% (351/474) third_party_ltpremote: Total 1129 (delta 14), reused 13 (delta 13), pack-reused 1107        
Fetching projects:  74% (353/474) third_party_libwebsocketsremote: Enumerating objects: 454, done.        
remote: Total 454 (delta 0), reused 0 (delta 0), pack-reused 454        
remote: Enumerating objects: 83, done.        
remote: Counting objects: 100% (1/1), done.        
Fetching projects:  74% (354/474) third_party_lz4remote: Total 83 (delta 0), reused 0 (delta 0), pack-reused 82        
remote: Enumerating objects: 3833, done.        
remote: Counting objects: 100% (20/20), done.        
Fetching projects:  75% (356/474) third_party_libabigailremote: Total 3833 (delta 19), reused 19 (delta 19), pack-reused 3813        
remote: Enumerating objects: 64, done.        
remote: Counting objects: 100% (64/64), done.        
remote: Compressing objects: 100% (58/58), done.        
Fetching projects:  75% (357/474) third_party_mbedtlsremote: Enumerating objects: 233, done.        
remote: Enumerating objects: 141, done.        
remote: Counting objects: 100% (5/5), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Enumerating objects: 1350726, done.        
remote: Counting objects: 100% (97897/97897), done.        
remote: Compressing objects: 100% (18102/18102), done.        
remote: Total 233 (delta 0), reused 0 (delta 0), pack-reused 233        
Fetching projects:  75% (358/474) third_party_mkshremote: Total 141 (delta 0), reused 0 (delta 0), pack-reused 136        
Fetching projects:  75% (359/474) third_party_mtdevremote: Enumerating objects: 52349, done.        
remote: Counting objects: 100% (397/397), done.        
remote: Compressing objects: 100% (21/21), done.        
remote: Enumerating objects: 43071, done.        
remote: Counting objects: 100% (92/92), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 52349 (delta 382), reused 376 (delta 376), pack-reused 51952        
remote: Total 43071 (delta 88), reused 87 (delta 87), pack-reused 42979        
Fetching projects:  75% (360/474) third_party_muslremote: Enumerating objects: 299, done.        
remote: Total 299 (delta 0), reused 0 (delta 0), pack-reused 299        
Fetching projects:  76% (361/474) third_party_ninjaremote: Enumerating objects: 22345, done.        
remote: Counting objects: 100% (13/13), done.        
remote: Compressing objects: 100% (5/5), done.        
Fetching projects:  76% (362/474) third_party_nghttp2remote: Enumerating objects: 23713, done.        
remote: Counting objects: 100% (1430/1430), done.        
remote: Compressing objects: 100% (69/69), done.        
remote: Total 23713 (delta 1389), reused 1361 (delta 1361), pack-reused 22283        
Fetching projects:  76% (363/474) third_party_ntfs-3gremote: Total 22345 (delta 9), reused 8 (delta 8), pack-reused 22332        
remote: Enumerating objects: 1540, done.        
Fetching projects:  76% (364/474) third_party_noderemote: Enumerating objects: 210, done.        
remote: Counting objects: 100% (6/6), done.        
remote: Compressing objects: 100% (2/2), done.        
remote: Total 210 (delta 5), reused 4 (delta 4), pack-reused 204        
Fetching projects:  77% (365/474) third_party_openslesremote: Enumerating objects: 1041, done.        
remote: Counting objects: 100% (145/145), done.        
remote: Compressing objects: 100% (8/8), done.        
remote: Total 1041 (delta 140), reused 137 (delta 137), pack-reused 896        
Fetching projects:  77% (366/474) third_party_opencl-headersremote: Enumerating objects: 37754, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (9/9), done.        
remote: Total 1540 (delta 0), reused 0 (delta 0), pack-reused 1540        
Fetching projects:  77% (367/474) third_party_openglesremote: Enumerating objects: 93, done.        
remote: Total 93 (delta 0), reused 0 (delta 0), pack-reused 93        
Fetching projects:  77% (368/474) third_party_openmaxremote: Enumerating objects: 261058, done.        
remote: Counting objects: 100% (170/170), done.        
remote: Compressing objects: 100% (42/42), done.        
remote: Total 64 (delta 6), reused 33 (delta 4), pack-reused 0        
Fetching projects:  77% (369/474) third_party_mindsporeremote: Total 37754 (delta 3), reused 8 (delta 2), pack-reused 37743        
remote: Enumerating objects: 994, done.        
remote: Counting objects: 100% (15/15), done.        
remote: Compressing objects: 100% (14/14), done.        
remote: Total 994 (delta 2), reused 4 (delta 1), pack-reused 979        
Fetching projects:  78% (370/474) third_party_optimized_routinesremote: Enumerating objects: 578, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Total 578 (delta 0), reused 0 (delta 0), pack-reused 577        
Fetching projects:  78% (372/474) third_party_openh264remote: Enumerating objects: 12990, done.        
remote: Counting objects: 100% (9/9), done.        
remote: Compressing objects: 100% (8/8), done.        
remote: Enumerating objects: 4818, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (11/11), done.        
remote: Total 4818 (delta 1), reused 2 (delta 0), pack-reused 4807        
Fetching projects:  78% (373/474) third_party_poptremote: Total 12990 (delta 1), reused 3 (delta 1), pack-reused 12981        
remote: Enumerating objects: 2924, done.        
remote: Total 2924 (delta 0), reused 0 (delta 0), pack-reused 2924        
Fetching projects:  79% (375/474) third_party_pcre2remote: Enumerating objects: 70690, done.        
remote: Counting objects: 100% (50/50), done.        
remote: Compressing objects: 100% (44/44), done.        
remote: Total 1350726 (delta 81176), reused 93449 (delta 79577), pack-reused 1252829        
remote: Enumerating objects: 11276, done.        
remote: Counting objects: 100% (4/4), done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 261058 (delta 143), reused 128 (delta 128), pack-reused 260888        
remote: Total 70690 (delta 1), reused 43 (delta 0), pack-reused 70640        
remote: Total 11276 (delta 0), reused 1 (delta 0), pack-reused 11272        
Fetching projects:  79% (377/474) third_party_pulseaudioremote: Enumerating objects: 6318, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Total 6318 (delta 0), reused 0 (delta 0), pack-reused 6317        
Fetching projects:  79% (378/474) third_party_qrcodegenremote: Enumerating objects: 257, done.        
remote: Total 257 (delta 0), reused 0 (delta 0), pack-reused 257        
Fetching projects:  79% (379/474) third_party_re2remote: Enumerating objects: 992, done.        
remote: Total 992 (delta 0), reused 0 (delta 0), pack-reused 992        
Fetching projects:  80% (380/474) third_party_rust_aho-corasickremote: Enumerating objects: 445, done.        
remote: Total 445 (delta 0), reused 0 (delta 0), pack-reused 445        
Fetching projects:  80% (381/474) third_party_rust_attyremote: Enumerating objects: 266, done.        
remote: Total 266 (delta 0), reused 0 (delta 0), pack-reused 266        
Fetching projects:  80% (382/474) third_party_rust_autocfgremote: Enumerating objects: 26872, done.        
remote: Enumerating objects: 1192, done.        
remote: Total 1192 (delta 0), reused 0 (delta 0), pack-reused 1192        
Fetching projects:  80% (383/474) third_party_rust_bitflagsremote: Total 26872 (delta 0), reused 0 (delta 0), pack-reused 26872        
remote: Enumerating objects: 223, done.        
remote: Total 223 (delta 0), reused 0 (delta 0), pack-reused 223        
Fetching projects:  81% (385/474) third_party_rust_bindgenremote: Enumerating objects: 1649, done.        
remote: Total 1649 (delta 0), reused 0 (delta 0), pack-reused 1649        
Fetching projects:  81% (386/474) third_party_rust_clang-sysremote: Enumerating objects: 43913, done.        
remote: Enumerating objects: 3662, done.        
remote: Total 3662 (delta 0), reused 0 (delta 0), pack-reused 3662        
Fetching projects:  81% (387/474) third_party_rust_codespanremote: Total 43913 (delta 0), reused 0 (delta 0), pack-reused 43913        
remote: Enumerating objects: 18066, done.        
remote: Total 18066 (delta 0), reused 0 (delta 0), pack-reused 18066        
Fetching projects:  82% (389/474) third_party_opensslremote: Enumerating objects: 701, done.        
remote: Total 701 (delta 0), reused 0 (delta 0), pack-reused 701        
Fetching projects:  82% (391/474) third_party_rust_clapremote: Enumerating objects: 1368, done.        
remote: Enumerating objects: 144, done.        
remote: Total 144 (delta 0), reused 0 (delta 0), pack-reused 144        
Fetching projects:  82% (392/474) third_party_rust_foreign-typesremote: Enumerating objects: 673, done.        
remote: Total 1368 (delta 0), reused 0 (delta 0), pack-reused 1368        
Fetching projects:  82% (393/474) third_party_rust_env_loggerremote: Total 673 (delta 0), reused 0 (delta 0), pack-reused 673        
Fetching projects:  83% (394/474) third_party_rust_globremote: Enumerating objects: 257, done.        
remote: Total 257 (delta 0), reused 0 (delta 0), pack-reused 257        
Fetching projects:  83% (395/474) third_party_rust_heckremote: Enumerating objects: 341, done.        
remote: Total 341 (delta 0), reused 0 (delta 0), pack-reused 341        
Fetching projects:  83% (396/474) third_party_rust_humantimeremote: Enumerating objects: 1059, done.        
remote: Total 1059 (delta 0), reused 0 (delta 0), pack-reused 1059        
Fetching projects:  83% (397/474) third_party_rust_io-lifetimesremote: Enumerating objects: 141, done.        
remote: Total 141 (delta 0), reused 0 (delta 0), pack-reused 141        
Fetching projects:  83% (398/474) third_party_rust_is-terminalremote: Enumerating objects: 811, done.        
remote: Total 811 (delta 0), reused 0 (delta 0), pack-reused 811        
Fetching projects:  84% (399/474) third_party_rust_lazy-static.rsremote: Enumerating objects: 427, done.        
remote: Total 427 (delta 0), reused 0 (delta 0), pack-reused 427        
Fetching projects:  84% (400/474) third_party_rust_lazycellremote: Enumerating objects: 41194, done.        
remote: Enumerating objects: 1231, done.        
remote: Total 1231 (delta 0), reused 0 (delta 0), pack-reused 1231        
remote: Enumerating objects: 220, done.        
remote: Total 220 (delta 0), reused 0 (delta 0), pack-reused 220        
Fetching projects:  84% (402/474) third_party_rust_link-cplusplusremote: Enumerating objects: 3664, done.        
remote: Enumerating objects: 2452, done.        
remote: Total 2452 (delta 0), reused 0 (delta 0), pack-reused 2452        
remote: Total 3664 (delta 0), reused 0 (delta 0), pack-reused 3664        
Fetching projects:  85% (403/474) third_party_rust_logremote: Total 41194 (delta 0), reused 0 (delta 0), pack-reused 41194        
Fetching projects:  85% (404/474) third_party_rust_linux-raw-sysremote: Enumerating objects: 986, done.        
remote: Total 986 (delta 0), reused 0 (delta 0), pack-reused 986        
Fetching projects:  85% (405/474) third_party_rust_memchrremote: Enumerating objects: 626, done.        
remote: Total 626 (delta 0), reused 0 (delta 0), pack-reused 626        
Fetching projects:  85% (407/474) third_party_rust_libcremote: Enumerating objects: 667, done.        
remote: Enumerating objects: 13942, done.        
remote: Enumerating objects: 12657, done.        
remote: Total 13942 (delta 0), reused 0 (delta 0), pack-reused 13942        
remote: Total 12657 (delta 0), reused 0 (delta 0), pack-reused 12657        
Fetching projects:  86% (409/474) third_party_rust_nomremote: Enumerating objects: 4583, done.        
remote: Total 4583 (delta 0), reused 0 (delta 0), pack-reused 4583        
remote: Enumerating objects: 1604, done.        
Fetching projects:  86% (410/474) third_party_rust_num-traitsremote: Total 1604 (delta 0), reused 0 (delta 0), pack-reused 1604        
Fetching projects:  86% (411/474) third_party_rust_once_cellremote: Enumerating objects: 1197, done.        
remote: Total 1197 (delta 0), reused 0 (delta 0), pack-reused 1197        
Fetching projects:  86% (412/474) third_party_rust_os_str_bytesremote: Enumerating objects: 43, done.        
remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43        
Fetching projects:  87% (413/474) third_party_rust_peeking_take_whileremote: Enumerating objects: 2154, done.        
remote: Total 2154 (delta 0), reused 0 (delta 0), pack-reused 2154        
remote: Enumerating objects: 172, done.        
remote: Total 172 (delta 0), reused 0 (delta 0), pack-reused 172        
Fetching projects:  87% (415/474) third_party_rust_pin-project-literemote: Enumerating objects: 849, done.        
remote: Enumerating objects: 1196, done.        
remote: Total 849 (delta 0), reused 0 (delta 0), pack-reused 849        
remote: Total 1196 (delta 0), reused 0 (delta 0), pack-reused 1196        
Fetching projects:  87% (417/474) third_party_rust_proc-macro-errorremote: Total 667 (delta 0), reused 0 (delta 0), pack-reused 667        
remote: Enumerating objects: 2294, done.        
remote: Enumerating objects: 3422, done.        
remote: Total 2294 (delta 0), reused 0 (delta 0), pack-reused 2294        
remote: Total 3422 (delta 0), reused 0 (delta 0), pack-reused 3422        
Fetching projects:  88% (420/474) third_party_rust_proc-macro2remote: Enumerating objects: 6579, done.        
remote: Enumerating objects: 11746, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Enumerating objects: 286, done.        
remote: Total 286 (delta 0), reused 0 (delta 0), pack-reused 286        
Fetching projects:  88% (421/474) third_party_rust_rust-cexprremote: Total 11746 (delta 0), reused 0 (delta 0), pack-reused 11745        
remote: Total 6579 (delta 0), reused 0 (delta 0), pack-reused 6579        
remote: Enumerating objects: 472, done.        
remote: Total 472 (delta 0), reused 0 (delta 0), pack-reused 472        
Fetching projects:  89% (424/474) third_party_rust_rust-opensslremote: Enumerating objects: 80, done.        
remote: Total 80 (delta 0), reused 0 (delta 0), pack-reused 80        
Fetching projects:  89% (425/474) third_party_rust_rustc-hashremote: Enumerating objects: 13217, done.        
remote: Enumerating objects: 305, done.        
remote: Total 305 (delta 0), reused 0 (delta 0), pack-reused 305        
Fetching projects:  89% (426/474) third_party_rust_scopeguardremote: Total 13217 (delta 0), reused 0 (delta 0), pack-reused 13217        
remote: Enumerating objects: 23668, done.        
remote: Enumerating objects: 112, done.        
remote: Total 112 (delta 0), reused 0 (delta 0), pack-reused 112        
Fetching projects:  90% (428/474) third_party_rust_rustixremote: Enumerating objects: 1631, done.        
remote: Total 23668 (delta 0), reused 0 (delta 0), pack-reused 23668        
remote: Enumerating objects: 1062, done.        
remote: Total 1062 (delta 0), reused 0 (delta 0), pack-reused 1062        
remote: Total 1631 (delta 0), reused 0 (delta 0), pack-reused 1631        
Fetching projects:  90% (431/474) third_party_rust_serderemote: Enumerating objects: 439, done.        
remote: Enumerating objects: 19280, done.        
remote: Total 439 (delta 0), reused 0 (delta 0), pack-reused 439        
Fetching projects:  91% (432/474) third_party_rust_strsim-rsremote: Enumerating objects: 5164, done.        
remote: Total 5164 (delta 0), reused 0 (delta 0), pack-reused 5164        
Fetching projects:  91% (433/474) third_party_rust_termcolorremote: Enumerating objects: 13053, done.        
remote: Total 19280 (delta 0), reused 0 (delta 0), pack-reused 19280        
remote: Enumerating objects: 494, done.        
remote: Total 13053 (delta 0), reused 0 (delta 0), pack-reused 13053        
remote: Total 494 (delta 0), reused 0 (delta 0), pack-reused 494        
Fetching projects:  91% (436/474) third_party_rust_synremote: Enumerating objects: 215, done.        
remote: Total 215 (delta 0), reused 0 (delta 0), pack-reused 215        
Fetching projects:  92% (437/474) third_party_rust_unicode-widthremote: Enumerating objects: 256, done.        
remote: Total 256 (delta 0), reused 0 (delta 0), pack-reused 256        
Fetching projects:  92% (438/474) third_party_rust_version_checkremote: Enumerating objects: 568, done.        
remote: Total 568 (delta 0), reused 0 (delta 0), pack-reused 568        
Fetching projects:  92% (439/474) third_party_rust_which-rsremote: Enumerating objects: 24593, done.        
remote: Counting objects: 100% (17/17), done.        
remote: Enumerating objects: 3214, done.        
remote: Enumerating objects: 654277, done.        
remote: Counting objects: 100% (1022/1022), done.        
remote: Compressing objects: 100% (21/21), done.        
remote: Total 3214 (delta 0), reused 0 (delta 0), pack-reused 3214        
Fetching projects:  92% (440/474) third_party_spirv-headersremote: Enumerating objects: 36334, done.        
remote: Total 24593 (delta 16), reused 16 (delta 16), pack-reused 24576        
Fetching projects:  93% (441/474) third_party_selinuxremote: Total 36334 (delta 0), reused 0 (delta 0), pack-reused 36334        
remote: Enumerating objects: 338, done.        
remote: Total 338 (delta 0), reused 0 (delta 0), pack-reused 338        
Fetching projects:  93% (443/474) third_party_sqliteremote: Enumerating objects: 1223, done.        
remote: Counting objects: 100% (1/1), done.        
remote: Enumerating objects: 479000, done.        
remote: Counting objects: 100% (11864/11864), done.        
remote: Compressing objects: 100% (43/43), done.        
remote: Total 1223 (delta 0), reused 0 (delta 0), pack-reused 1222        
Fetching projects:  93% (444/474) third_party_toyboxremote: Enumerating objects: 206, done.        
remote: Counting objects: 100% (7/7), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 206 (delta 3), reused 6 (delta 2), pack-reused 199        
Fetching projects:  93% (445/474) third_party_tzdataremote: Enumerating objects: 5465, done.        
remote: Total 5465 (delta 0), reused 0 (delta 0), pack-reused 5465        
Fetching projects:  94% (446/474) third_party_unityremote: Enumerating objects: 139138, done.        
remote: Counting objects: 100% (4462/4462), done.        
remote: Compressing objects: 100% (116/116), done.        
Fetching projects:  94% (447/474) third_party_mesa3dremote: Enumerating objects: 2228, done.        
remote: Counting objects: 100% (11/11), done.        
remote: Compressing objects: 100% (10/10), done.        
remote: Total 2228 (delta 1), reused 7 (delta 1), pack-reused 2217        
Fetching projects:  94% (448/474) third_party_vulkan-headersremote: Enumerating objects: 19442, done.        
remote: Total 19442 (delta 0), reused 0 (delta 0), pack-reused 19442        
Fetching projects:  94% (449/474) third_party_vulkan-loaderremote: Enumerating objects: 648, done.        
remote: Counting objects: 100% (12/12), done.        
remote: Compressing objects: 100% (7/7), done.        
remote: Total 648 (delta 5), reused 5 (delta 5), pack-reused 636        
Fetching projects:  94% (450/474) third_party_weex-loaderremote: Enumerating objects: 4256, done.        
remote: Counting objects: 100% (570/570), done.        
remote: Compressing objects: 100% (10/10), done.        
remote: Total 4256 (delta 563), reused 560 (delta 560), pack-reused 3686        
Fetching projects:  95% (451/474) third_party_wpa_supplicantremote: Enumerating objects: 5295, done.        
remote: Counting objects: 100% (3/3), done.        
remote: Compressing objects: 100% (3/3), done.        
remote: Total 5295 (delta 2), reused 0 (delta 0), pack-reused 5292        
Fetching projects:  95% (452/474) third_party_zlibremote: Enumerating objects: 142, done.        
remote: Total 142 (delta 0), reused 0 (delta 0), pack-reused 142        
Fetching projects:  95% (453/474) vendor_alientekremote: Enumerating objects: 369, done.        
remote: Total 369 (delta 0), reused 0 (delta 0), pack-reused 369        
Fetching projects:  95% (454/474) vendor_asrmicroremote: Enumerating objects: 777, done.        
remote: Counting objects: 100% (14/14), done.        
remote: Compressing objects: 100% (11/11), done.        
remote: Total 777 (delta 5), reused 10 (delta 3), pack-reused 763        
Fetching projects:  95% (455/474) vendor_bearpiremote: Enumerating objects: 278, done.        
remote: Total 139138 (delta 4390), reused 4346 (delta 4346), pack-reused 134676        
remote: Total 278 (delta 0), reused 0 (delta 0), pack-reused 278        
Fetching projects:  96% (456/474) vendor_bekenremote: Enumerating objects: 2371, done.        
remote: Counting objects: 100% (371/371), done.        
remote: Compressing objects: 100% (48/48), done.        
remote: Total 2371 (delta 343), reused 323 (delta 323), pack-reused 2000        
Fetching projects:  96% (457/474) vendor_bestechnicremote: Enumerating objects: 624, done.        
remote: Total 624 (delta 0), reused 0 (delta 0), pack-reused 624        
Fetching projects:  96% (458/474) vendor_chipsearemote: Enumerating objects: 665, done.        
remote: Counting objects: 100% (7/7), done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 665 (delta 4), reused 3 (delta 3), pack-reused 658        
Fetching projects:  96% (459/474) vendor_goodixremote: Enumerating objects: 6513, done.        
remote: Counting objects: 100% (6513/6513), done.        
remote: Compressing objects: 100% (2564/2564), done.        
remote: Total 6513 (delta 3802), reused 6451 (delta 3747), pack-reused 0        
Fetching projects:  97% (460/474) vendor_hihoperemote: Enumerating objects: 10761, done.        
remote: Counting objects: 100% (250/250), done.        
remote: Compressing objects: 100% (79/79), done.        
remote: Total 654277 (delta 1011), reused 1001 (delta 1001), pack-reused 653255        
remote: Total 10761 (delta 210), reused 180 (delta 169), pack-reused 10511        
Fetching projects:  97% (461/474) vendor_hisiliconremote: Enumerating objects: 238, done.        
remote: Total 238 (delta 0), reused 0 (delta 0), pack-reused 238        
Fetching projects:  97% (462/474) vendor_hpmicroremote: Enumerating objects: 2869, done.        
remote: Total 2869 (delta 0), reused 0 (delta 0), pack-reused 2869        
Fetching projects:  97% (463/474) vendor_isoftstoneremote: Enumerating objects: 721, done.        
remote: Total 721 (delta 0), reused 0 (delta 0), pack-reused 721        
Fetching projects:  97% (464/474) vendor_kaihongremote: Enumerating objects: 1597, done.        
remote: Counting objects: 100% (5/5), done.        
remote: Compressing objects: 100% (5/5), done.        
remote: Total 1597 (delta 0), reused 1 (delta 0), pack-reused 1592        
Fetching projects:  98% (465/474) vendor_lockzhinerremote: Enumerating objects: 1989, done.        
remote: Total 1989 (delta 0), reused 0 (delta 0), pack-reused 1989        
Fetching projects:  98% (466/474) vendor_ohemuremote: Enumerating objects: 796, done.        
remote: Total 796 (delta 0), reused 0 (delta 0), pack-reused 796        
Fetching projects:  98% (467/474) vendor_openvalleyremote: Enumerating objects: 407, done.        
remote: Total 407 (delta 0), reused 0 (delta 0), pack-reused 407        
Fetching projects:  98% (468/474) vendor_oswareremote: Enumerating objects: 239, done.        
remote: Total 239 (delta 0), reused 0 (delta 0), pack-reused 239        
Fetching projects:  98% (469/474) vendor_talkwebremote: Enumerating objects: 659, done.        
remote: Total 659 (delta 0), reused 0 (delta 0), pack-reused 659        
Fetching projects:  99% (470/474) vendor_telinkremote: Enumerating objects: 7513, done.        
remote: Counting objects: 100% (748/748), done.        
remote: Compressing objects: 100% (16/16), done.        
remote: Total 7513 (delta 732), reused 732 (delta 732), pack-reused 6765        
Fetching projects:  99% (471/474) vendor_unionmanremote: Total 479000 (delta 11843), reused 11821 (delta 11821), pack-reused 467136        
Fetching projects: 100% (474/474), done.
Updating files: 100% (12798/12798), done.
Updating files: 100% (184/184), done.global_resource_management_liteUpdating files:  32% (60/184)
Updating files: 100% (2522/2522), done.eveloptools_packing_toolUpdating files:  58% (1468/2522)
Updating files: 100% (1901/1901), done.eveloptools_profilerUpdating files:  96% (1842/1901)
Updating files: 100% (623/623), done. developtools_syscap_codecUpdating files:  79% (498/623)
Updating files: 100% (2556/2556), done.evice_board_hpmicroUpdating files:  40% (1046/2556)
Updating files: 100% (107/107), done. device_qemuUpdating files:  71% (77/107)
Updating files: 100% (349/349), done. device_soc_allwinnerUpdating files:  25% (89/349)
Updating files: 100% (394/394), done. device_soc_bekenUpdating files:  95% (377/394)
Updating files: 100% (3970/3970), done.evice_soc_goodixUpdating files:  30% (1205/3970)
Updating files: 100% (124/124), done. device_soc_hpmicroUpdating files:  80% (100/124)
Updating files: 100% (3893/3893), done.evice_soc_nxpUpdating files:   1% (70/3893)
Updating files: 100% (13322/13322), done.ice_soc_winnermicroUpdating files:   5% (788/13322)
Updating files: 100% (7697/7697), done.i_neural_network_runtimeUpdating files:  98% (7553/7697)
Updating files: 100% (558/558), done. arkui_ui_appearanceUpdating files:  92% (514/558)
Updating files: 100% (716/716), done. multimedia_audio_liteUpdating files:  63% (453/716)
Updating files: 100% (431/431), done. multimedia_histreamerUpdating files:  95% (411/431)
Updating files: 100% (70910/70910), done.nel_linux_configUpdating files:  11% (8110/70910)
Updating files: 100% (2078/2078), done.ernel_linux_5.10Updating files:  99% (2067/2078)
Updating files: 100% (24037/24037), done.tfwk_xdeviceUpdating files:  33% (7996/24037)
Updating files: 100% (7487/7487), done.hird_party_f2fs-toolsUpdating files:  52% (3947/7487)
Updating files: 100% (27612/27612), done.rd_party_flatbuffersUpdating files:   5% (1617/27612)
Updating files: 100% (6479/6479), done.hird_party_grpcUpdating files:  70% (4581/6479)
Updating files: 100% (10203/10203), done.rd_party_harfbuzzUpdating files:  28% (2948/10203)
Updating files: 100% (2609/2609), done.hird_party_jsoncppUpdating files:  21% (565/2609)
Updating files: 100% (8460/8460), done.hird_party_mbedtlsUpdating files:  40% (3402/8460)
Updating files: 100% (58/58), done.4) third_party_mesa3dUpdating files:  34% (20/58)
Updating files: 100% (12687/12687), done.rd_party_ninjaUpdating files:  50% (6345/12687)
Updating files: 100% (1517/1517), done.hird_party_ntfs-3gUpdating files:  85% (1299/1517)
Updating files: 100% (24455/24455), done.rd_party_openmaxUpdating files:  64% (15774/24455)
Updating files: 100% (4394/4394), done.hird_party_pulseaudioUpdating files:  72% (3176/4394)
Updating files: 100% (127/127), done. third_party_rust_memoffsetUpdating files:  41% (53/127)
Updating files: 100% (54815/54815), done.rd_party_selinuxUpdating files:   9% (4984/54815)
Updating files: 100% (59035/59035), done.rd_party_toyboxUpdating files:  10% (6163/59035)
Updating files: 100% (6429/6429), done.hird_party_unityUpdating files:   1% (126/6429)
Updating files: 100% (497/497), done. vendor_telinkUpdating files:  61% (305/497)
Checking out projects: 100% (474/474), done.
repo sync has finished successfully.
 

此步骤需要一定时间,执行完这条命令后,目录中有了代码,如下:

ph@ph-virtual-machine:~/OpenHarmony_Source$ ls
applications  base   build.py  commonlibrary  device  domains  foundation  interface  napi_generator  qemu-run  third_party
arkcompiler   build  build.sh  developtools   docs    drivers  ide         kernel     productdefine   test      vendor
ph@ph-virtual-machine:~/OpenHarmony_Source$ 
ph@ph-virtual-machine:~/OpenHarmony_Source$ ls -l
total 76
drwxrwxr-x   4 ph ph 4096  1月  5 15:02 applications
drwxrwxr-x   6 ph ph 4096  1月  5 15:02 arkcompiler
drwxrwxr-x  24 ph ph 4096  1月  5 15:02 base
drwxrwxr-x  19 ph ph 4096  1月  5 15:02 build
lrwxrwxrwx   1 ph ph   28  1月  5 15:02 build.py -> build/build_scripts/build.py
lrwxrwxrwx   1 ph ph   28  1月  5 15:02 build.sh -> build/build_scripts/build.sh
drwxrwxr-x   7 ph ph 4096  1月  5 15:02 commonlibrary
drwxrwxr-x  14 ph ph 4096  1月  5 15:02 developtools
drwxrwxr-x   5 ph ph 4096  1月  5 15:02 device
drwxrwxr-x   6 ph ph 4096  1月  5 15:03 docs
drwxrwxr-x   3 ph ph 4096  1月  5 15:03 domains
drwxrwxr-x   7 ph ph 4096  1月  5 15:03 drivers
drwxrwxr-x  18 ph ph 4096  1月  5 15:03 foundation
drwxrwxr-x   3 ph ph 4096  1月  5 15:03 ide
drwxrwxr-x   3 ph ph 4096  1月  5 15:03 interface
drwxrwxr-x   6 ph ph 4096  1月  5 15:03 kernel
drwxrwxr-x  12 ph ph 4096  1月  5 15:03 napi_generator
drwxrwxr-x   3 ph ph 4096  1月  5 15:03 productdefine
lrwxrwxrwx   1 ph ph   28  1月  5 15:05 qemu-run -> vendor/ohemu/common/qemu-run
drwxrwxr-x   5 ph ph 4096  1月  5 15:03 test
drwxrwxr-x 114 ph ph 4096  1月  5 15:05 third_party
drwxrwxr-x  21 ph ph 4096  1月  5 15:05 vendor

此时的磁盘空间占用情况为:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           589M  2.1M  587M   1% /run
/dev/sda3       196G   47G  139G  26% /
tmpfs           2.9G     0  2.9G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/sda2       512M  6.1M  506M   2% /boot/efi
tmpfs           589M  116K  589M   1% /run/user/1000
/dev/sr0        156M  156M     0 100% /media/ph/CDROM
/dev/sr1        4.7G  4.7G     0 100% /media/ph/Ubuntu 22.04.3 LTS amd64
  • repo forall
$ repo forall -c 'git lfs pull'
Downloading LFS objects: 100% (1/1), 71 KB | 0 B/s       

“repo forall”这一条命令会逐一下载很多内容,虽然看起来只有一两行,但实际上信息是被后边的覆盖了,其实有很多,过程也比较长。

最终:

$ repo forall -c 'git lfs pull'
$ 

此时的磁盘空间占用情况为:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           589M  2.1M  587M   1% /run
/dev/sda3       196G   49G  138G  27% /
tmpfs           2.9G     0  2.9G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/sda2       512M  6.1M  506M   2% /boot/efi
tmpfs           589M  116K  589M   1% /run/user/1000
/dev/sr0        156M  156M     0 100% /media/ph/CDROM
/dev/sr1        4.7G  4.7G     0 100% /media/ph/Ubuntu 22.04.3 LTS amd64

至此,第2步——获取标准系统源码就完成了。

原文地址:https://blog.csdn.net/phmatthaus/article/details/135407803

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。

如若转载,请注明出处:http://www.7code.cn/show_52354.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注