Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7681134ybi; Tue, 9 Jul 2019 02:35:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrKSMSpOFD/5oaIEFjR6pocAaN0XvzO5l8dNpN3BxpXKoO+wA6H4kseWCfDSThCkZa+YTx X-Received: by 2002:a17:90a:cb01:: with SMTP id z1mr31191407pjt.93.1562664938022; Tue, 09 Jul 2019 02:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562664938; cv=none; d=google.com; s=arc-20160816; b=m6K/BcKdeCXJXqvS/UA7EpF1EyB4gZPFs6ma2YjivbBUOB5E5zlmpFYjwdN2nrYuLI P9Rj4HhjUSbnDb2XegDc6SUb58WAj3P07CV7SbC9EGAywuxY4WlemI8NqoIyFe3z1yo9 vh9j08cfG7FX2wr/5L0ALFCkD9rFs5gjGyWY/i8UBzcEpLv6ExqW5TI8TPmxiImxJv24 mBX9MBThmMDbLhIoKaR036Exby6F+bPNWdWE2fvbVMgeQz1v1TqJZD5thmYCu86TLd// X+O5cSD2LUzlqXVJb6wwPtHFW8PTzy9oRGiyWlutBaU9kjjfVpkGm8CNjF7ZzLF63GBc mxGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MZWDshTpQlUbSp5OoOjjR4ebbC6vtCrW2AL49/JBpMk=; b=FW/CxK1Y5BjLMrFn08FAVpynuXMepaT54ZEBDqEq2ZaaCdUsQm82emW8X+NOdwCMl4 jQ2AQINZseiKJPMJRdCDqr31DKzQncDdUnftXJ4iEVdHnkS/dAVVJq0pQuHaVsOkY4Ko 8qhqzs0uIywO8fVyP4ok6zzOhfypoNEueH/F5jvoOgi9vzAcFj3uK8NyoYWrm6fepBzi 8dbVkt9XCr07ysP9JwtFEvdZyed0eVwR2QHDdBU7mzgo87YAI3Gw7LAYIn3zWeWD9Nts lVSWcQ5fNcm/3Ob+iD1Sgq9Y+S5LL+qXgARDSt7BqnybwD37r80FwejNaySLPqnkSfdh cCqw== ARC-Authentication-Results: i=1; mx.google.com; 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 bc8si19902254plb.322.2019.07.09.02.35.20; Tue, 09 Jul 2019 02:35:38 -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; 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 S1726679AbfGIJdG (ORCPT + 99 others); Tue, 9 Jul 2019 05:33:06 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:36681 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbfGIJc5 (ORCPT ); Tue, 9 Jul 2019 05:32:57 -0400 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 Cc: yamada.masahiro@socionext.com, michal.lkml@markovi.net, info@metux.net, apw@canonical.com, joe@perches.com, linux-kbuild@vger.kernel.org, linux-riscv@lists.infradead.org, clang-built-linux@googlegroups.com 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:uc03CD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@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 1.9.1