-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (19 loc) · 896 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
help:
$(info )
$(info Valid make targets are:)
$(info - uefi-x86-ovf : Outputs a zip file containing .vmx & .vmdk for uefi-x86 platform)
$(info )
uefi-x86-ovf:
$(info Clone armbian/build repo if needed)
if [ ! -d "./armbian-build" ]; then git clone --depth=1 --branch=v23.11 https://github.com/armbian/build ./armbian-build; fi
$(info Copy armbian customisations)
cp -Rv ./armbian/* ./armbian-build/
$(info Build 'pilot' app)
mkdir -p ./armbian-build/userpatches/overlay
cd ./pilot && GOOS=linux GOARCH=amd64 go build -o ../armbian-build/userpatches/overlay/pilot ./cmd/pilot
cp -v ./pilot/pilot.service ./armbian-build/userpatches/overlay/pilot.service
$(info Run armbian build)
cd ./armbian-build && ./compile.sh build BOARD=uefi-x86 ENABLE_EXTENSIONS=image-output-ovf planewatcher
clean:
# Remove armbian/build
if [ -d "./armbian-build" ]; then rm -rf ./armbian-build; fi