[go: nahoru, domu]

Skip to content

Lyoncore/ubuntu-custom-recovery

Repository files navigation

config for arm

Prerequisites

Build image

git clone https://github.com/Lyoncore/ubuntu-recovery.git
cd ubuntu-recovery/
go get launchpad.net/godeps
godeps -t -u dependencies.tsv

For armhf (ex: pi3)

Build recovery.bin

GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go run build.go build

Build base image

./cook-image.sh

For arm64

GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build -o local-includes/recovery/bin/recovery.bin ./src/

Generate image with recovery

<Path to>/ubuntu-recovery-image

run tests

cd src
go test -check.vv