]> git.baikalelectronics.ru Git - kernel.git/commit
kheaders: substituting --sort in archive creation
authorDmitry Goldin <dgoldin+lkml@protonmail.ch>
Wed, 9 Oct 2019 13:42:14 +0000 (13:42 +0000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 17 Oct 2019 00:08:19 +0000 (09:08 +0900)
commit55cfb7278306571f8d65f6957986f1ff406219b9
tree6dbd4e4ae8dd9dd413e1701f8013520421610b67
parent1df177aef4e70ebcacfbcd233484d66dc0ac06d4
kheaders: substituting --sort in archive creation

The option --sort=ORDER was only introduced in tar 1.28 (2014), which
is rather new and might not be available in some setups.

This patch tries to replicate the previous behaviour as closely as
possible to fix the kheaders build for older environments. It does
not produce identical archives compared to the previous version due
to minor sorting differences but produces reproducible results itself
in my tests.

Reported-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Dmitry Goldin <dgoldin+lkml@protonmail.ch>
Tested-by: Andreas Schwab <schwab@suse.de>
Tested-by: Quentin Perret <qperret@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
kernel/gen_kheaders.sh