使用submodule引入DragonStub (#462)

* 修正构建系统文档: 使用repo工具克隆代码

* 使用submodule管理
This commit is contained in:
LoGin
2023-12-03 17:16:03 +08:00
committed by GitHub
parent 83ed0ebc29
commit af35431005
6 changed files with 40 additions and 16 deletions

View File

@ -11,21 +11,13 @@
### 1.1 下载DragonOS的源代码
#### 1.1.1 安装git和repo工具
```shell
sudo apt-get install git repo
echo "export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'" >> ~/.$(basename $SHELL)rc
source ~/.$(basename $SHELL)rc
```
#### 1.1.2 克隆DragonOS的代码
使用https克隆
```shell
curl -sSL https://git.mirrors.dragonos.org.cn/DragonOS-Community/manifest/raw/master/scripts/init.sh | bash
git clone https://github.com/DragonOS-Community/DragonOS.git
cd DragonOS
# 使用镜像源更新子模块
make update-submodules-by-mirror
```
为了方便后续的开发我们建议您使用ssh克隆请先配置好github的SSH Key以避免由于网络问题导致的克隆失败
@ -35,7 +27,10 @@ curl -sSL https://git.mirrors.dragonos.org.cn/DragonOS-Community/manifest/raw/ma
```shell
# 使用ssh克隆
bash <(curl -sSL https://git.mirrors.dragonos.org.cn/DragonOS-Community/manifest/raw/master/scripts/init.sh) --use-ssh-after-clone
git clone git@github.com:DragonOS-Community/DragonOS.git
cd DragonOS
# 使用镜像源更新子模块
make update-submodules-by-mirror
```
## 2.使用一键初始化脚本进行安装(推荐)