]> git.proxmox.com Git - pve-kernel.git/commit - debian/rules
d/rules: headers compile: run modules_prepare copy scripts & includes after
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 May 2021 14:29:36 +0000 (16:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 May 2021 14:39:37 +0000 (16:39 +0200)
commitad95515783226863543f4d9e2baa6ee44e73ba6d
treebec6d31e5131b567c9b8e9c599a9d85352226927
parent56ae0a75e17fd810d96cc4098ef3d028df7dc3ff
d/rules: headers compile: run modules_prepare copy scripts & includes after

The prepare/compile/install targets feel a bit mixed, so it's not
100% clear where this should happen.

But as the `.headers_compile_mark` already triggers various kernel
build targets with a correct kconfig setup, it is a good fit to add
the modules_prepare step (which is recommended to use when preparing
a out-of-three (OOT) module build environment like dkms expects)
there. As we can only copy (= install) the `scripts` directory
afterwards it follows that it needs to be moved afterwards. Moving
installing the `include` directory there is not really necessary but
it feels like a better place than the _prepare_ target and safes a
extra line, so move that over too.

In terms of actual changes to the built header package we get
additionally the, now generated, module.lds file.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules