summary refs log tree commit diff
path: root/img/app/Makefile
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-03-28 16:59:19 +0100
committerAlyssa Ross <hi@alyssa.is>2024-03-28 17:07:18 +0100
commitd728c7d08af25e635db599c2c44c96afa10d9337 (patch)
tree42906a2b3583a285afdcceae82bd78c2b916f0d0 /img/app/Makefile
parent94d3c1b8280bd94c8f7b5cc09b3809403f2d1052 (diff)
downloadspectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar.gz
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar.bz2
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar.lz
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar.xz
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.tar.zst
spectrum-d728c7d08af25e635db599c2c44c96afa10d9337.zip
scripts/make-erofs.sh: take paths on stdin
The command line for the rootfs EROFS is nearing argv limits.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'img/app/Makefile')
-rw-r--r--img/app/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/img/app/Makefile b/img/app/Makefile
index 95212b8..78f1a00 100644
--- a/img/app/Makefile
+++ b/img/app/Makefile
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: EUPL-1.2+
-# SPDX-FileCopyrightText: 2021-2023 Alyssa Ross <hi@alyssa.is>
+# SPDX-FileCopyrightText: 2021-2024 Alyssa Ross <hi@alyssa.is>
 # SPDX-FileCopyrightText: 2022 Unikie
 
 include ../../lib/common.mk
@@ -52,10 +52,12 @@ build/empty:
 	mkdir -p $@
 
 build/rootfs.erofs: ../../scripts/make-erofs.sh $(VM_FILES) $(VM_BUILD_FILES) build/empty
-	../../scripts/make-erofs.sh -- $@ $(PACKAGES) \
-	    $$(for file in $(VM_FILES) $(VM_LINKS); do printf '%s %s ' $$file $$file; done) \
-	    $$(for file in $(VM_BUILD_FILES); do printf '%s %s ' $$file $${file#build/}; done) \
-	    $$(printf 'build/empty %s ' $(VM_DIRS))
+	( \
+	    printf '%s\n' $(PACKAGES) ;\
+	    for file in $(VM_FILES) $(VM_LINKS); do printf '%s\n%s\n' $$file $$file; done ;\
+	    for file in $(VM_BUILD_FILES); do printf '%s\n%s\n' $$file $${file#build/}; done ;\
+	    printf 'build/empty\n%s\n' $(VM_DIRS) ;\
+	) | ../../scripts/make-erofs.sh $@
 
 VM_S6_RC_FILES = \
 	etc/s6-rc/app/run \