Ubuntu18.04编译Zircon

1.获取源代码

git clone zircon - Git at Google

2.安装编译环境

sudo apt-get install texinfo libglib2.0-dev autoconf libtool bison libsdl-dev build-essential

3.安装工具链

./scripts/download-prebuilt

这一步会下载几个文件,下载URL的域名是 https://chrome-infra-packages.appspot.com/ ,如果网络不好,可能会下载失败,接下来的操作将无法进行。

4.编译 Zircon

for aarch64

make -j32 arm64

for x64

make -j32 x64

编译完成后的文件结构如下图,
Screenshot%20from%202018-12-09%2010-36-01

5.安装 QEMU

下载源代码

git clone --recursive third_party/qemu - Git at Google

进入qemu文件夹,执行编译安装

./configure --target-list=aarch64-softmmu,x86_64-softmmu

make -j32

sudo make install

6.运行 Zircon

for aarch64

./scripts/run-zircon-arm64

for x86

./scripts/run-zircon-x64

下图是已经运行的

Screenshot%20from%202018-12-09%2019-17-20

2 个赞