-
Notifications
You must be signed in to change notification settings - Fork 592
Development
Gustavo Niemeyer edited this page Oct 10, 2016
·
1 revision
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 codeCode 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 agreementBefore we can take contributions, we require a license agreement to be signed online.
# Cross buildsTo 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
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
violethaze74 This is the snapd wiki, feel free!