summaryrefslogtreecommitdiffstats
path: root/scripts/gen_initramfs_list.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-07-08 00:09:09 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-08 00:09:09 +0200
commit16ffc4c39415e62c1d027d1bc59ee28e267d59f2 (patch)
tree6b341d1856c8b39b1de8af230f73d138db647848 /scripts/gen_initramfs_list.sh
parentMerge tag 'kbuild-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mas... (diff)
parentkbuild: create deterministic initramfs directory listings (diff)
downloadlinux-16ffc4c39415e62c1d027d1bc59ee28e267d59f2.tar.xz
linux-16ffc4c39415e62c1d027d1bc59ee28e267d59f2.zip
Merge tag 'kbuild-misc-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull misc Kbuild updates from Masahiro Yamada: - Use more portable shebang for Perl scripts - Remove trailing spaces from GCC version in kernel log - Make initramfs generation deterministic * tag 'kbuild-misc-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kbuild: create deterministic initramfs directory listings scripts/mkcompile_h: Remove trailing spaces from compiler version scripts: Switch to more portable Perl shebang
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
-rwxr-xr-xscripts/gen_initramfs_list.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index cb470fdee733..86a3c0e5cfbc 100755
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -174,7 +174,7 @@ dir_filelist() {
${dep_list}header "$1"
srcdir=$(echo "$1" | sed -e 's://*:/:g')
- dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n")
+ dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n" | sort)
# If $dirlist is only one line, then the directory is empty
if [ "$(echo "${dirlist}" | wc -l)" -gt 1 ]; then