From: Michael Tremer Date: Sat, 12 Dec 2015 17:06:10 +0000 (+0000) Subject: Speed up rootfile generation X-Git-Tag: v2.17-core97~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b169a72daae63d435ee74b7ca9f28f1813fb177;p=ipfire-2.x.git Speed up rootfile generation 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 --- diff --git a/lfs/Config b/lfs/Config index 415766d123..a65b0cf4e4 100644 --- a/lfs/Config +++ b/lfs/Config @@ -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.