sh 用于构建和启动Google Fuchsia的BASH脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 用于构建和启动Google Fuchsia的BASH脚本相关的知识,希望对你有一定的参考价值。

#!/bin/sh
clear

# Preparing the build environment
# https://github.com/fuchsia-mirror/manifest#prerequisites
# https://github.com/fuchsia-mirror/magenta/blob/master/docs/getting_started.md#preparing-the-build-environment
sudo apt-get install golang git-all curl texinfo libglib2.0-dev autoconf libtool libsdl-dev build-essential

# Creating a new checkout (https://github.com/fuchsia-mirror/manifest#creating-a-new-checkout)
curl -s https://raw.githubusercontent.com/vanadium/go.jiri/master/scripts/bootstrap_jiri | bash -s fuchsia
cd fuchsia
export PATH=`pwd`/.jiri_root/scripts:$PATH
jiri import fuchsia https://fuchsia.googlesource.com/manifest
jiri update

# Building Fuchsia (https://github.com/fuchsia-mirror/manifest#building-fuchsia)
./packages/gn/gen.py
./buildtools/ninja -C out/debug-x86-64

# Build Magenta (https://github.com/fuchsia-mirror/magenta/blob/master/docs/getting_started.md#build-magenta)
cd magenta
make -j32 magenta-pc-x86-64

# Boot Fuchsia (https://github.com/fuchsia-mirror/manifest#building-fuchsia)
# Updated 21 August 2016 to run with a graphical framebuffer
./scripts/run-magenta-x86-64 -g -x ../out/debug-x86-64/user.bootfs

以上是关于sh 用于构建和启动Google Fuchsia的BASH脚本的主要内容,如果未能解决你的问题,请参考以下文章

Google 正式发布 Fuchsia OS,Flutter 集成尚存问题

如何看待 Google 最新的系统 Fuchsia?

google为啥要从头开发一套新的操作系统fuchsia

全新的操作系统Fuchsia

安卓将被取代?谷歌正在开发全新操作系统Fuchsia

“一套系统走天下”梦碎?Google 从 Android 移除大量 Fuchsia 相关代码