Applied, thanks!
[email protected], le dim. 26 avril 2026 23:51:16 +0100, a ecrit:
> From: Diego Nieto Cid <[email protected]>
>
> When a test ISO file is built by make, the intermediate modules
> built as a dependency (module-%) are deleted at the end of the
> build.
>
> Marking as "precious" prevents this behaviour and allows to keep
> the module that the ISO runs. This is useful if the tests are going
> to be debugged using QEMU and GDB.
> ---
> tests/user-qemu.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk
> index 11ff82d5..857dbaac 100644
> --- a/tests/user-qemu.mk
> +++ b/tests/user-qemu.mk
> @@ -164,6 +164,11 @@ tests/errlist.c: $(addprefix
> $(srcdir)/include/mach/,message.h kern_return.h mig
> tests/module-%: $(srcdir)/tests/test-%.c $(SRC_TESTLIB) $(MACH_TESTINSTALL)
> $(USER_CC) $(USER_CFLAGS) $(TESTCFLAGS) $< $(SRC_TESTLIB) -o $@
>
> +#
> +# Avoid removal of module-% files after building the ISO file
> +#
> +.PRECIOUS: tests/module-%
> +
> #
> # packaging of qemu bootable image and test runner
> #
> --
> 2.53.0
>
>