[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240215215045.GU9696@kitsune.suse.cz>
Date: Thu, 15 Feb 2024 22:50:45 +0100
From: Michal Suchánek <msuchanek@...e.de>
To: Nathan Lynch <nathanl@...ux.ibm.com>
Cc: linuxppc-dev@...ts.ozlabs.org, Michael Ellerman <mpe@...erman.id.au>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
"Aneesh Kumar K.V" <aneesh.kumar@...nel.org>,
"Naveen N. Rao" <naveen.n.rao@...ux.ibm.com>,
Shuah Khan <shuah@...nel.org>, linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH] selftests: powerpc: Add header symlinks for building
papr character device tests
On Thu, Feb 15, 2024 at 01:39:27PM -0600, Nathan Lynch wrote:
> Michal Suchánek <msuchanek@...e.de> writes:
> > On Thu, Feb 15, 2024 at 01:13:34PM -0600, Nathan Lynch wrote:
> >> Michal Suchanek <msuchanek@...e.de> writes:
> >> >
> >> > Without the headers the tests don't build.
> >> >
> >> > Fixes: 9118c5d32bdd ("powerpc/selftests: Add test for papr-vpd")
> >> > Fixes: 76b2ec3faeaa ("powerpc/selftests: Add test for papr-sysparm")
> >> > Signed-off-by: Michal Suchanek <msuchanek@...e.de>
> >> > ---
> >> > tools/testing/selftests/powerpc/include/asm/papr-miscdev.h | 1 +
> >> > tools/testing/selftests/powerpc/include/asm/papr-sysparm.h | 1 +
> >> > tools/testing/selftests/powerpc/include/asm/papr-vpd.h | 1 +
> >> > 3 files changed, 3 insertions(+)
> >> > create mode 120000 tools/testing/selftests/powerpc/include/asm/papr-miscdev.h
> >> > create mode 120000 tools/testing/selftests/powerpc/include/asm/papr-sysparm.h
> >> > create mode 120000
> >> > tools/testing/selftests/powerpc/include/asm/papr-vpd.h
> >>
> >> I really hope making symlinks into the kernel source isn't necessary. I
> >> haven't experienced build failures with these tests. How are you
> >> building them?
> >>
> >> I usually do something like (on a x86 build host):
> >>
> >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- ppc64le_defconfig
> >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- headers
> >> $ make ARCH=powerpc CROSS_COMPILE=powerpc64le-linux- -C tools/testing/selftests/powerpc/
> >>
> >> without issue.
> >
> > I am not configuring the kernel, only building the tests, and certainly
> > not installing headers on the system.
>
> OK, but again: how do you provoke the build errors, exactly? Don't make
> us guess please.
cd tools/testing/selftests/powerpc/
make -k
> > Apparently this is what people aim to do, and report bugs when it does
> > not work: build the kselftests as self-contained testsuite that relies
> > only on standard libc, and whatever it brought in the sources.
> >
> > That said, the target to install headers is headers_install, not
> > headers. The headers target is not documented, it's probably meant to be
> > internal to the build system. Yet it is not enforced that it is built
> > before building the selftests.
>
> <shrug> the headers target is used in Documentation/dev-tools/kselftest.rst:
>
> """
> To build the tests::
>
> $ make headers
> $ make -C tools/testing/selftests
> """
Indeed so it's not supposed to work otherwise. It would be nice if it
did but might be difficult to achieve with plain makefiles.
'headers' is not in 'make help' output but whatever.
Thanks
Michal
Powered by blists - more mailing lists