[klibc] Fix header installation from out-of-tree build
authorBen Hutchings <ben@decadent.org.uk>
Sun, 30 Jan 2022 22:59:18 +0000 (23:59 +0100)
committerBen Hutchings <benh@debian.org>
Sun, 30 Jan 2022 23:28:16 +0000 (23:28 +0000)
commit83ae73c6bc711c669b72c0597394ad981fc88415
tree6dca2f256e99ef4441b391c7f591748cd43b2536
parent3bd35fe0da011ba39422ccd61121ab1d10e9f6dd
[klibc] Fix header installation from out-of-tree build

Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit?id=8d6ee65cc8bd75bba8f51589c667ff7c5fd9b3b5
Bug-Debian: https://bugs.debian.org/1004465

In an out-of-tree build we currently only install the kernel UAPI
headers and the generated <klibc/havesyscall.h>.  Add an extra
command to copy headers from the source tree in an out-of-tree
build.

References: https://bugs.debian.org/1004465
Reported-by: Thorsten Glaser <tg@mirbsd.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name 0001-klibc-Fix-header-installation-from-out-of-tree-build.patch
scripts/Kbuild.install