diff mbox series

[3/6] builddeb: clean generated package content

Message ID 20210411101422.7092-4-bage@linutronix.de (mailing list archive)
State New
Headers show
Series builddeb: make deb building more flexible | expand

Commit Message

bage@linutronix.de April 11, 2021, 10:14 a.m. UTC
From: Bastian Germann <bage@linutronix.de>

For each binary Debian package, a directory with the package name is
created in the debian directory. Include the generated files in the
package's clean target.

Signed-off-by: Bastian Germann <bage@linutronix.de>
---
 scripts/package/mkdebian | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Masahiro Yamada April 19, 2021, 6:07 a.m. UTC | #1
On Sun, Apr 11, 2021 at 7:14 PM <bage@linutronix.de> wrote:
>
> From: Bastian Germann <bage@linutronix.de>
>
> For each binary Debian package, a directory with the package name is
> created in the debian directory. Include the generated files in the
> package's clean target.
>
> Signed-off-by: Bastian Germann <bage@linutronix.de>
> ---
>  scripts/package/mkdebian | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
> index 2fa149796791..717223ef6b03 100755
> --- a/scripts/package/mkdebian
> +++ b/scripts/package/mkdebian
> @@ -246,7 +246,7 @@ binary-arch: build-arch
>         KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
>
>  clean:
> -       rm -rf debian/*tmp debian/files
> +       rm -rf debian/*tmp debian/files debian/linux-*
>         \$(MAKE) clean
>
>  binary: binary-arch
> --
> 2.30.2
>


Please also remove debian/*tmp.


Add this tag:

Fixes: 1694e94e4f46 ("builddeb: match temporary directory name to the
package name")
diff mbox series

Patch

diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 2fa149796791..717223ef6b03 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -246,7 +246,7 @@  binary-arch: build-arch
 	KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
 
 clean:
-	rm -rf debian/*tmp debian/files
+	rm -rf debian/*tmp debian/files debian/linux-*
 	\$(MAKE) clean
 
 binary: binary-arch