This series fixes some bugs, then switch to 'git archive' for source package creation as suggested by Linus. Masahiro Yamada (6): kbuild: deb-pkg: make debian source package working again kbuild: deb-pkg: do not take KERNELRELEASE from the source version kbuild: deb-pkg: set CROSS_COMPILE only when undefined kbuild: deb-pkg: split image and debug objects staging out into functions kbuild: deb-pkg: use dh_listpackages to know enabled packages kbuild: use git-archive for source package creation .gitignore | 1 + Makefile | 9 +- scripts/.gitignore | 1 - scripts/Makefile | 2 +- scripts/Makefile.package | 113 ++-- scripts/check-git | 14 + scripts/list-gitignored.c | 1057 ------------------------------ scripts/package/builddeb | 269 ++++---- scripts/package/deb-build-option | 14 +- scripts/package/gen-diff-patch | 44 ++ scripts/package/mkdebian | 24 +- scripts/package/mkspec | 17 +- scripts/setlocalversion | 45 +- 13 files changed, 335 insertions(+), 1275 deletions(-) create mode 100755 scripts/check-git delete mode 100644 scripts/list-gitignored.c create mode 100755 scripts/package/gen-diff-patch -- 2.34.1