[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1549557659-19137-2-git-send-email-info@metux.net>
Date: Thu, 7 Feb 2019 17:40:56 +0100
From: "Enrico Weigelt, metux IT consult" <info@...ux.net>
To: linux-kernel@...r.kernel.org
Cc: linux-kbuild@...r.kernel.org, kernel-janitors@...r.kernel.org,
yamada.masahiro@...ionext.com, michal.lkml@...kovi.net
Subject: [PATCH 1/4] Makefile: add kernelarch rule that prints the kernel architecture and localversion
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 <info@...ux.net>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index 3142e67..2719907 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)
--
1.9.1
Powered by blists - more mailing lists