On 25/10/2023 20:07, Oliver Upton wrote: > On Wed, Oct 25, 2023 at 10:02:36AM +0100, Aishwarya TCV wrote: >> On 11/10/2023 20:57, Oliver Upton wrote: >>> Start generating sysreg-defs.h for arm64 builds in anticipation of >>> updating sysreg.h to a version that depends on it. >>> >>> Reviewed-by: Mark Brown <broonie@xxxxxxxxxx> >>> Signed-off-by: Oliver Upton <oliver.upton@xxxxxxxxx> >>> --- >>> tools/testing/selftests/kvm/Makefile | 23 ++++++++++++++++++++--- >>> 1 file changed, 20 insertions(+), 3 deletions(-) >>> >> >> Hi Oliver, >> >> >> Currently when building kselftest against next-master with arm64 arch >> and defconfig+kselftest-kvm “make[4]: *** [Makefile:26: prepare] Error >> 2” is observed. > > Looks like we're descending into tools/arch/arm64/tools/ w/ > $(srctree) == ".", which I believe is coming from the top makefile. The > following diff fixes it for me, care to give it a go? > > diff --git a/tools/arch/arm64/tools/Makefile b/tools/arch/arm64/tools/Makefile > index f867e6036c62..7f64b8bb5107 100644 > --- a/tools/arch/arm64/tools/Makefile > +++ b/tools/arch/arm64/tools/Makefile Confirming that the patch worked fine in the testing. Attached the log below: make[4]: Entering directory '/linux/tools/testing/selftests/kvm' Makefile:270: warning: overriding recipe for target '/linux/build-arm64/kselftest/kvm/get-reg-list' Makefile:265: warning: ignoring old recipe for target '/linux/build-arm64/kselftest/kvm/get-reg-list' make -C ../../../../tools/arch/arm64/tools/ make[5]: Entering directory '/linux/tools/arch/arm64/tools' GEN /linux/tools/arch/arm64/include/generated/asm/sysreg-defs.h make[5]: Leaving directory '/linux/tools/arch/arm64/tools' Thanks, Aishwarya