kbuild: refactor kernel-devel RPM package and linux-headers Deb package
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jul 2023 04:47:56 +0000 (13:47 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:32 +0000 (00:59 +0900)
commitfe66b5d2ae72121c9f4f705dbae36d4c3e9f3812
treeae77d8c3123c4a30cee57fd7fcb88e4dde0ab904
parent76a48b8ffbad5cb24ce3fab517a24f555b3c9616
kbuild: refactor kernel-devel RPM package and linux-headers Deb package

The kernel-devel RPM package and the linux-headers Debian package
provide headers and scripts needed for building external modules.

They copy the necessary files in slightly different ways - the RPM
copies almost everything except some exclude patterns, while the Debian
copies less number of files. There is no need to maintain different code
to do the same thing.

Split the Debian code out to scripts/package/install-extmod-build, which
is called from both of the packages.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/builddeb
scripts/package/install-extmod-build [new file with mode: 0755]
scripts/package/mkspec