OSDN Git Service

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)
commit700dea5a0bea9f64eba89fae7cb2540326fdfdc1
tree6dbd4e4ae8dd9dd413e1701f8013520421610b67
parent991b78fbd2231175293bd1d7c0768fb4e4382e14
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