kbuild: deb-pkg: move 'make headers' to build-arch

Strictly speaking, 'make headers' should be a part of build-arch
instead of binary-arch.

'make headers' constructs ready-to-copy UAPI headers in the kernel
directory.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
This commit is contained in:
Masahiro Yamada 2023-12-30 22:51:56 +09:00
parent 358c3f8cce
commit 1b5e946573
2 changed files with 2 additions and 3 deletions

View File

@ -155,7 +155,6 @@ install_libc_headers () {
rm -rf $pdir
$MAKE -f $srctree/Makefile headers
$MAKE -f $srctree/Makefile headers_install INSTALL_HDR_PATH=$pdir/usr
# move asm headers to /usr/include/<libc-machine>/asm to match the structure

View File

@ -26,8 +26,8 @@ binary-arch: build-arch
build: build-arch build-indep
build-indep:
build-arch:
$(MAKE) $(make-opts) \
olddefconfig all
$(MAKE) $(make-opts) olddefconfig
$(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all
.PHONY: clean
clean: