mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
kbuild: unset sub_make_done before calling kselftest build system
The kselftest build system may recourse back into kbuild when building test modules. In that case kbuild needs to parse the new flags passed from the command line, instead of using the ones inherited from the kbuild invocation. Force that command line reevaluation. The same was done for scripts/install.sh in commit14ccc638b0("kbuild: cancel sub_make_done for the install target to fix DKMS") Reported-by: Zelin Deng <zelin.deng@linux.alibaba.com> Closes: https://lore.kernel.org/all/20260525083721.27857-1-zelin.deng@linux.alibaba.com/ Fixes:c9bb03ac2c("kbuild: reduce output spam when building out of tree") Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Acked-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Petr Mladek <pmladek@suse.com> Tested-by: Zelin Deng <zelin.deng@linux.alibaba.com> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://patch.msgid.link/20260703-makefile-unset-submake-done-v1-1-6899248f3d6a@linutronix.de Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
1a38fd13c3
commit
e77f165d26
4
Makefile
4
Makefile
|
|
@ -1570,10 +1570,10 @@ tools/%: FORCE
|
|||
|
||||
PHONY += kselftest
|
||||
kselftest: headers
|
||||
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
|
||||
$(Q)unset sub_make_done; $(MAKE) -C $(srctree)/tools/testing/selftests run_tests
|
||||
|
||||
kselftest-%: headers FORCE
|
||||
$(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
|
||||
$(Q)unset sub_make_done; $(MAKE) -C $(srctree)/tools/testing/selftests $*
|
||||
|
||||
PHONY += kselftest-merge
|
||||
kselftest-merge:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user