一 (鸿蒙系统内核 与 文件系统)
首先就是在乌班图上安装各种各样的脚本
这个是第一个脚本
:Configuring_ubuntu.sh
安装命令行为 :
~ $ wget --no-check-certificate -O Configuring_ubuntu.sh https://weidongshan.coding.net/p/DevelopmentEnvConf/d/DevelopmentEnvConf/git/raw/master/Conf iguring_ubuntu.sh && sudo chmod +x Configuring_ubuntu.sh && sudo ./Configuring_ubuntu.sh
安装 tftp,nfs,vim 等软 件,此脚本只支持 Ubuntu-16.04 /Ubuntu-18.04
这个是第二个脚本
1.2.1 配置 GIT 需要在 ubuntu 下执行如下命令来配置 GIT 客户端的用户信息,比如(下面命令的用户名、邮箱可以随 便写):
git config --global user.name "100ask" git config --global user.email "[email protected]" git config --global credential.helper store
这个是第三个脚本
1.2.2 安装 repo repo 工具是用来管理多个 GIT 仓库的命令,执行如下命令来安装:
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > repo sudo cp repo /usr/local/bin/repo && sudo chmod a+x /usr/local/bin/repo sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
这个是第四个要下载的 是一个源码
cd /home/book
mkdir openharmony
cd openharmony
repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony-1.0
repo sync -c -j8
这个是第五个要下载的 是一个补丁
cd /home/book git clone https://gitee.com/weidongshan/openharmony_for_imx6ull.git
假设在/home/book/openharmony 目录下是鸿蒙的源码,补丁文件 hmos_v1.0_imx6ull.patch 放在 /home/book/openharmony_for_imx6ull/patch 目录下。 执行以下命令打补丁:
cd /home/book/openharmony patch -p1 < /home/book/openharmony_for_imx6ull/patch/hmos_v1.0_imx6ull.patch
最后是编译过程