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
 | 
			
		||||
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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue