From patchwork Mon Feb 11 12:03:34 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: 10805559 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 D016013B4 for ; Mon, 11 Feb 2019 12:03:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE521293A8 for ; Mon, 11 Feb 2019 12:03:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD65B29792; Mon, 11 Feb 2019 12:03:59 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61D1B293A8 for ; Mon, 11 Feb 2019 12:03:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727210AbfBKMDt (ORCPT ); Mon, 11 Feb 2019 07:03:49 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:47711 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbfBKMDt (ORCPT ); Mon, 11 Feb 2019 07:03:49 -0500 Received: from orion.localdomain ([95.117.94.93]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MX00X-1gZ11z40hl-00XL4d; Mon, 11 Feb 2019 13:03:43 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: michal.lkml@markovi.net, yamada.masahiro@socionext.com, linux-kbuild@vger.kernel.org Subject: [PATCH 1/3] Makefile: add kernelarch target for printing arch and localversion Date: Mon, 11 Feb 2019 13:03:34 +0100 Message-Id: <1549886616-12609-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1549886616-12609-1-git-send-email-info@metux.net> References: <1549886616-12609-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:/dNOibbpk12LcyHKu7QlgMuXkWu5btEnQkRpmO8IwENpNyh3QYH PUbom05VYELEgIfDt/jBtOdhYrJ8AW2JHZh1whYPNeKj91rjmZjTJ8PbnDZ7dcMxTqN6tA5 IE1aGrPHrlBM0c2t7BNs5BVWb35Q0F0hmzPa7XTb3sJVgGyJ9mYFF6ih/6LpH/A8D6Mo7UO O2mYp+n5wq7n9FyCFQgfA== X-UI-Out-Filterresults: notjunk:1;V03:K0:sz7qJMTdRwg=:5whiIjofzdN/UjFAeCivNg Kt3BiWbVsSTqCL0Yi00SwQsb1nyWOXzUlVSUIcW3nUy9aYi8gJBTD1f1bEP8P47WpsZeDP7Ln 8vgAtC1nMh+chJyrGpjdFUPqWHN9HjOsyDjsBfFLqNRWp7fESjQd5WDunk+/YXK7vQzfOo2er K43tIQJt1pK+NbioqQhU3g7vhYpz56B2nl64p6u8ME2rXTOdsUZZdkFyJXAd9nVykIkvmRxD0 Phy+ychMCdLHLrNI5Sf5apwn3ooBr/0jSKNWyvOBFHEafIQABNLMTi1fWZXG33DDqY0Xaioer HzlhKWub2jQSZhs7OBlPpV83UrwuSkU5wAgx02/tScc4MWWTVwarESQvBWy3WlRGVf8tgDhjg y84FyGbP55hrYquP8qQOL7K7n5hSQkAZTirwiQZfgrEBVYHMB8dx72JWuhEZ14GWFAQGXllT0 zkkCI1FlAjK/CxAgxRZOuvV2H67ChNdE2MV8CPkt+4OZKcgefJlJrX5/bhopCxaiiNBbC4ZIo 0AmyVUWm8kI7BaBrXge58ykOWHncp1+VQmLOvALm7GGycloeo3WLu3A3SJn7fB4LoH5UjRwba jgqyF6cHf0OnzakCeChWZzQertL98GUxWdi1Pw5bEAwNAW9H3BOF6dpyo2c2v+Ksz0ehMBBh/ /6M1RUL0cNJwksghuenbpvev5xFlV/7xpMgohmqDuhK/Ps4X/tcVyWaIF3SUS8zFlPn35Ld5/ +HslsiluYW2b5+/MjmGkAiK7slD53UYTPZ9AoQ== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.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 86cf35d..68c3e08 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)