kbuild: deb-pkg: add --source-option=-sP
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jan 2023 03:04:16 +0000 (12:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 5 Feb 2023 09:51:21 +0000 (18:51 +0900)
commit58e0e5c85e31b0b30f16ac835d537ba0b7ff7d37
tree16304fdae14ddd7c57f085c0eaf305d9aecc1257
parent1cb86b6c313623486038165f90f4067578c2f5d5
kbuild: deb-pkg: add --source-option=-sP

If the source package fails to build, ../linux.orig is left over.
In the next run of 'make deb-pkg', you will get the following error:

  dpkg-source: error: orig directory 'linux.orig' already exists, not overwriting, giving up; use -sA, -sK or -sP to override

You can manually remove ../linux.orig, but it is annoying.

Pass -sP down to dpkg-source.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.package