]> 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)
commitf4a5c1e1f354e2c669318b0ea4b41cbb1bdb2da3
tree6dbd4e4ae8dd9dd413e1701f8013520421610b67
parent9bbdf4492db0f8c9923eda4fa5120b69032dc3ee
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