On 02/06/2026 08.48, Chinmay Rath wrote:
From: Nicholas Piggin <[email protected]>
arch_libdir was brought in to improve the heuristic determination of
the lib/ directory based on arch and testdir names, but it did not
entirely clean that mess up.
Remove the arch_libdir->arch->testdir heuristic and just require
everybody sets arch_libdir correctly. Fail if the lib/arch or
lib/arch/asm directories can not be found.
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Chinmay Rath <[email protected]>
---
Makefile | 2 +-
configure | 20 ++++++++++++--------
2 files changed, 13 insertions(+), 9 deletions(-)
FYI, this patch seems to trigger yet another issue with Clang (I used v21):
clang -no-integrated-as -std=gnu99 -ffreestanding -O2 -msoft-float
-mno-altivec -I /root/kvm-unit-tests/lib -I /root/kvm-unit-tests/lib/libfdt
-I lib -Wa,-mregnames -fverbose-asm -S -o lib/powerpc/asm-offsets.s
lib/powerpc/asm-offsets.c
lib/powerpc/asm-offsets.c:10:10: error: 'asm/smp.h' file not found with
<angled> include; use
"quotes" instead
10 | #include <asm/smp.h>
| ^~~~~~~~~~~
| "asm/smp.h"
In file included from lib/powerpc/asm-offsets.c:10:
lib/powerpc/asm/smp.h:5:10: fatal error: 'asm/processor.h' file not found
5 | #include <asm/processor.h>
| ^~~~~~~~~~~~~~~~~
2 errors generated.
Could you please have a look?
Thanks,
Thomas