Commit 629cb78e authored by Guido Gunther's avatar Guido Gunther

Name the image like the "board type"

(althogh the board type is more like a cpu type atm)
parent a4d43467
*.deb
bootmp.img
bootmp.img.xz
bootmp.img.log
*.img
*.img.xz
*.img.log
files/
# SPDX-License-Identifier: GPL-3.0+
IMAGE=bootmp.img
COMPRESSED=bootmp.img.xz
BOARD=imx6
IMAGE=$(BOARD).img
COMPRESSED=$(IMAGE).xz
all: $(COMPRESSED)
$(IMAGE): lava.sh root.sh
./lava.sh
./lava.sh -b $(BOARD)
$(COMPRESSED): $(IMAGE)
%.img.xz: %.img
xz -T0 --stdout $< > $@
clean:
rm -f *.deb bootmp.img*
rm -f *.deb *.img *.img.*
check:
bash -n lava.sh root.sh
......@@ -25,8 +25,6 @@ kernel_version=4.15.0-rc5_4.15.0-rc5-1
kernel_url=https://storage.puri.sm/librem5/binaries/unstable/latest/
NULL=
bootimg="bootmp.img"
while getopts ":hb:d:" opt; do
case ${opt} in
b)
......@@ -48,18 +46,12 @@ while getopts ":hb:d:" opt; do
done
case ${pureos_board} in
imx5)
arch=armhf
;;
imx6)
imx5|imx6|qemu)
arch=armhf
;;
imx8)
arch=aarch64
;;
qemu)
arch=armhf
;;
\?)
echo "unrecognized board type ${pureos_board}"
exit 1
......@@ -69,6 +61,7 @@ esac
export distro
export pureos_board
bootimg="${pureos_board}.img"
# these packages must be in the main achive contrib and non-free
# can be handled by the customization script
PACKAGES="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment