All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Makefile: rules for printing kernel architecture and localversion
@ 2019-07-09  9:32 ` Enrico Weigelt, metux IT consult
  0 siblings, 0 replies; 30+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2019-07-09  9:32 UTC (permalink / raw)
  To: linux-kernel
  Cc: yamada.masahiro, michal.lkml, info, apw, joe, linux-kbuild,
	linux-riscv, clang-built-linux

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 --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


^ permalink raw reply related	[flat|nested] 30+ messages in thread
* RFC: refactoring the deb build
@ 2019-02-07 16:40 Enrico Weigelt, metux IT consult
  2019-02-07 16:40   ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 30+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2019-02-07 16:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-kbuild, kernel-janitors, yamada.masahiro, michal.lkml

Hello folks,


here are some patches for build process that allow building debian packages
right the usual canonical way (eg. via dpkg-buildpackage or dck-buildpackage),
instead 'manually' setting up the build environment and calling make.
So, from a debian native perspective, turning it from head onto feet ;-)

dpkg-buildpackage + friends expect the debian/rules file being present in
the unpacked source tree and driving the actual build (the 'deb-pkg' make
target does that quite the opposite way). Obviously, 'make deb-pkg' can't
be used directly, as it would destroy our debian/rules file ...

To archieve this, I've done several things:

* place .config file to the source tree (not in this patch queue)
* add some helper targets to the toplevel makefile, so we can just ask
  for certain things, eg. version, arch, etc, that we need later
* fix some missing dependencies in the generated debian/control file
* change scripts/package/mkdebian so that the name of the generated rules
  file name can be changed via environment
* a generic debian/rules file for driving the build

The last patch isn't really meant to be merged yet (need to change the
deb-pkg rule to not overwrite debian/rules anymore) - just including it
for illustration.

What do you think about this ?


--mtx


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2019-07-17 15:24 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-09  9:32 [PATCH 1/4] Makefile: rules for printing kernel architecture and localversion Enrico Weigelt, metux IT consult
2019-07-09  9:32 ` Enrico Weigelt, metux IT consult
2019-07-09  9:32 ` [PATCH 2/4] scripts: mkdebian: allow renaming generated debian/rules via env Enrico Weigelt, metux IT consult
2019-07-09  9:32   ` Enrico Weigelt, metux IT consult
2019-07-09  9:32 ` [PATCH 3/4] scripts: checkpatch.pl: don't complain that debian/rules is executable Enrico Weigelt, metux IT consult
2019-07-09  9:32   ` Enrico Weigelt, metux IT consult
2019-07-09 10:16   ` Joe Perches
2019-07-09 10:16     ` Joe Perches
2019-07-09  9:32 ` [PATCH 4/4] debian: add generic rule file Enrico Weigelt, metux IT consult
2019-07-09  9:32   ` Enrico Weigelt, metux IT consult
2019-07-15 12:28   ` Masahiro Yamada
2019-07-15 12:28     ` Masahiro Yamada
2019-07-15 18:56     ` Enrico Weigelt, metux IT consult
2019-07-15 18:56       ` Enrico Weigelt, metux IT consult
2019-07-15 19:12       ` Theodore Y. Ts'o
2019-07-15 19:12         ` Theodore Y. Ts'o
2019-07-16  8:58         ` Masahiro Yamada
2019-07-16  8:58           ` Masahiro Yamada
2019-07-16 12:34           ` Theodore Y. Ts'o
2019-07-16 12:34             ` Theodore Y. Ts'o
2019-07-17 14:16             ` Enrico Weigelt, metux IT consult
2019-07-17 14:16               ` Enrico Weigelt, metux IT consult
2019-07-17 15:23               ` Theodore Y. Ts'o
2019-07-17 15:23                 ` Theodore Y. Ts'o
2019-07-17 11:08         ` Enrico Weigelt, metux IT consult
2019-07-17 11:08           ` Enrico Weigelt, metux IT consult
2019-07-09 14:54 ` [PATCH 1/4] Makefile: rules for printing kernel architecture and localversion Randy Dunlap
2019-07-09 14:54   ` Randy Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2019-02-07 16:40 RFC: refactoring the deb build Enrico Weigelt, metux IT consult
2019-02-07 16:40 ` [PATCH 4/4] debian: add generic rule file Enrico Weigelt, metux IT consult
2019-02-07 16:40   ` Enrico Weigelt, metux IT consult

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.