Yocto2.4.2项目搭建
本文档适用于centos7系统
该项目支持的系统
ubuntu
Ubuntu 14.04 (LTS)、Ubuntu 14.10、Ubuntu 15.04、Ubuntu 15.10Ubuntu 16.04
Fedora
Fedora release 22Fedora release 23、Fedora release 24
CentOS
Centos7.x
Debian
Debian GNU/Linux 8.x (Jessie)、Debian GNU/Linux 9.x (Stretch)
openSUSE
openSUSE 13.2、openSUSE 42.1
依赖软件要求
Git>=1.8.3.1
、tar>=1.27
、Python>=3.4.0
搭建项目之前需要安装的软件点击查询具体信息
Ubuntu and Debian
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libsdl1.2-dev xterm
Fedora
sudo dnf install gawk make wget tar bzip2 gzip python3 unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \ ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \ python3-pexpect findutils which file cpio python python3-pip xz SDL-devel xterm
OpenSUSE
sudo zypper install python gcc gcc-c++ git chrpath make wget python-xml \ diffstat makeinfo python-curses patch socat python3 python3-curses tar python3-pip \ python3-pexpect xz which libSDL-devel xterm
CentOS
$ sudo yum install -y epel-release $ sudo yum makecache $ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \ perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue python34-pip xz \ which SDL-devel xterm
下载poky项目,如下所示:
git clone git://git.yoctoproject.org/poky
Yocto编译镜像文件
1. 为emulator (QEMU) 编译镜像
Yocto项目搭建
获取对应的分支
cd ~/poky git checkout -b rocko origin/rocko
初始化编译环境
用法如下
source oe-init-build-env [your_build_path]
其中
your_build_path