]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: create deterministic initramfs directory listings
authorBjørn Forsman <bjorn.forsman@gmail.com>
Sat, 24 Jun 2017 14:48:10 +0000 (16:48 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 2 Jul 2017 23:02:09 +0000 (08:02 +0900)
commit752b61474277da3b97120db314b1b344f8f47c00
tree973967a31fa945bba709b7e03ca2d2729085edcb
parent12b30e8f51d433611f2cd013439b4f92d84a1f37
kbuild: create deterministic initramfs directory listings

kbuild runs "find" on each entry in CONFIG_INITRAMFS_SOURCE that is a
directory. The order of the file listing output by "find" matter for
build reproducability, hence this patch applies "sort" to get
deterministic results.

Without this patch, two different machines with identical initramfs
directory input may produce differing initramfs cpio archives (different
hash) due to the different order of the files within the archive.

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/gen_initramfs_list.sh