[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAR1N-bwVWm0LXky2-d2GfvRuRrEWeo5CGm3Z2Lp_s0WEw@mail.gmail.com>
Date: Mon, 15 Jul 2019 21:28:30 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: "Enrico Weigelt, metux IT consult" <info@...ux.net>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Robo Bot <apw@...onical.com>, Joe Perches <joe@...ches.com>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
linux-riscv@...ts.infradead.org,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH 4/4] debian: add generic rule file
On Tue, Jul 9, 2019 at 6:33 PM Enrico Weigelt, metux IT consult
<info@...ux.net> wrote:
>
> Adding a generic debian rule file, so we can build the directly
> via usual Debian package build tools (eg. git-buildpackage,
> dck-buildpackage, etc). It expects the .config file already
> placed in the source tree.
>
> The rule file contains a rule for creating debian/control and
> other metadata - this is done similar to the 'deb-pkg' make rule,
> scripts/packaging/mkdebian.
I saw a similar patch submission before, and negative feedback about it.
Debian maintains its own debian/rules, and it is fine.
I do not like to check-in the one in the kernel tree.
> Signed-off-by: Enrico Weigelt, metux IT consult <info@...ux.net>
> ---
> .gitignore | 1 +
> MAINTAINERS | 6 ++++++
> debian/rules | 27 +++++++++++++++++++++++++++
> 3 files changed, 34 insertions(+)
> create mode 100755 debian/rules
>
> diff --git a/.gitignore b/.gitignore
> index 7587ef56..01d742c 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -69,6 +69,7 @@ modules.builtin
> # Debian directory (make deb-pkg)
> #
> /debian/
> +!/debian/rules
>
> #
> # Snap directory (make snap-pkg)
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 558acf2..56e034c 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -4516,6 +4516,12 @@ F: include/uapi/linux/dccp.h
> F: include/linux/tfrc.h
> F: net/dccp/
>
> +DEBIAN PACKAGING FILES
> +M: Enrico Weigelt <info@...ux.net>
> +L: linux-kbuild@...r.kernel.org
> +S: Maintained
> +F: debian/
> +
> DECnet NETWORK LAYER
> W: http://linux-decnet.sourceforge.net
> L: linux-decnet-user@...ts.sourceforge.net
> diff --git a/debian/rules b/debian/rules
> new file mode 100755
> index 0000000..c2f0319
> --- /dev/null
> +++ b/debian/rules
> @@ -0,0 +1,27 @@
> +#!/usr/bin/make -f
> +# SPDX-License-Identifier: GPL-2.0
> +
> +export MAKE
> +export KERNELARCH = $(shell $(MAKE) kernelarch)
> +export KERNELRELEASE = $(shell $(MAKE) kernelrelease)
> +export KBUILD_DEBARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
> +export KBUILD_BUILD_VERSION = $(shell $(MAKE) kernellocalversion)
> +export KDEB_RULES = debian/rules.auto
> +export KDEB_SOURCENAME = linux-source
> +export ARCH = $(KERNELARCH)
> +
> +debian/control debian/changelong debian/arch debian/copyright:
> +debian/control:
> + ./scripts/package/mkdebian
> +
> +build: debian/control
> + $(MAKE) KERNELRELEASE=$(KERNELRELEASE) ARCH=$(KERNELARCH) KBUILD_BUILD_VERSION=$(KBUILD_BUILD_VERSION) KBUILD_SRC=
> +
> +binary-arch: debian/control
> + $(MAKE) KERNELRELEASE=$(KERNELRELEASE) ARCH=$(KERNELARCH) KBUILD_BUILD_VERSION=$(KBUILD_BUILD_VERSION) KBUILD_SRC= intdeb-pkg
> +
> +clean:
> + rm -rf debian/*tmp debian/files debian/changelog debian/control debian/copyright debian/rules.auto debian/arch
> + $(MAKE) clean
> +
> +binary: binary-arch
> --
> 1.9.1
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists