2
0
Эх сурвалжийг харах

ath79: add empty squashfs-lzma filesystem

The filesystem is currently created on every build to trick the boot
loader of some FRITZ! devices into accepting the image. Sadly the
resulting squashfs-lzma filesystem is not reproducible. To fix this,
create a squashfs filesystem once and include it into the repository.

Creation happend as shown below

    rm -rf empty_dir
    mkdir empty_dir
    ./staging_dir/host/bin/mksquashfs-lzma \
    	empty_dir/ empty-squashfs-lzma \
    	-noappend -root-owned -be -nopad -b 65536 -fixed-time 0

Signed-off-by: Paul Spooren <[email protected]>
Paul Spooren 2 жил өмнө
parent
commit
91e3419a33

+ 0 - 10
include/image-commands.mk

@@ -103,16 +103,6 @@ define Build/append-rootfs
 	dd if=$(IMAGE_ROOTFS) >> $@
 endef
 
-define Build/append-squashfs-fakeroot-be
-	rm -rf [email protected] [email protected]
-	mkdir [email protected]
-	$(STAGING_DIR_HOST)/bin/mksquashfs3-lzma \
-		[email protected] [email protected] \
-		-noappend -root-owned -be -nopad -b 65536 \
-		$(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
-	cat [email protected] >> $@
-endef
-
 define Build/append-squashfs4-fakeroot
 	rm -rf [email protected] [email protected]
 	mkdir [email protected]

+ 3 - 0
target/linux/ath79/image/Makefile

@@ -60,6 +60,9 @@ define Build/relocate-kernel
 	rm -rf [email protected]
 endef
 
+define Build/append-squashfs-fakeroot-be
+	cat ./empty-squashfs-lzma >> $@
+endef
 
 define Device/Default
   DEVICE_DTS_DIR := ../dts

BIN
target/linux/ath79/image/empty-squashfs-lzma