diff options
author | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-03-19 21:17:53 +0100 |
---|---|---|
committer | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-03-19 21:19:06 +0100 |
commit | 3b7edc7ce8bce527719269fd07787e1710a329eb (patch) | |
tree | db163f887024896a4704d108ce6723564f1973ce /Makefile | |
parent | 0a85e9276ae0486c97080d2ebd2264edec2e0cb9 (diff) | |
download | freebsd-wifibox-alpine-3b7edc7ce8bce527719269fd07787e1710a329eb.zip |
Add support for excluding files from the generated image.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |