diff mbox series

[v1,1/5] Makefile: rules for printing kernel architecture and localversion

Message ID 1552049064-32044-2-git-send-email-info@metux.net (mailing list archive)
State New, archived
Headers show
Series [v1,1/5] Makefile: rules for printing kernel architecture and localversion | expand

Commit Message

Enrico Weigelt, metux IT consult March 8, 2019, 12:44 p.m. UTC
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@metux.net>
---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

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)