Fuchsia 源碼下載

準備活動

Ubuntu

sudo apt-get install texinfo libglib2.0-dev liblz4-tool autoconf libtool libsdl-dev build-essential golang git curl unzip

下載源碼

Jiri

export FUCHSIA_ROOT=$HOME/fuchsiacurl -s https://raw.githubusercontent.com/fuchsia-mirror/jiri/master/scripts/bootstrap_jiri | bash -s "$FUCHSIA_ROOT"export PATH="$FUCHSIA_ROOT"/.jiri_root/bin:$PATHcd "$FUCHSIA_ROOT"jiri import minimal https://fuchsia.googlesource.com/manifestjiri update

正式開始下載

curl -s "https://fuchsia.googlesource.com/scripts/+/master/bootstrap?format=TEXT" | base64 --decode | bash -s topaz

最後一個詞可以選 [zircon,garnet,peridot,topaz] 其中之一。 我選擇了 topaz,下載完成後有 12G 那麼大。 zircon 有 5G。

build

下載源碼的目錄下面有一個 scripts 文件夾。這裏有 build 命令。

cd "$FUCHSIA_ROOT/fuchsia"scripts/fx full-build

編譯完成後 31G 了……

啓動

scripts/fx run -g

不知道怎麼纔能有正經界面……

原文: https://fuchsia.googlesource.com/jiri

https://fuchsia.googlesource.com/docs/+/master/development/source_code/README.md

https://fuchsia.googlesource.com/docs/+/master/development/source_code/layers.md

https://fuchsia.googlesource.com/docs/+/master/getting_started.md

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章