summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-03-19 21:17:53 +0100
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-03-19 21:19:06 +0100
commit3b7edc7ce8bce527719269fd07787e1710a329eb (patch)
treedb163f887024896a4704d108ce6723564f1973ce /Makefile
parent0a85e9276ae0486c97080d2ebd2264edec2e0cb9 (diff)
downloadfreebsd-wifibox-alpine-3b7edc7ce8bce527719269fd07787e1710a329eb.zip
Add support for excluding files from the generated image.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ca34733..03b1e40 100644
--- a/Makefile
+++ b/Makefile
@@ -136,13 +136,21 @@ $(INITRD_IMG): image-contents $(INITRD_FILES)
| $(CPIO) -o -y --format newc --owner root:wheel \
> $(INITRD_IMG))
+.if defined(EXCLUDED_FILES)
+_EXCLUDE_FILES= -ef $(EXCLUDED_FILES)
+.else
+_EXCLUDE_FILES=
+.endif
+
$(SQUASHFS_IMG): image-contents $(INITRD_IMG)
$(MKSQUASHFS) \
$(GUESTDIR) \
$(SQUASHFS_IMG) \
-all-root \
-comp $(SQUASHFS_COMP) \
- -wildcards -e boot -e .done -e "var/*"
+ -wildcards \
+ $(_EXCLUDE_FILES) \
+ -e boot -e .done -e "var/*"
all: $(SQUASHFS_IMG)