11 lines
384 B
Makefile
11 lines
384 B
Makefile
IMG_URL = https://github.com/hypriot/image-builder-rpi/releases/download/v1.9.0/hypriotos-rpi-v1.9.0.img.zip
|
|
IMG = $(notdir $(IMG_URL))
|
|
|
|
get:
|
|
mkdir -p build/flash
|
|
[ -d build/flash/.git ] || git clone https://github.com/hypriot/flash.git build/flash
|
|
wget -nv -c -O build/$(IMG) $(IMG_URL)
|
|
|
|
flash:
|
|
build/flash/flash -C cloud-init/config.txt -u cloud-init/user-data.yml build/$(IMG)
|