From patchwork Fri Mar 8 12:44:20 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: 10844607 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 E962D139A for ; Fri, 8 Mar 2019 12:45:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF946288BF for ; Fri, 8 Mar 2019 12:45:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0C1428CC8; Fri, 8 Mar 2019 12:45:12 +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 79712288BF for ; Fri, 8 Mar 2019 12:45:12 +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=bNbKv9odvRfVupccvjX3EPJg5Fi3+IQLHZx6Il32GPo=; b=QgXgjmYo6I6ARb6HFEph5SAhKF FdUWN4Craq8+5ejAoTszTcDW3kZUYQligxmj+Rl4hi2G8LXrx/Jft3FdOkKjriZTMd7iUulLvN5/I Nq+Mx/1nuMXgxLSGv192yTuJSA5156Z30etmssxseW0noYVZSuY9ikU36iC7h7CHbWikYZ7M69O7P SsMxBTpuGSliSnsWbxvy+HmctemxKc4400xjKE/QiDMwShBAqNx8Qh23Ztc+MDQgyvPfwAIwDTJJB iuY7aArqv6k/drDLjJIxjbZzzTlyfYAywu2jxvqgnnIkjTSuDJqcJH6yqAiv8WV2Z5V7SSQzyjdpv HLmT3utg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2EsA-0005ec-3w; Fri, 08 Mar 2019 12:45:10 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es5-0004k1-7P for linux-riscv@lists.infradead.org; Fri, 08 Mar 2019 12:45:07 +0000 Received: from orion.localdomain ([95.117.97.241]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MkpOZ-1geygB0CQp-00mHtV; Fri, 08 Mar 2019 13:44:56 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v1 1/5] Makefile: rules for printing kernel architecture and localversion Date: Fri, 8 Mar 2019 13:44:20 +0100 Message-Id: <1552049064-32044-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552049064-32044-1-git-send-email-info@metux.net> References: <1552049064-32044-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:+ixOwLE+asB1gu5KRcJba3ZH6tn0P8p/UELGgM50mCP40lk3VeI GKZ9QDK2s+f8m3Ah3aDaWOw4T4JtMaBLkb7JBxD0Rg9kn7ql7tOpmnjavKihaIXuiQ8YYHE Lt65GwcFTc0jV3pYDy7e8iwANSCrKz/7tTR9k+lG+6Z4DByebo+772xXEChCPEM1rAooED9 OxPvxZE7hhSvQN/ksyB1g== X-UI-Out-Filterresults: notjunk:1;V03:K0:byOpdQzzR6c=:wZ5M0Pv2bS+7hixhgm9M0e UGh0dBe7Em9HsXAsbvLjTSdKGUB2cTtRCFx95JcxkPRbK/vcc4/ToJ3wuPdn7pro+IdzY+qMY Oq556zVtK/SydgkbcUJEufKS9FjcVS4pqcOKEoz3bAVWBOfxqEqguivy1JikAwAM9YwOeu8Gc CB0jhk54YWBJ2chxMrsCQvkxhP3jIkZB43hmIEKQVvTdPcKsuOzTwCncAWKKP9x1jr3Tdcjnl s62WPrDIg1T7URHmBQ/kTkV5mZzSKFBt/l/NHbQ4BMJLWT550C6BWQHWMuy0BQcUWTtry3GOW frFGvCyJQV3CDmy+aKDdbJMHQM8xqW9PqCtubtBJzUXRo/ocxg7vQsK8VR18z7/kWySvqULkG LbLVJ/1MS3Z3YwNObl5yr+aN9huVhalYgxbEeXhRh7ZccDOl4arQntWyowVRKSUs9OOvhdyrU 96sDXlrF4MKI7WwyTrFJUyNy5Oq5vZVgBjM+9D5/be1/1LQzCJ0zhGFZ4MfWks56S+Z7YZ/+P 3OvkhNY4NfO6N7/n8DjiUtA50CQCo3FMk9t7MFy3PM2qLE1/uekt0tGZ1jkFzL9+8PQlKaMdl jXqoqsWqqMP1oBo4cTa2qZM+lhnhkrL7gsrkh2HvN4MKkaJPqhrNhuptG5q8/2XWTc5ThrPMP HD+AQBhpFx5OYGDDNuF2Ec5h9W2fbO1X1Pwb7dmQkTjm3eXBSGnjWUJfFm61w/IJUXYBvePJL 3Un3nXhWIwGDgId1AWN8+e0e+i4CyzZH7prJnA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_044505_558387_252AACC3 X-CRM114-Status: UNSURE ( 8.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 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, 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 f070e0d..95b50f8 100644 --- a/Makefile +++ b/Makefile @@ -1664,6 +1664,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 Fri Mar 8 12:44:21 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: 10844601 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 98411180E for ; Fri, 8 Mar 2019 12:45:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D20C28AF4 for ; Fri, 8 Mar 2019 12:45:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70A492E096; Fri, 8 Mar 2019 12:45:11 +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 E916728AF4 for ; Fri, 8 Mar 2019 12:45:10 +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=Vg2I0NocP9HyeIcOWbcvsAZ0NaPcwsy2lvsGUKZ57pE=; b=PBOhguCGzhU1ZXmjbpBz2tbH4z OcqtrOghALgzqrkSpnMuZ0Uztlihhtbys7co+/viaGzigFPsU8C0IM/k0RVUJcFn9rkHsiovcjLsS dxpJZhtJ8ClIsLaEbi0ra14HiVxhAHGxO0HAB7y43jzAUqyfjQV0KJtRg9VuQuts9fmk2wFRR94B2 Cnrh5iT66Wyr0UQD6K0GJ/tFo+Rqj36BihNG4QBNc8BHp0I36W11L3EGEcMb/fNr8Zn+CzBwGmboX GEs8xDvPBm6hAFaF5HQjmt7r2KjnHhVKjLQnYmZ/3G5YbsFKqT8CmhXeCictFZVgYtAgcpqvfddOx ejcNugfw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es9-0005dY-Fn; Fri, 08 Mar 2019 12:45:09 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es5-0004kC-7R for linux-riscv@lists.infradead.org; Fri, 08 Mar 2019 12:45:07 +0000 Received: from orion.localdomain ([95.117.97.241]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MBDSg-1hDlSw1ZF8-00Cg1k; Fri, 08 Mar 2019 13:44:56 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v1 2/5] scripts: mkdebian: allow renaming generated debian/rules via env Date: Fri, 8 Mar 2019 13:44:21 +0100 Message-Id: <1552049064-32044-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552049064-32044-1-git-send-email-info@metux.net> References: <1552049064-32044-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:m9Rcq3BkE+/KvFJbr9DS66OIa5+IPcGvacRTbXUYkat4jkIKp67 jFs28hFyLa8DfHhjYnAtUkfclhzCAsDp92ihbMhfnksFK/tTGWG3WIwpMxMdV+ezYSEc7ww Q9D/6Da5Rkk/8MqctcZMp6+JP0DfK593YmtEPj+pPkv20+eCznPU8wnmWdGSUTW4U7N9qoW hfsntRIN1y/m8dcbv1kIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:72OANdqF7Us=:Fn9cqmapZiB3bGwAR35+8F IHr+jgS30cSpuItHM4y0wvcNfJkfdRoDFkUdcP3jE+hjuUuX9kP3R/bTSMaYf5ESGO4CjduKi ENZyftorCeiw9+Zr5f+zLzLiLADsFPxY4R7wj3qYcJUvtXoAAhm0kWdVtMetiqPg0CluaLzyJ 9Ly24m6PfxWD/tcTnHW6pYQ03YDQ78Jtr+ljXnK0pXQkrY8Jjann6MWmDeiC128e9sgzi45Vl acldZT27qlFYiCVC/hlEn2HTKOZRv+6GUDI9Thjbh55en0j/a5nmgbzjCbcLJaJNoPh8T4L71 f4GaVVol2jrMvXA8wid4j9j+DPidN0CltitHI5UyAP5Er0PNqudMRcNPAH47+zhE92YsFxJ+9 krnuM8zrkiYibjWixkZJgfVgQ3Cq/pSVGS9mdJRJgwhb+9K/UtkAghSeACeyk+BTwRL90bL1v QtQA1S+rI900paM4zHrpEPsgsjvnGgaPqkmbiyArZQ4CAgOF+nH0Fe845PjDaj5SECTtvtXni gNc8Ys8ZIV1bqG7lHtT0ThYFplkrWA/0g94oQ5QODtvE+E1hchju7lUS5nYnMhW6ANDNj9pTO pUzalEBM2JEclMKctevY42t7IuVcqXADqq7ypBG05ZdpyZZsQ/vrNFYgfIvMa1HCOYVEUlglc 7lSnryzX7RZU0ozdk8r7k3HYFBMUXD3Wl0OPee9LMCRwQe4q5ggTn/hWSHMaqm+Pm8zFbC21m CVw9nQyCgjNp1fnji34IlBiEJqUFoFqD5Nt1tg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_044505_601735_805B5DEC X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 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, 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 edcad61..ff226be 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 @@ -202,7 +205,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 build: From patchwork Fri Mar 8 12:44:22 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: 10844609 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 84702139A for ; Fri, 8 Mar 2019 12:45:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E351288BF for ; Fri, 8 Mar 2019 12:45:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61F6628CC8; Fri, 8 Mar 2019 12:45:15 +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 13D14288BF for ; Fri, 8 Mar 2019 12:45:15 +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=+JKNL1nvUqgfuffZ5tG8wXCsTBdAFk99RlvMclo+4OI=; b=lb12ddIS65X2Aec8XSxR+u437V TkDX75zNPFkPxs17p7iQOJhjlcg3B+t8c7Mgui68T+0SStntXcM+LM6+dpL8saNAPrwfFShQx3AR7 0GU0aWrQVzx5rgeDCpkNj/MokqWBxoYs6J2SIJP+5Ggl+BhklKuOJwkLSC0qGLiNJv6geiN7jegf1 KbjoSdk99eLRyjxu7mh6G86xaSfJ1Tq+xxGgSMKFV5GyFEn5sj9WFqYCbx/QDaio3EF7GSUS8A7lq fh6g+/9I5XD4+Z47v42PgILtjzeurl7nYtadpdmZCto2WKpGjAZ2RDUergic38+KIflkxuvMlIQN4 +vEdv4Yg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2EsB-0005gM-7U; Fri, 08 Mar 2019 12:45:11 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es5-0004jf-6E for linux-riscv@lists.infradead.org; Fri, 08 Mar 2019 12:45:07 +0000 Received: from orion.localdomain ([95.117.97.241]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MXXhv-1hZz9T2kzH-00Z0GT; Fri, 08 Mar 2019 13:44:56 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v1 3/5] scripts: mkdebian: fix missing dependencies Date: Fri, 8 Mar 2019 13:44:22 +0100 Message-Id: <1552049064-32044-4-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552049064-32044-1-git-send-email-info@metux.net> References: <1552049064-32044-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:OWyby/vHANVNNMYaidRl2wwWpg1kO3p0r+hXraXU1Tf2ssUBzr9 dyd6kvrBNBzqHxakCo0LQvcZlH8oNuuanpoTRkLEDqhoKGHLBUWBBUHPewtPmpnDVpBsWGx A2Mc/4Oqf8j5Kv6j89BLnNndENBSOGj+64lJZ/tp1K67mk3pWOmA/KUhORhZuMo2ZPDozPn i09lGvD/uHC00uMFqPTyg== X-UI-Out-Filterresults: notjunk:1;V03:K0:C3yabQBAdw4=:kGWe2kRo8q+AWt4ba012Vj XCERP/kV+/9ZHCa5QTWgZBdOIs8G+ZhuKlKIl5746z14kYPdEwlW66W9lWryVBugwtVpbCL+n L3OhSeKL41CrzOPgNpSaV5xValD2ditTBFtmzHRet2zIRJ7vMaIAenNHFRe+MDMb2DSpRBtMW q5oWLvfNUFOSPoV0bDVgJ6Uik88MiQ+rC6rk2/LQBLHT9B4KwvVZo70oiXa19FszxjS1nuuPH yuHGk0aH4o3t1+LCErjj9iqAdmISOaoijCmwQmiJePUDUpRFX3UOM6C2UVQAuQbgNvDfQxzZs SwjwQJI1vAz7gpAW2yDkRncu3O/+N3ZkOXp5XRTRHIVHdhR3YmplAvpB1AVX7iKUCYfXMs5H8 mWqdJtYGgWWKtpIdoQnhR+3R9xZRiRsccht5NkUgYbllXoEvyfL8YFVEesdJ2vfqXI3AK4BHA ackWEUsIUrFXfceF2mWUhEcvOe02afBJU3H0kK9LsUdUulfQ4EyUh6ErvW4/mBbNRCVxRd0sH vsR0/6YsbyeJqKkigvAMHM00uECaclJ7XuG5Bcn1csAZpAe53ajJqJYrc+7QIa1rLHgm7ApmX nSO+cFTM5xWQ5JRXjOo4VJLdzzDIEWXgkUrT6TRH7Btvo7z4NC7kCD2pmx7DpqLqHlAr10dTg 9I177g1/iEv5uH0R7RiLjpU/AyA0/ttCJMqx+T5q6aNVyiBspGvyWPa2c2u2fwnA43jYbA2TE 9NaeDj4AAEev+hcQgN10C01W2/WfyDqMmkTTCg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_044505_533863_FD3ECB52 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 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, 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 We missed some build dependencies in the generated debian/control file. Signed-off-by: Enrico Weigelt, metux IT consult --- scripts/package/mkdebian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index ff226be..1caaf0b 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -173,7 +173,7 @@ Source: $sourcename Section: kernel Priority: optional Maintainer: $maintainer -Build-Depends: bc, kmod, cpio +Build-Depends: bc, kmod, cpio, bison, libelf-dev, libssl-dev, flex Homepage: http://www.kernel.org/ Package: $packagename From patchwork Fri Mar 8 12:44:23 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: 10844613 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 4BE241669 for ; Fri, 8 Mar 2019 12:45:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3488D288BF for ; Fri, 8 Mar 2019 12:45:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28D3628CC8; Fri, 8 Mar 2019 12:45:18 +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 90FB3288BF for ; Fri, 8 Mar 2019 12:45:17 +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=WiNomByVT1kUZ/UfDK50IM2sssHSKO1eIxvjoU87rlU=; b=SOKiosQSB+0QIFR+HcChOb99C8 1aKvTWg2sYbZK0y8Cf6MhTReoUVlY0Ymj4EuA22VXXtWr4fbSFhSQSyt2uFL6zK7AReSPaIwZ6/Yu S9oFyqEkJ+bM1Kwf0IJFJcHiRFXKmOxqbgDnkzvxxr6vC5XJFTpG5qkzH/Fhfz3xEFfqN5JHEN6b2 ZQU5eITAWw2RWjdnySCCX46xrxo5vbA9xQNZUjqJaYHfvZSW2j/J7CB8mtZVmWRwKZLCgVMdPmyC0 iQsGXIbDM+Zs9c3B5f93AcfdKICnldwqLkjpwisPlvnpjhjbahLH+tcdgj0/7wxl/z6UKxyD3Sl1/ 8UCjrdmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2EsF-0005mD-3k; Fri, 08 Mar 2019 12:45:15 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es4-0004fX-Or for linux-riscv@lists.infradead.org; Fri, 08 Mar 2019 12:45:11 +0000 Received: from orion.localdomain ([95.117.97.241]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MofPt-1giqIb492v-00p1Rj; Fri, 08 Mar 2019 13:44:57 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v1 4/5] scripts: checkpatch.pl: don't complain that debian/rules is executable Date: Fri, 8 Mar 2019 13:44:23 +0100 Message-Id: <1552049064-32044-5-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552049064-32044-1-git-send-email-info@metux.net> References: <1552049064-32044-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:/aNiaUTcsj0E0j3M1ztgDLgje82UwrMzNDIplcsHJI2w0y1jPex lBc1jxG1uC7xJgvWhw4rouzoilkV7yqW/9Tq8XIPAMjWXnnOJKjBV6MGmCp3I2QraIInXUh 4vxqwof7CSAWbwBwOipTJcnCKF8H/9aNOKVGUMsPcCPVGXGnGv50lmzXM9jlE8CvnejGkWL srQtQvyCr1NK64OdOIjIw== X-UI-Out-Filterresults: notjunk:1;V03:K0:iufGRRxJwrM=:VSD9inoEcc4w9+KSPmEqd8 /TJ/kCl1rzv9d3REDWg5lmPecDKuK2Esy2ZFB8RfTGWhJ4i17n1RlqFsMSWwso8enWm0j7X6T FQJPb+Huhi021jTIdj9m7pM6XnCE28N534PAupd7Sb1B49K2vYlMSiIsOhBmjyA9uyuBOtmsC 35tdCKppY+ZotBpj0IGEcwSS6CnD0+hMGBfgrd/ymeQaC7WEs/gSxYnJBHtfAHbcN+ctwpU/f m+YwhvlZEKR3iRybAKem8jao0LCtTHq+S5u4Mz1bfs9EECP9d5C7hlEGg34aI+txtrpLyxnzw ObxOtnyDJC1hFMDG/4k35mOa5PDeNl2j2lF28++FenM6cYNaPaYVk7H6dT2206Jg6dDQNQavF OGXys13EmSrpAf//kBhHaI962ksvsjS0G9zFkiZ1idtZXA5KhlxYGiDgochicAVeItl1/QtRu 2OgdzAegfq9yb9RW5EmLlfmbpOP4LCN4lKcF77wdiHTv0Eiwbr21gULtYQhHZ+KhQn/L0TWOZ 7Kv9behPo1vEareB/8MnUwYibjPlsT9HBuCC1qU8uxJAGv+aKJA39KyZSERJX7+PSCygGtCL7 iRLz+GxL307pBF2Be1r7PdiV+xpUieX8YshQHXeMXFwmKoPxyeE5rh4XnSqcDU7b+klBS0J+t G1qg53Y5N+8dfJRizYf/If5irxMICIwh1eb2OIcBkf44rmPNfOKw9x0zTB8+fe2ZC+Jk4j+Sb G9dNYVoNwg8VB1DGrnx534zbkzf1ZT2edA9CoA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_044505_144849_A255BB9F X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 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, 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 b737ca9..7bcc70a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2576,6 +2576,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 Fri Mar 8 12:44:24 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: 10844611 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 83C2E139A for ; Fri, 8 Mar 2019 12:45:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D37B288BF for ; Fri, 8 Mar 2019 12:45:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 613CB28CC8; Fri, 8 Mar 2019 12:45:16 +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 01150288BF for ; Fri, 8 Mar 2019 12:45:16 +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=w7KBHKNhi5SfrNhp2VUMRtaO4gKz1mistj6Po8E/Ekw=; b=cCBH1Eq43HHFwqUNVVKYzxLxWl Rt5LpndVSyRqmcfwkxATHwQChu14RtPu8zEi7+EdiCyiUuey1nG0CaUU3Le8WR+cIwNeZWnLbNp7p MtRmw9MP6bTaNPqvwYjIjDdWmWReZ7YzrX5vXzhbQAxi4UzW5HLsVMm1Dulig8SmBmvptSVsXIgVZ ZFpGKHGQEBHpjv/+HNW+ZjyVoq5TSwDnIGh8gl76CRiA7kDDTJJg8bE34Eq+p3ceOlNntBXeuI3YW hgmdpXE2So77S9QJHhGJ0eB4ehUHnvGffVwhV10KEu0cunNk9/9r4CP71hr01Goh8QXErGZF1A7DJ g9O1keWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2EsD-0005kW-P6; Fri, 08 Mar 2019 12:45:13 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2Es4-0004g7-Oq for linux-riscv@lists.infradead.org; Fri, 08 Mar 2019 12:45:11 +0000 Received: from orion.localdomain ([95.117.97.241]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MPXta-1hNdLH19gA-00Mer2; Fri, 08 Mar 2019 13:44:57 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH v1 5/5] debian: add generic rule file Date: Fri, 8 Mar 2019 13:44:24 +0100 Message-Id: <1552049064-32044-6-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552049064-32044-1-git-send-email-info@metux.net> References: <1552049064-32044-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:R3JLL8sBMmKhfDQMbrg5EzF+7Ba57fKqfYnxGB+ha38n1r8aQuP mjTGpYJcbAnimrTFaSV9++tGRGm311DfVX9fpqDugRcdW+l9s4xKlt8TGgQn/3HyOOTCxVM DgvKhPQYM5Z27npVTAO5VInoD39RGEi3MG9bf6aa8THMG+9g1wbn77xO4aj/hej4E4SAI+1 Sy4XpTQ7IQTEiBjGwDwAg== X-UI-Out-Filterresults: notjunk:1;V03:K0:I+ktiGOYKKo=:gjhIqya2r76CM/Wg5q9h6f AMuvikgwzHUnQjscoUhPA4Xc0WNAzDX0N+8QfXf5l5SApFeTS1osB0KYqQUEJ0cP9nd7CEeTe xr14jebppnTBNGXVr6nmiXAHVZ/FsG5kXdpdgInl8ssgUwn1Wsyqm7/OMqjWo02kgvgZusPpg hebaX40g0uxRpmj5DTKBJmV/VS1ubFFcXGe/zB8BP1W3hQF61sx02pAu4FLnnmfWuZd4KSP4f vbYl9w0u/mS7H/i8aJT0t1Bw1zx9i3WDfDqTcIn1FlhCgpYDXJYJ37bbtmBtNPTBHgm3Pszre ISa3kvQ3QuczDjzoFiKqsvtcSl31A5uzsYS3nMZjkAaKdazua401uKq5+uM63GnKKNhqokuJ8 X0maH/NxDxcMs7vWL2MGeZ1Fd+z7iyjr0R7lrJHN+M0/He3RLvV+Ka9QX/RIt4CRaZq5JMq/I 8ZTZ+E7L0kmLbew9j4MR0B9GkzS+tshF/4hpk2kmQP2o9qsetKHkskOel9/k2kcyjQeDTAlVa BP1bHnUEW61q+SVWa0b7U9tt+GZGEpp+LjRXChcWLfzJPMaZuimpq0Q+jFPiJDSonTua5JhLf LKOqvJEDWlEjbDVVNvvV0jF8QpDE9QQbrOe5crqrsDeDJkifqKuN7meByPwx0ZJ9Oe+gqqi/9 0HCbeZGO7v2iM/Lb2Yzdaa1c/Iav4Ay8+3dSfCPYqBRna3LS8rCe1rEVvi8KCqxGt1+GnZrAu O8+MqJDSH9GtXQVAIP5Xfrhd/K3wON+NmvRL1A== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190308_044505_117286_BC24EEF2 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 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, 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 a20ac26..2d8081f 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,7 @@ modules.builtin # Debian directory (make deb-pkg) # /debian/ +!/debian/rules # # Snap directory (make snap-pkg) diff --git a/MAINTAINERS b/MAINTAINERS index 09d47cd..1edc169 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4363,6 +4363,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