Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4204314ybi; Mon, 15 Jul 2019 05:31:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD58af1JngRGzuZwaMOMFJ1xz041vFjYcgBkV5DXuPdCifp02QqQhAsFV8ntX+u76g2lhR X-Received: by 2002:a63:b919:: with SMTP id z25mr26462145pge.201.1563193885802; Mon, 15 Jul 2019 05:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563193885; cv=none; d=google.com; s=arc-20160816; b=yrzybJdfmdKrwfKSRoWyFsZNbnwx8/HqRDonjEmE8cMdjXR78HCW/inyGciMJBWfCS FGT10Irbodo+uANo05k+KsuC5UrMV7N0Kl1n+qACZIXwwCxXeMs12ZhDcUcwXNeuw1Kv LJZrWcbCpaL8eqwQenqA5cwmplezEt2CQ8fftamIHUJ3bDlC0yIfXWk0sQCdpEgVcEzY 5fA3YZdFId/cao1hS3YSJThDLbronXM9DsWL7KKrPPJZn3FsDWXjLo6MnxMmMiPNQaaJ HqNuxg36c0XhKGHX/7/dcwm6AKAeQ/VHHHvaB+4SxS8N+iDZ26xHvyXfGOZRNjPY2zxZ BbtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=yAufAdrjbVZeLo2XKE8YwT7x8b4qwlGxGHKZaKC8OiE=; b=0R6/dV0gmErmzoz2kCWMgHwjrrsMuwYgIfKu/xAVcm2z/6bWtN/ySv5D6dHjp6tt98 n+wugfyGEpGyopYJyiU2fu8khj6gHYbrislb+WScGLlqjfEtp4z1NaPkVYjMCYKQavW3 dJ88Cw7OVEEQ6gnkAHWl7pVnGhAcZT/gABGQlfJNtYhrhn4GWgRaGK4+V3MKQqU7WCRD b54sx0K8cuxUfpCjdmzyaDKA6GRGbgBy9IFr7P5AEwqVz8YixFz6xu4v6WcXEMpOJy08 Qc19VS9BSAKmx8WiOe5JVsBm4laiddTs9XBJcOVH6hrO3dlI0TXrvPKUrz39ooO55XQb qAaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=epIJpluQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si15012921plp.179.2019.07.15.05.31.05; Mon, 15 Jul 2019 05:31:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=epIJpluQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730014AbfGOM3Y (ORCPT + 99 others); Mon, 15 Jul 2019 08:29:24 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:30835 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728933AbfGOM3Y (ORCPT ); Mon, 15 Jul 2019 08:29:24 -0400 Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x6FCT6cf021447; Mon, 15 Jul 2019 21:29:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x6FCT6cf021447 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563193747; bh=yAufAdrjbVZeLo2XKE8YwT7x8b4qwlGxGHKZaKC8OiE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=epIJpluQMn/A5uXoItj+a9fCiitzzHgVapQnSQ6gXwMCNTUr6gLM4wYLAi6UDqz9v DBqoYqnORzcTAvzrctniOj+rX4rK5gAs5njV3NOPo7xEBbJo9IwdolOvZF62FG1xH7 ocS8lNTxYbiZOPrcX0hL7SfezLKSHfU+1qQg1RQXhIkGDzTXI9T06SI7xYciSOfUlr TE0YU7P4guaBMWWsOV7jUzQF83dfpXHQkLcEjVJ+UnhhUKoisHb7suMi8WyW3iD9D9 QQP7Lljui+D5R68E6Gusped9NvK8ObE72zgHjetsP40KfJKm81x0Pigc7hOtJU1pJc T18TBJKP7taLg== X-Nifty-SrcIP: [209.85.222.44] Received: by mail-ua1-f44.google.com with SMTP id v20so6660096uao.3; Mon, 15 Jul 2019 05:29:07 -0700 (PDT) X-Gm-Message-State: APjAAAX5Vjnf5k6rX4rKG1QSNUa6l3fwqx5JLddRZppuhoEc8IJVqAtJ 3tONuoNrmqZF1l5lMP2p7jhxng+YvI6d8GwWpEc= X-Received: by 2002:ab0:70d9:: with SMTP id r25mr400188ual.109.1563193746045; Mon, 15 Jul 2019 05:29:06 -0700 (PDT) MIME-Version: 1.0 References: <1562664759-16009-1-git-send-email-info@metux.net> <1562664759-16009-4-git-send-email-info@metux.net> In-Reply-To: <1562664759-16009-4-git-send-email-info@metux.net> From: Masahiro Yamada Date: Mon, 15 Jul 2019 21:28:30 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] debian: add generic rule file To: "Enrico Weigelt, metux IT consult" Cc: Linux Kernel Mailing List , Michal Marek , Robo Bot , Joe Perches , Linux Kbuild mailing list , linux-riscv@lists.infradead.org, clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 9, 2019 at 6:33 PM Enrico Weigelt, metux IT consult 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 > --- > .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 > +L: linux-kbuild@vger.kernel.org > +S: Maintained > +F: debian/ > + > DECnet NETWORK LAYER > W: http://linux-decnet.sourceforge.net > L: linux-decnet-user@lists.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