make.sh: Rewrite how we are looking for rootfiles

No function changes, just performance.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-09 19:23:11 +00:00
parent 3e9cb47e0e
commit 4830e79f3c
2 changed files with 67 additions and 37 deletions

View File

@@ -329,12 +329,11 @@ define B2SUM
endef
# Takes one rootfile or a directory and will return a list of all included files
define COLLECT_FILES
BUILDTARGET="$(BUILDTARGET)" \
COLLECT_FILES = \
BUILD_ARCH="$(BUILD_ARCH)" \
BUILDTARGET="$(BUILDTARGET)" \
KVER="$(KVER)" \
$(DIR_SRC)/src/scripts/archive.files $(1)
endef
$(DIR_SRC)/src/scripts/archive.files $(BUILD_ARCH) $(1) $(2)
# Takes a filelist from standard input and streams a tarball with all files
__FILES_IN = \