kheaders: include only headers into kheaders_data.tar.xz
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 1 Jul 2019 00:58:44 +0000 (09:58 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 9 Jul 2019 01:10:52 +0000 (10:10 +0900)
commit7199ff7d74003b5aad1e6328bf6128cd8ceea735
tree7a167ba7319986565a82831676b2edbf9e147e2c
parentb60b7c2ea9b7f854d457fefd592c77f621a86580
kheaders: include only headers into kheaders_data.tar.xz

Currently, kheaders_data.tar.xz contains some build scripts as well as
headers. None of them is needed in the header archive.

For ARCH=x86, this commit excludes the following from the archive:

  arch/x86/include/asm/Kbuild
  arch/x86/include/uapi/asm/Kbuild
  include/asm-generic/Kbuild
  include/config/auto.conf
  include/config/kernel.release
  include/config/tristate.conf
  include/uapi/asm-generic/Kbuild
  include/uapi/Kbuild
  kernel/gen_kheaders.sh

This change is actually motivated for the planned header compile-testing
because it will generate more build artifacts, which should not be
included in the archive.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
kernel/gen_kheaders.sh