This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/docs/source/get_started/repo.rst

39 lines
850 B
ReStructuredText
Raw Normal View History

2022-12-27 19:33:57 +08:00
Repo 的使用
=======================
Repo 是谷歌用 Python 脚本写的调用 git 的一个脚本,可以实现管理多个 git 库,简单的几行命令便可以拉取很多仓库的代码。
安装
--------
- 下载 `repo <https://github.com/bouffalolab/repo>`_
- windows 下将 `repo.exe` 文件(在 win 目录中)所在的路径配置到系统环境变量。
.. figure:: img/repo.png
:alt:
- Linux 下执行以下命令。
.. code-block:: bash
:linenos:
cd repo/linux
chmod +x repo
mv repo /usr/bin/repo
下载代码
----------
- 获取 SDK (只包含 BL616/BL618 版本)
.. code-block:: bash
:linenos:
repo init -u https://gerrit.bouffalolab.com/bouffalo/manifest/bouffalo_sdk -b master -m bl616-public.xml
同步代码
----------
后续只需要使用 ``repo sync`` 即可同步代码。