mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-20 07:41:47 -09:00
package/linux-headers: pass --no-print-directory
Since commit 5fc10e76fa2a9 in linux v6.5-rc1, the kernel does a recursive make call to add the --no-print-directory flag if it is not set. Buildroot sets MAKEOVERRIDES empty, which causes none of the command-line overrides to be propagated to sub-makes. This only goes one level deep, so it is not a problem. However, if the user sets MAKEOVERRIDES in their environment, the environment _does_ get propagated down to sub-makes. Therefore, the recursive call from within the kernel will not get any of the command-line overrides we give it. As a result, INSTALL_HDR_PATH will not get passed down to the kernel's sub-make, thereby breaking the installation to staging. Note that if Buildroot itself does a sub-make call (e.g. because O= is set, or umask is different), --no-print-directory is already added so the issue doesn't occur. Set --no-print-directory explicitly, which avoids the kernel's sub-make call, which preserves INSTALL_HDR_PATH. It is only really needed for the staging install, since the local install in _CONFIGURE_CMDS just sets it to the default value. For consistency though, set it there as well. Setting --no-print-directory when it is not needed doesn't hurt. Signed-off-by: Francesco Mancino <francesco.mancino@tutus.se> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
b4648ea938
commit
77faecb13a
@@ -135,6 +135,7 @@ LINUX_HEADERS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
|
||||
define LINUX_HEADERS_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_MAKE_ENV) $(BR2_MAKE) \
|
||||
--no-print-directory \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
HOSTCC="$(HOSTCC)" \
|
||||
HOSTCFLAGS="$(HOSTCFLAGS)" \
|
||||
@@ -146,6 +147,7 @@ endef
|
||||
define LINUX_HEADERS_INSTALL_STAGING_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_MAKE_ENV) $(BR2_MAKE) \
|
||||
--no-print-directory \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
HOSTCC="$(HOSTCC)" \
|
||||
HOSTCFLAGS="$(HOSTCFLAGS)" \
|
||||
|
||||
Reference in New Issue
Block a user