]> git.ipfire.org Git - people/meitelwein/ipfire-2.x.git/commitdiff
Speed up rootfile generation
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Dec 2015 17:06:10 +0000 (17:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 12 Dec 2015 17:06:10 +0000 (17:06 +0000)
The old usage of find walked through the entire filesystem tree
and excluded some paths from being printed. The more efficient
solution is to skip walking through excluded directories entirely.

This is a slight speedup of the build process by a few minutes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config

index 415766d123da4b2bbd5ab7c87fa8ffda8b4b906b..a65b0cf4e410950858222ab0895e71a835548f93 100644 (file)
@@ -66,8 +66,9 @@ DIR_TMP     = /tmp
 #
 define FIND_FILES
        cd $(ROOT)/ && find -mount \
-       -not -path './tools*' -not -path './tmp*' -not -path './usr/src*' -not -path './run/*' \
-       -not -path './dev*' -not -path './proc*' -not -path './install*' | sort
+               \( -path './tools' -or -path './tmp' -or -path './usr/src' \
+               -or -path './run' -or -path './dev' -or -path './proc' \
+               -or -path './install' \) -prune -or -print | sort
 endef
 
 # This is common starting logic for builds.