Skip to content
Gustavo Niemeyer edited this page Oct 10, 2016 · 1 revision

Get in touch

Before jumping into development of a particular feature, please consider getting in touch. Sometimes the feature may already be in progress, or have a planned design, or even be done already.

# Source code

Code for the snapd daemon is developed at https://github.com/snapcore/snapd.

Code for the snapcraft is developed at https://github.com/snapcore/snapcraft.

# License agreement

Before we can take contributions, we require a license agreement to be signed online.

# Cross builds

To cross build for arm you need to install:

sudo apt-get install golang-go-linux-arm
sudo apt-get install gcc-arm-linux-gnueabihf

And then set up your environment:

export GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc

With that, go build will produce binaries for armhf. E.g.,

go build -o snap_armhf github.com/snapcore/snapd/cmd/snap

arm64

Install:

sudo apt-get install gcc-aarch64-linux-gnu

Setup the environment:

export GOARCH=arm64 CC=aarch64-linux-gnu-gcc CGO_ENABLED=1

And then run:

go build -o snap_arm64 github.com/snapcore/snapd/cmd/snap