]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kbuild: deb-pkg: create source package without cleaning
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Feb 2023 01:20:24 +0000 (10:20 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 26 Feb 2023 06:18:07 +0000 (15:18 +0900)
commit7bf4582d7aad870ecb4f760743307ecba7a960f4
tree4b84048857a0ab7ea01807f6d566e73a0888ccaa
parent5c3d1d0abb12a6915d0f43233837053945621a89
kbuild: deb-pkg: create source package without cleaning

If you run 'make deb-pkg', all objects are lost due to 'make clean',
which makes the incremental builds impossible.

Instead of cleaning, pass the exclude list to tar's --exclude-from
option.

Previously, *.diff.gz contained some check-in files such as
.clang-format, .cocciconfig.

With this commit, *.diff.gz will only contain the .config and debian/.
The other source files will go into the .orig tarball.

linux.tar.gz is rebuilt only when the source files that would go into
the tarball are changed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Makefile.package
scripts/package/mkdebian