Skip to contentSkip to conversation

Issue building libevl

PATCH Giulio Moro 1 participant 1 message Oct 9, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

Hi there,
I was building libevl natively on Debian on the PocketBeagle 2 using the beagleboard image and a 6.12 linux-evl kernel I built. To access the headers, I ran modprobe kheaders`and uncompressed /sys/kernel/kheaders.tar.xz to ~/h .

Following the instructions at https://v4.xenomai.org/core/build-steps/index.html#building-evl-prereq, I tried:

meson setup -Duapi=xxx build .

However, I didn't find the right value to put in place of xxx: there would always be some missing path that would make setup-uapi.h fail. To give an idea, from within ~/h, I have these relevant (or not?) paths:

$ find . -type d | grep '/evl$\|/asm/evl$\|/asm-generic$'
./include/asm-generic
./include/asm-generic/evl
./include/evl
./include/uapi/asm-generic
./include/uapi/evl
./arch/arm64/include/asm/evl
./arch/arm64/include/uapi/asm/evl

Also, note there 's no ~/h/Kbuild.

It seems that something is wrong with the heuristic there in setup-uapi.h. The workaround for me was to apply the below patch. Any suggestion on how to implement a widely applicable fix?

============

meson/setup-uapi.sh +1 -1
index 633c5ed..1d28716 100644
@@ -12,7 +12,7 @@ link_dir() {
     ln -sf $1 $OUTPUT_DIR/$2
 }
 
-if test -r $UAPI/Kbuild; then
+if true; then
     link_dir $UAPI/include/uapi/evl .
     link_dir $UAPI/arch/$ARCH/include/uapi/asm/evl asm
     link_dir $UAPI/include/uapi/asm-generic .

================

Best,
Giulio