Skip to content

Commit

Permalink
deploy: 7f260ce
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf2019 committed Mar 18, 2024
1 parent ba868ed commit abcb75d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
19 changes: 19 additions & 0 deletions _sources/chapter3/5exercise.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ ch3 中,我们的系统已经能够支持多个任务分时轮流运行,我
你需要在编译时指定 ``BASE=0`` 控制框架仅编译实验测例(在 os 目录执行 ``make run BASE=0``),
或指定 ``BASE=2`` 控制框架同时编译基础测例和实验测例。

- 如果本地在线编译访问 github 遇到问题,可以对 os/Cargo.toml 中的依赖进行如下替换:

.. code-block:: shell
# riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
riscv = { git = "https://gitee.com/rcore-os/riscv", features = ["inline-asm"] }
# ch6 之后
# virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers", rev = "4ee80e5" }
virtio-drivers = { git = "https://gitee.com/rcore-os/virtio-drivers", rev = "4ee80e5" }
- 本地离线运行 CI 脚本的方法(注意 CI 脚本会修改代码仓库的文件,请在运行前暂存改动):
.. code-block:: shell
git clone [email protected]:os-lab/2024s/public/rcore-tutorial-checker-2024s.git ci-user
git clone [email protected]:os-lab/2024s/public/rcore-tutorial-test-2024s.git ci-user/user
cd ci-user && make test CHAPTER=$ID OFFLINE=1
.. note::
你的实现只需且必须通过测例,建议读者感到困惑时先检查测例。
Expand Down
13 changes: 13 additions & 0 deletions chapter3/5exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,19 @@ <h3>实验要求<a class="headerlink" href="#id3" title="永久链接至标题">
或指定 <code class="docutils literal notranslate"><span class="pre">BASE=2</span></code> 控制框架同时编译基础测例和实验测例。</p>
</div></blockquote>
</li>
<li><p>如果本地在线编译访问 github 遇到问题,可以对 os/Cargo.toml 中的依赖进行如下替换:</p>
<blockquote>
<div></div></blockquote>
</li>
<li><p>本地离线运行 CI 脚本的方法(注意 CI 脚本会修改代码仓库的文件,请在运行前暂存改动):</p>
<blockquote>
<div><div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>git clone [email protected]:os-lab/2024s/public/rcore-tutorial-checker-2024s.git ci-user
git clone [email protected]:os-lab/2024s/public/rcore-tutorial-test-2024s.git ci-user/user
<span class="nb">cd</span> ci-user <span class="o">&amp;&amp;</span> make <span class="nb">test</span> <span class="nv">CHAPTER</span><span class="o">=</span><span class="nv">$ID</span> <span class="nv">OFFLINE</span><span class="o">=</span><span class="m">1</span>
</pre></div>
</div>
</div></blockquote>
</li>
</ul>
<div class="admonition note">
<p class="admonition-title">注解</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit abcb75d

Please sign in to comment.