From 2194d6b520fab494efccab0a41a931baacaf45da Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 20 Apr 2024 19:32:26 +0200 Subject: [PATCH] More recent debian --- makefile | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/makefile b/makefile index 74ca622..131240e 100644 --- a/makefile +++ b/makefile @@ -1,16 +1,14 @@ -rel := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz -readme := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.txt -sig := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz.asc -sums := https://k-space.ee.armbian.com/archive/aml-s9xx-box/archive/Armbian_23.11.1_Aml-s9xx-box_bookworm_current_6.1.63.img.xz.sha +rel := https://github.com/armbian/community/releases/download/24.5.0-trunk.433/Armbian_community_24.5.0-trunk.433_Aml-s9xx-box_bookworm_current_6.6.28_minimal.img.xz +sig := https://github.com/armbian/community/releases/download/24.5.0-trunk.433/Armbian_community_24.5.0-trunk.433_Aml-s9xx-box_bookworm_current_6.6.28_minimal.img.xz.asc image := $(shell echo $(rel) | sed 's/.*\///') raw := $(shell echo $(image) | sed 's/\.xz//') +git := $(shell git rev-parse --short HEAD) + $(image): - curl -O $(readme) - curl -O $(sig) - curl -O $(sums) - curl -O $(rel) + curl -L -O $(rel) + curl -L -O $(sig) verify: $(image) $(image).asc gpg --verify $(image).asc $(image) @@ -21,8 +19,6 @@ $(raw): $(image) mount: $(raw) umount mkdir -p ./rootfs mkdir -p ./boot - chmod 777 ./rootfs - chmod 777 ./boot sudo losetup /dev/loop1337 $(raw) sudo partprobe /dev/loop1337 sudo mount /dev/loop1337p2 ./rootfs @@ -40,22 +36,19 @@ umount: uboot: mount sudo cp boot/u-boot-s905x-s912 boot/u-boot.ext -# Replace ^FDT with ^#FDT in boot/extlinux/extlinux.conf -# Uncomment "#FDT /dtb/amlogic/meson-gxl-s905x-p212.dtb" extlinux: uboot - sudo sed -i 's/^FDT/#FDT/' boot/extlinux/extlinux.conf - sudo sed -i 's/^#FDT \/dtb\/amlogic\/meson-gxl-s905x-p212.dtb/FDT \/dtb\/amlogic\/meson-gxl-s905x-p212.dtb/' boot/extlinux/extlinux.conf + sudo sed -i '4iFDT /dtb/amlogic/meson-gxl-s905x-p212.dtb' boot/extlinux/extlinux.conf -armbian.img.zst: extlinux +armbian-$(git).img.zst: extlinux sudo dd if=/dev/loop1337 bs=1M | zstd -10 -fo $@ -build: armbian.img.zst +build: armbian-$(git).img.zst -sign: armbian.img.zst +sign: armbian-$(git).img.zst minisign -Sm $< # Imbus personal key -verify: +verify-build: minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO clean: umount