forked from DragonOS-Community/DragonOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
使用submodule引入DragonStub (DragonOS-Community#462)
* 修正构建系统文档: 使用repo工具克隆代码 * 使用submodule管理
- Loading branch information
Showing
6 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "kernel/submodules/DragonStub"] | ||
path = kernel/submodules/DragonStub | ||
url = https://github.com/DragonOS-Community/DragonStub.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected]:DragonOS-Community/DragonOS.git | ||
cd DragonOS | ||
# 使用镜像源更新子模块 | ||
make update-submodules-by-mirror | ||
``` | ||
|
||
## 2.使用一键初始化脚本进行安装(推荐) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule DragonStub
added at
a09217