linyujiang

基于Yocto工具构建Linux系统

0
阅读(1720)

Xilinx和Digilent公司都提供了使用Yocto 来构建嵌入式 Linux 发行版的例子,本文主要介绍如何使用 Yocto 在 openSUSE 上创建一个最小化的 Linux 发行版。

1. 下载并安装repo脚本工具

# Download the Repo script:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
 
# Make it executable:
$ chmod a+x ~/bin/repo
 
# If it is correctly installed, you should see a Usage message when invoked with the help flag.
$ repo --help

2. 设置访问Git库的参数

$ git config --global user.name <your name>
$ git config --global user.email <your_email@example.com>

3. 初始化本地库

$ repo init -u https://github.com/Digilent/meta-manifest.git -b jethro \
    --repo-url=https://gerrit-google.tuna.tsinghua.edu.cn/git-repo

4. 同步repo管理的仓库

$ repo sync


(待续)


参考文档:

1. Yocto Project Quick Start