Coder Social home page Coder Social logo

go-brillo's Introduction

Go on Brillo

jbd's notes on Go development on Brillo devices.

Goals

  • Make GOOS=android working on Brillo boards by using the BDK toolchain.
  • Publish libbinder bindings to enable services written in Go.
  • Publish bindings for the HAL layer.
  • Add GOOS=android/{arm,386} BDK toolchain builds to the Go build dashboard and maintain CI devices.

Guides

Build Go binaries targeting Brillo

Note: You need to have BDK installed before beginning.

Install the prebuilt standard library, targeting both ARM and 386 devices:

CGO_ENABLED=1 \
	CC=$BDK_HOME/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc \
	CXX=$BDK_HOME/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-g++ \
	GOOS=android \
	GOARCH=386 \
	go install std && \
CGO_ENABLED=1 \
	CC=$BDK_HOME/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc \
	CXX=$BDK_HOME/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-g++ \
	GOOS=android GOARCH=arm GOARM=7 \
	go install std

ARM targets

CGO_ENABLED=1 \
	CC=$BDK_HOME/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc \
	CXX=$BDK_HOME/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-g++ \
	GOOS=android GOARCH=arm GOARM=7 \
	go build <pkg>

x86 targets

CGO_ENABLED=1 \
	CC=$BDK_HOME/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-gcc \
	CXX=$BDK_HOME/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-g++ \
	GOOS=android \
	GOARCH=386 \
	go build <pkg>

go-brillo's People

Contributors

rakyll avatar

Stargazers

Jishan Shaikh avatar DAVID RUPP JR. avatar  avatar James Tucker avatar Nishanth Shanmugham avatar Thomas Frössman avatar Johan Euphrosine avatar

Watchers

James Cloos avatar  avatar

Forkers

chenxiaoqun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.