From patchwork Tue Jul 9 09:32:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11036749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09B3D13B1 for ; Tue, 9 Jul 2019 09:33:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC20A28716 for ; Tue, 9 Jul 2019 09:33:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E017C28735; Tue, 9 Jul 2019 09:33:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2399B28716 for ; Tue, 9 Jul 2019 09:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=CqBxmy3TjrPuUef5SGaDP+WXCte2NhIVx8pGHBfd0Ds=; b=poA 0VkUezvDFixt5/SA/dUHBFxw3B1Ew5IpA3G+/nns20L9ojyGNyiHjAMwY8wiplHrC0s1Igw6ATbOL 25jEV9bjxyz8Glzj5z7b0duKIWsew5CsuSEoa7I+X/jfHJPmG8kd0kvGFBscpfJGl0qz+6FBIz4dY 5KtKggvYlW8lmiOyWp+AjHI/RDigSP5lIV72teB6e47VQr5KEwUYkpRXbvZRbgetIEivHwTkna3ro NN/tBSqDRYdV0/AXgX135lpA6S0gTFqtjarVYoh6Nzeq555BHuKgaO9OnKixcmDD7JjaIDvcm7lyf 8U0tb/fFB+N+DqfjMcC+TmfP/FvNMrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUf-00051T-HA; Tue, 09 Jul 2019 09:33:01 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUX-0004w1-Bd for linux-riscv@lists.infradead.org; Tue, 09 Jul 2019 09:32:56 +0000 Received: from orion.localdomain ([95.118.92.226]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N1cvQ-1iV4bZ3MRU-0122MZ; Tue, 09 Jul 2019 11:32:41 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH 1/4] Makefile: rules for printing kernel architecture and localversion Date: Tue, 9 Jul 2019 11:32:36 +0200 Message-Id: <1562664759-16009-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:uc03CDIsqb9vBEzIMWVZpyU2revDgAT8kF66aLNaXkdHn4yNDk8 p4J0t/KayKdxyG9BCpkBBkU883Z/mAiidkam56XGgnJjXVus1UnoYBDpSXCbbaXo1F1J5su 0JpsapweoM8r10i+aYj0l1EFuPRJEhzRcGNdzVlCONEBw8XcAK7B3G8+0q1mD7EpIXP+Hja HDptjN8qIK8MJh3DG/8yg== X-UI-Out-Filterresults: notjunk:1;V03:K0:5EjeTTw4q4M=:HMIXZz/XPCgvbro1gN0kmS 0nX4PljAVK0pGfLMSmNHN9UrOjhKd2+AqneTIQGzFw5yQ/pnOsgMDtAiXFQ9zUxb2jbbbgTDV 5yvsErr8Jz0jByZBkKxdHNlUFhTTxlXYQzYbrb5Kvo35y5gR8t7gXfkJjy3uXCdQiWy9D9NT5 0MYsr6Jciw7CRPmjnfZaIRA0Cf8yNpzq/xvvjoc5oW+uPoREGbJZt+LeNPcit+iXMYRAE5N9O CT1um5XV519QyBF9W/uoVNYEmbOzo0IT5vfxv4q3GNMlKAuE/galW1VV0SpIINF8UFwKzrRON qqnk9AvP/PqLR1V+CRnAmlU+DtVMCZYGxMLZa2J+Dx8h+9O1RanxF07IamZafWThQZOO75swt jz+wS63UXk9bxQVK++XIJtpjnJ++lfCuSFHqNjSKhmefETgihL7LEJxWDkwFOmp4azkI84Iqj IgE9h0Y2+4wtJuVu5jrYuVXd4fvnY6huF8ei5Z7TOJloj4YdneL09kD3708MXOLlLhrzCPf8V MzDqAU6Xi0jew2LhFsNcycoAHgV2OZtvSCAw+aOonwcAWTc5S3iG5w95TZvi08Cgeu+uTtEHP rl0XDuOKIqHkUlF/oYKheO5UdNpbCmTDCyKgY//6ANXvRy5TFyBiSIPCr8g2fnDMh8Qfawnvd bK0aN9e+ttkHA46Gwo+Ow1qgY/MFRqb9SGzqiSCxWhE0lP3l3WPZ5Eyh6ZwfrV92dVG/UNyDF t1pOnuS9iki+hbpLbuNXRepne+gP8YxEHhjZLA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_023253_698198_885D9CFB X-CRM114-Status: UNSURE ( 7.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, clang-built-linux@googlegroups.com, apw@canonical.com, joe@perches.com, linux-riscv@lists.infradead.org, info@metux.net MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP trivial rule to print out the kernel arch and localversion, so external tools, like distro packagers, can easily get it. Signed-off-by: Enrico Weigelt, metux IT consult --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 3e4868a..5afc3de 100644 --- a/Makefile +++ b/Makefile @@ -1706,6 +1706,12 @@ kernelrelease: kernelversion: @echo $(KERNELVERSION) +kernellocalversion: + @$(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree) | sed -e 's~^\-~~' + +kernelarch: + @echo $(ARCH) + image_name: @echo $(KBUILD_IMAGE) From patchwork Tue Jul 9 09:32:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11036745 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC51B14E5 for ; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB5472871E for ; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFC8628716; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0281428736 for ; Tue, 9 Jul 2019 09:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qSVNNzHOU+jPC+pdGYPZHviG4iSZdsHo08v9Vh85eZY=; b=DvRHOmrzN59okAkRubZvVxP2IY TzQgliQwFQHBUpRF/K5r+YAu5cnMaFoAv5HHLtEMRPlLSAZMWCgVBAxE0LskVYd1usS5eTUIzCS3Q a8mw4FPEt3jr4t1dXPn6KzPMH+CvBi+UqSyim9VnVqDytTeTnFXc4hbsH/qI3M4uYJjJFr3N4HyHp 7irxGnBQ6g1iI1YhVW6tOBnhNZ/DV5W8ExT3EJDCb+4pHxlkTMpz81yqXLs0O+gAKSwicmr1NjPc5 /K7FBZsALtHTZwNYOXYdt+BAxnEjcP6dA92xcF5D8B/f8ASdTw0jWARQV0YBCT9BPs0hX9v7KY/22 D+OZjA5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUa-0004y7-2y; Tue, 09 Jul 2019 09:32:56 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUX-0004w6-6z for linux-riscv@lists.infradead.org; Tue, 09 Jul 2019 09:32:54 +0000 Received: from orion.localdomain ([95.118.92.226]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MjBNV-1iNfXb1B1p-00f8fy; Tue, 09 Jul 2019 11:32:42 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH 2/4] scripts: mkdebian: allow renaming generated debian/rules via env Date: Tue, 9 Jul 2019 11:32:37 +0200 Message-Id: <1562664759-16009-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562664759-16009-1-git-send-email-info@metux.net> References: <1562664759-16009-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:8RxMCZ0EExgOaxV88l74wKMkDX0CtH6zeqLohpBk6Mjl+jjrB7B Tw8pgUAQp78XVLp1IriBcq4lhAkCL7Hd5Usj8SFv3A98K0WsN0eTVviF1exOx6VwMR0dLTW Z8zgDIK5zS96kRCExRpcoNeYNM3QyJ3dxFRddf5f/idPUOelcF6w4ilgjWhw7jDyj7gQRyd WmiIQXuTAY18e0UoH3uDA== X-UI-Out-Filterresults: notjunk:1;V03:K0:4vHSzAF5fWc=:dj9t0ZG4mhtFfEmznKOVdL v6HsHLvPp50GhgFAMg0yKB+fcmYn9UamoNf8kZcnXPqW3r6Swrg4P7KNBy3gdc1ojYDp7MqOn 9uDtfDMsqm6lamwRwfWxSLeWpu0CQ9HtkOZvkRQ0hlU5zlXHxxWgCFcsN8Halyvb41bZLflGj B98txiT0qI7iWLo8cRPv1YGKGPZ42jkpfQbdUI5s8UkRqAHIUIXVyldioQawpmvTHqQiqBL39 D5OfB0+9e1NIoJ9gdBM/z/fO8B58siNjcWeyKyrUV9rSh97SZmYSJ6d02u/WRnUkQAR3CdpH8 +X/xrvhAnVoHSI4Bx42NfSEV57Ut+XfySDBEYqK0Fd5wzFiUgGjtbO9sffq3FgMzrPAmEFDPC 2Sp3iw3e/RVfhZ4tTLK1y9NYw4ar/7CSKHEZqcGZXM7yrrY0E9IPAWK6ZtHiPq3Fz4kQZD/Rd MEoVridzPCsjKeEZXyRErLrpu++VrdZB9i1aEC2nL0D3aiGF6eG+kcSLZX8q4nnzKHyEu3zq1 gTLIlNvyCv1H9F9lpBJ+5fXyDJINLY9Fzz8HZBch4zMzdfrEQzesTUPry6H9YfGB8Z6Lyy0Ml yG24jGIQB+Dv9/wHZX0lrzH8fXHq8s75RxB68EUuYdN4GpvjG3y6M26wIdmOZUp5TLqQQgGay vXE7OLDJzqxQ46K9WaRsmMrsps31qiLnb4pfFYnGDyEp9tJ35jOoU6EVSffdekW/aHDGZmUUX 2HGiHjpLZgiYxsOXnqIeukT3KxYwUL61vfgJZg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_023253_613962_8DC6E072 X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, clang-built-linux@googlegroups.com, apw@canonical.com, joe@perches.com, linux-riscv@lists.infradead.org, info@metux.net MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add new environment variable KDEB_RULES for controlling where the generated debian rules are written to. By defaults, it's debian/rules, but packagers might override it for providing their own rules file. Signed-off-by: Enrico Weigelt, metux IT consult --- scripts/package/mkdebian | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 8351584..7a9ca4e 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -99,6 +99,9 @@ kernel_headers_packagename=linux-headers-$version dbg_packagename=$packagename-dbg debarch= set_debarch +if [ -z "$KDEB_RULES" ]; then + KDEB_RULES=debian/rules +fi if [ "$ARCH" = "um" ] ; then packagename=user-mode-linux-$version @@ -206,7 +209,7 @@ Description: Linux kernel debugging symbols for $version all the necessary debug symbols for the kernel and its modules. EOF -cat < debian/rules +cat < $KDEB_RULES #!$(command -v $MAKE) -f srctree ?= . From patchwork Tue Jul 9 09:32:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11036741 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6590D13B1 for ; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 540472871A for ; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4745D28723; Tue, 9 Jul 2019 09:33:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0287028737 for ; Tue, 9 Jul 2019 09:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gy0iddfcQK2NfaE9yJX03/xUqBQ9ylreWvB6LNsYXXo=; b=gKx0ytAMHEBVWtLEKVCN3ZNEIU Suy0tjl/j4DTu/IW+PDeUC2RVivQfL7FX/B+Yk9Awp+gBHzxuaxXUWLyqPURJwjCV2x8Zf5LOwQVJ I9gi7s1SNf5kk9LYxRiPQX0SP+981iPn2pBogI2wK2lIDCpLjO6vOF707lfshGbkGWAzsvpoHmym2 riwuO7lUsg8tsdrH/6c+/4ey7ars+wlrD8YnucMO2IwRtkhP7PsA2wU1EwKIvMV5snSNVK4g5avjw QVl3aealGuW7jNJtWmu2W7KMYW7pJWhtL4e0ZltJVSFP4GEWP2YoKERDqanDa4luKj1GCDb5sO//a auAHk+5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUc-0004yv-9R; Tue, 09 Jul 2019 09:32:58 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUX-0004w7-97 for linux-riscv@lists.infradead.org; Tue, 09 Jul 2019 09:32:54 +0000 Received: from orion.localdomain ([95.118.92.226]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MuVOM-1icC9g2yKA-00rZ1p; Tue, 09 Jul 2019 11:32:42 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH 3/4] scripts: checkpatch.pl: don't complain that debian/rules is executable Date: Tue, 9 Jul 2019 11:32:38 +0200 Message-Id: <1562664759-16009-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562664759-16009-1-git-send-email-info@metux.net> References: <1562664759-16009-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:HweSVGl0vn7e7vNXNWQVSJQNHHYL075aDXcvaRyc/GMMITZGxnf h0hvJ/FmBbQVefDRdkRV1ZD6FkMCg1tQ/T/ixiBUY86tYRGrvBz2s6pg3UawtxGPHRid8YH ygjyVh9KfqadSy6bBbra9p9ubbrcZROj6JI9FmZfpjlWxdniMeI6gD8rdYa4rEOaA4QHogj pXzHFAnez9yKSY0DUP5vA== X-UI-Out-Filterresults: notjunk:1;V03:K0:MlHMSL1MI5Y=:vl/4VtvQv1xavzSbwRYzlH SIW68cUFN8QVBCRz2tj4iswvcWAkPJi2JWAxG6CXekKIeTaz4LrXsSWAWG8iSTQcps/Ic6NY2 Jc7ZET1i5v+1kmF2zoUgEWB5MYw7wdLUQ9IkBeuTvRDWisJ8lRCiWOEptiIxIlQlyYjjk6O5m Hak2fRf7kaeew7WCqGxWN1LDsuvJJXLffnJHxlVSgGV8REUle4DEqlXUm6Oh2Kqrxx0mzQYUL FtWosfwQf0A7rlMJuFZNqkydq3ru+w5qJFu68SbPPc2lKBvIeZtEuywByEXkJWIezmbFjdjlq NUPTeGeBJa+tDJNUC6NQIVe5lEZN2UePGHGX8ix6wvivfog4Ci8HteTIKU9J6eISN+w6qWkRa /Y9uJzWeJiIP3C8gjpTf+xEaioS9awCunw4zxSKyIxuoKvSzIiyGfHOl0iZydIdS/YSXcMM1x iqoV9Xmp+6FVl9j1eeeVLhrF0RtjBknXdlsMoz3cmIB//k6New2j6PcHjF+KDvcWMe2756UDr 1eJ07HRgJUbL6s0B/olSYOzD2LsZdgGiAurU0pQoWv+k6pWze8/tTMn9or6yFRi/vsdenbCze eN2AlOadohaGx5PpxZKK/4QX0l1E+vrmgqZIkIPZjRv9xtYDPCG0vGGrOPbfkLDshD5FnDa8+ a7YoiBt3iOtaaaeibiRzpO35i9BmeOSkVcMVo2V2GB5GR5Yjmezx0CAdfT3BCrnALqVDcDfdV LX53yFrzp56nUtHPzdzcQYqGFwBy7Pg2mba+0A== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_023253_613098_982BB832 X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, clang-built-linux@googlegroups.com, apw@canonical.com, joe@perches.com, linux-riscv@lists.infradead.org, info@metux.net MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP checkpatch.pl complains when adding executable "debian/rules", obviously a false alarm. Therefore add an exception for that. Signed-off-by: Enrico Weigelt, metux IT consult --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 342c7c7..caf0146 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2587,6 +2587,7 @@ sub process { if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) { my $permhere = $here . "FILE: $realfile\n"; if ($realfile !~ m@scripts/@ && + $realfile !~ "debian/rules" && $realfile !~ /\.(py|pl|awk|sh)$/) { ERROR("EXECUTE_PERMISSIONS", "do not set execute permissions for source files\n" . $permhere); From patchwork Tue Jul 9 09:32:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 11036751 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CB94713B1 for ; Tue, 9 Jul 2019 09:33:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B937328739 for ; Tue, 9 Jul 2019 09:33:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADBF828723; Tue, 9 Jul 2019 09:33:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 66E002871A for ; Tue, 9 Jul 2019 09:33:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=m74gYqvZfZcA1zY88o3Bjf1bVenuBnsA/QNiFgJGVDA=; b=bs6MX+RtP3RetlJaLY5aXEKdQL AfUIEwNZx8aeQ+IxFbDK9ZfTcyeZVxjVX+yOEaNgv5tI4jzXsN9OJvnrFW/2qB1qXfgPsYb90kk5D +wv5+z7f5I1CmUnLcwi5VaVluuLZSh9uoPuoGUiktXpdxRb8DFg7P3/W0pSeOernAbiQBZ7nalEV8 Nig600pVog2xEtHC6xEDJJ8e9V5OUjFGhnVA2S48/G4WfrsFLcYWzKGR+EEgH8oZEoLgnzhgD82ZJ /gC8jnxfyiIFYWi8GjrNBODETvTf3rDQ1SnLbDY3hO4656afh9Tj8yP1dFj6lpT/vd/fHbYrMOSu/ 3ODq90Yw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUi-000545-4k; Tue, 09 Jul 2019 09:33:04 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkmUY-0004wD-6d for linux-riscv@lists.infradead.org; Tue, 09 Jul 2019 09:32:56 +0000 Received: from orion.localdomain ([95.118.92.226]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MjPYI-1iE5gX0bP8-00kvBV; Tue, 09 Jul 2019 11:32:43 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH 4/4] debian: add generic rule file Date: Tue, 9 Jul 2019 11:32:39 +0200 Message-Id: <1562664759-16009-4-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1562664759-16009-1-git-send-email-info@metux.net> References: <1562664759-16009-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:jKhi6lLozAg2IH0o7JxX5GA0JrBrDeDdVL9UaNzdpfsuRuXXdTV GI0COtD4SErDVWUkYTz05mOnJcH5X/9+2q58oyRs4I8QRh8V8dmXRfNAO17PSehGOQDaKvE T86Un6w4CkuFqM1BEOaUtpLVTajmWf8839oXpIAv39QprOuajLioZw0INYZ2ADT/nQjnnox h9/HUqdMxsemWuCFaUszw== X-UI-Out-Filterresults: notjunk:1;V03:K0:KG8HrKoByR8=:sD7hpa9EF7H0gm+eHv8FMJ eToxSgaDCL2tS7/7qeZizHw9wrPfBUjOn2wS8D18q732Bp2D41jPky8AozMIAw7R/LIbfZXR8 A5sx+3MTiQ/pDAvI2pZMxdGBoPJ5u5BNt6awmg4yc9phCoXqmIBIrxmdp+sGzPjnRSUiEf0YU aZhpyKxUGZlNVsvhnSdsFF5h7g7uT5kd7g2tM0VYEnQ1LFcfLO7Ne5+/HQDzJyujre1QrN4ew oHozcN9VdBtr9WJusQ5fK+zIoh76kWzOx276MOuz/nyS5f8FXhctXHnSIwqgLQFOczmDSj+E0 a6pvaM5nMDRWySMKmRV2zFf5QidVovrV4HfTyrd4q/w6I99+ti3+htOavC/nYvxJN2LfSO36a vkYW+pH1JvNTtDxdUBVL5jzf5qcsrlwxawqXlw9mq3oEsUqOThEKe/NUIOxRMtrgxjeJUMirV P7wqY0afXUg/YziPHJktc8Gbn929tQnKEqeTfADV9iOy8W0IrN1AhSHK0J2zBLttCTJHcXr+s msbEx8EIncqkiW5vsHmjr+Nt9PxKFTbwpdTTqdj5uiyYWRwtrS+nXQbzee54brvKtJpBpnCR2 0FJQs50BkAYFq4GtgEjN/u3rCEPq69/IkHNqTGlIX96qx4TNo76e48vsUqpFzJr76vgYyw36a Y9ZGcju44Ozk8o8UmS0QrCijrlp6H+uEe5NMEee3/IBulmy85YPUvaEAcumQWO8aFo1MFLYtc /jbsn7xsaXVtF5smAt8LF4LIuPp5exCYzYUgfQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_023254_534401_4F756D7F X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, clang-built-linux@googlegroups.com, apw@canonical.com, joe@perches.com, linux-riscv@lists.infradead.org, info@metux.net MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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