Skip to content

Commit 1b5e946

Browse files
committed
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>
1 parent 358c3f8 commit 1b5e946

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/package/builddeb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ install_libc_headers () {
155155

156156
rm -rf $pdir
157157

158-
$MAKE -f $srctree/Makefile headers
159158
$MAKE -f $srctree/Makefile headers_install INSTALL_HDR_PATH=$pdir/usr
160159

161160
# move asm headers to /usr/include/<libc-machine>/asm to match the structure

scripts/package/debian/rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ binary-arch: build-arch
2626
build: build-arch build-indep
2727
build-indep:
2828
build-arch:
29-
$(MAKE) $(make-opts) \
30-
olddefconfig all
29+
$(MAKE) $(make-opts) olddefconfig
30+
$(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all
3131

3232
.PHONY: clean
3333
clean:

0 commit comments

Comments
 (0)