More recent debian
This commit is contained in:
parent
9d6fbe48e8
commit
2194d6b520
1 changed files with 11 additions and 18 deletions
29
makefile
29
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
|
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
|
||||||
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://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
|
||||||
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
|
|
||||||
|
|
||||||
image := $(shell echo $(rel) | sed 's/.*\///')
|
image := $(shell echo $(rel) | sed 's/.*\///')
|
||||||
raw := $(shell echo $(image) | sed 's/\.xz//')
|
raw := $(shell echo $(image) | sed 's/\.xz//')
|
||||||
|
|
||||||
|
git := $(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
$(image):
|
$(image):
|
||||||
curl -O $(readme)
|
curl -L -O $(rel)
|
||||||
curl -O $(sig)
|
curl -L -O $(sig)
|
||||||
curl -O $(sums)
|
|
||||||
curl -O $(rel)
|
|
||||||
|
|
||||||
verify: $(image) $(image).asc
|
verify: $(image) $(image).asc
|
||||||
gpg --verify $(image).asc $(image)
|
gpg --verify $(image).asc $(image)
|
||||||
|
@ -21,8 +19,6 @@ $(raw): $(image)
|
||||||
mount: $(raw) umount
|
mount: $(raw) umount
|
||||||
mkdir -p ./rootfs
|
mkdir -p ./rootfs
|
||||||
mkdir -p ./boot
|
mkdir -p ./boot
|
||||||
chmod 777 ./rootfs
|
|
||||||
chmod 777 ./boot
|
|
||||||
sudo losetup /dev/loop1337 $(raw)
|
sudo losetup /dev/loop1337 $(raw)
|
||||||
sudo partprobe /dev/loop1337
|
sudo partprobe /dev/loop1337
|
||||||
sudo mount /dev/loop1337p2 ./rootfs
|
sudo mount /dev/loop1337p2 ./rootfs
|
||||||
|
@ -40,22 +36,19 @@ umount:
|
||||||
uboot: mount
|
uboot: mount
|
||||||
sudo cp boot/u-boot-s905x-s912 boot/u-boot.ext
|
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
|
extlinux: uboot
|
||||||
sudo sed -i 's/^FDT/#FDT/' boot/extlinux/extlinux.conf
|
sudo sed -i '4iFDT /dtb/amlogic/meson-gxl-s905x-p212.dtb' 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
|
|
||||||
|
|
||||||
armbian.img.zst: extlinux
|
armbian-$(git).img.zst: extlinux
|
||||||
sudo dd if=/dev/loop1337 bs=1M | zstd -10 -fo $@
|
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 $<
|
minisign -Sm $<
|
||||||
|
|
||||||
# Imbus personal key
|
# Imbus personal key
|
||||||
verify:
|
verify-build:
|
||||||
minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO
|
minisign -Vm armbian.img.zst -P RWRzPhin2brRy61x/adSOnFyhdWRkC0i37VJrOrFjMy6M073Mdu7gZXO
|
||||||
|
|
||||||
clean: umount
|
clean: umount
|
||||||
|
|
Loading…
Reference in a new issue