Makefile 431 Bytes
Newer Older
Guido Gunther's avatar
Guido Gunther committed
1 2
# SPDX-License-Identifier: GPL-3.0+

3 4 5
BOARD=imx6
IMAGE=$(BOARD).img
COMPRESSED=$(IMAGE).xz
Guido Gunther's avatar
Guido Gunther committed
6

Guido Gunther's avatar
Guido Gunther committed
7
all: sha256sums
Guido Gunther's avatar
Guido Gunther committed
8

Guido Gunther's avatar
Guido Gunther committed
9
$(IMAGE): lava.sh root.sh
10
	./lava.sh -b $(BOARD)
Guido Gunther's avatar
Guido Gunther committed
11

12
%.img.xz: %.img
13 14
	xz -T0 --stdout $< > $@.tmp
	mv $@.tmp $@
Guido Gunther's avatar
Guido Gunther committed
15 16 17 18 19
	sha256sum imx6.img.xz

sha256sums: $(COMPRESSED)
	sha256sum $< > $@.tmp
	mv $@.tmp $@
Guido Gunther's avatar
Guido Gunther committed
20

Guido Gunther's avatar
Guido Gunther committed
21
clean:
Guido Gunther's avatar
Guido Gunther committed
22
	rm -f files/*.deb *.img *.img.* sha256sums
Guido Gunther's avatar
Guido Gunther committed
23 24 25

check:
	bash -n lava.sh root.sh
26 27 28

publish: $(COMPRESSED)
	build/publish.sh