Ubuntu18.04编译Zircon

1.获取源代码

git clone https://fuchsia.googlesource.com/zircon

 

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

  编译完成后的文件结构如下图,

  

5.安装 QEMU

  下载源代码

git clone --recursive https://fuchsia.googlesource.com/third_party/qemu

  进入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

  下图是已经运行的

  

  

 

posted @ 2018-12-09 19:22  路小路的日常  阅读(805)  评论(0编辑  收藏  举报