linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Debian build polishing
@ 2019-03-08 12:44 Enrico Weigelt, metux IT consult
  2019-03-08 12:44 ` [PATCH v1 1/5] Makefile: rules for printing kernel architecture and localversion Enrico Weigelt, metux IT consult
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2019-03-08 12:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: yamada.masahiro, michal.lkml, info, apw, joe, linux-kbuild, linux-riscv

Hi folks,


here're some patches for polishing up the Debian packaging stuff,
so it can be directly used w/ usual Debian machinery like
pbuilder, git-buildpackage, dck-buildpackage, etc.

These expect debian/rules to exist in the unpacked/patched tree
and drive the whole build. Currently 'make deb-pkg' does it in
the opposite direction - it creates debian/rules and fills in
some data, that's derived from .config etc.

My goal is building the kernel package in exactly the same way as
any other Debian package - so there must be a debian/rules as the
primary entry point. To do that, w/ minimal change and w/o breaking
the existing machinery, I'm going in several steps:

#1: add Makefile rules for retrieving missing makefile-internal
    variables kernel config system .config (eg. kernel arch).

    this could be used for other build systems, too.
    just call: `make kernelarch` or `make kernellocalversion`

#2: add an env variable for changing the name of the rules file
    generated by mkdebian. When coming from an existing rules
    file, we can prevent this from being overwritten.

#3: add a generic debian/rules file, that calls mkdebian to
    create the remaining debian control files (w/ rules redirected
    into nirvana)

The existing `make deb-pkg` is bypassed and remains ontouched.

One point still puzzling me: once the debian/rules is applied and
somebody calls `make deb-pkg`, he'll end up w/ unclean tree, as
now a git-tracked file is changed.

Perhaps I just change deb-pkg to call debian/rules then, but I'd
like to hear your oppinions about this, before.


What do you think about that ?


--mtx



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

end of thread, other threads:[~2019-03-11 16:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 12:44 Debian build polishing Enrico Weigelt, metux IT consult
2019-03-08 12:44 ` [PATCH v1 1/5] Makefile: rules for printing kernel architecture and localversion Enrico Weigelt, metux IT consult
2019-03-08 12:44 ` [PATCH v1 2/5] scripts: mkdebian: allow renaming generated debian/rules via env Enrico Weigelt, metux IT consult
2019-03-08 12:44 ` [PATCH v1 3/5] scripts: mkdebian: fix missing dependencies Enrico Weigelt, metux IT consult
2019-03-08 12:44 ` [PATCH v1 4/5] scripts: checkpatch.pl: don't complain that debian/rules is executable Enrico Weigelt, metux IT consult
2019-03-08 14:13   ` Joe Perches
2019-03-08 12:44 ` [PATCH v1 5/5] debian: add generic rule file Enrico Weigelt, metux IT consult
2019-03-08 17:57 ` Debian build polishing Theodore Ts'o
2019-03-08 21:10   ` Enrico Weigelt, metux IT consult
2019-03-08 21:57     ` Theodore Ts'o
2019-03-10 18:50       ` Enrico Weigelt, metux IT consult
2019-03-11 16:19 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).