From c91bff6f6dba943518894ea961c3dacf2ac0e5b9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 14 Feb 2023 21:08:27 -0600 Subject: [PATCH] Makefile: Allow rebuilding just the squashfs image This way we can rebuild the image even if nothing changed in the root filesystem, but the excluded path list did. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 00de4f4..ed3aca3 100644 --- a/Makefile +++ b/Makefile @@ -21,15 +21,20 @@ prepare: .prepared host-tools: .host-tools -images/rootfs.squashfs: \ +.built: \ build.sh \ build-rootfs.sh \ - build-squashfs.sh \ linux/arch/arm64/boot/Image.gz \ .host-tools \ .prepared ./build.sh ./build-rootfs.sh + touch .built + +images/rootfs.squashfs: \ + build-squashfs.sh \ + squashfs.exclude \ + .built ./build-squashfs.sh squashfs: images/rootfs.squashfs