On Sun, 29 Mar 2026 18:04:52 +0800 Li Wang <[email protected]> wrote:

> > ts:/usr/src/25> cat Makefile
> > # Automatically generated by /usr/src/25/Makefile: don't edit
> > export KBUILD_OUTPUT = .
> > export KBUILD_EXTMOD = /usr/src/25
> > export KBUILD_EXTMOD_OUTPUT = /usr/src/25
> > include /usr/src/25/Makefile
> > 
> > I've done this twice in succession now.  Any suggestions where I should
> > look?
> 
> When build selftests from the top-level, sub-makes entered via `-C` may
> still inherit the caller's PWD from the environment.
> 
> Some selftests use $(PWD) in recursive kbuild invocations, which can
> then incorrectly resolve to the kernel top directory instead of the
> current test directory.
> 
> Maybe try export PWD in the ../selftests/lib.mk?
> 
>   export PWD := $(CURDIR)

Thanks, I'll get onto this stuff soon.

Meanwhile, shouldn't this work?

ts:/usr/src/25/tools/testing/selftests/mm> make merge.i
make: *** No rule to make target 'merge.i'.  Stop.


Reply via email to