Skip to contentSkip to conversation

meson: setup-uapi: Take Debian multiarch into account

PATCH Superseded Jan Kiszka 2 participants 3 messages Dec 17, 2023 – Jan 2, 2024 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 meson: setup-uapi: Take Debian multiarch into account

From: Jan Kiszka <[email protected]>

Check also the Debian multiarch include path for the chosen architecture so that we can support (self-built) linux-libc-dev packages that contain the evl headers.

---
 meson/setup-uapi.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meson/setup-uapi.sh +11 -1
index f2d0774..c939254 100644
@@ -17,7 +17,17 @@ if test -r $UAPI/Kbuild; then
     link_dir $UAPI/arch/$ARCH/include/uapi/asm/evl asm
     link_dir $UAPI/include/uapi/asm-generic .
 else
+    DEB_HOST_ARCH=$ARCH
+    if [ "$DEB_HOST_ARCH" = "x86" ]; then
+        DEB_HOST_ARCH=amd64
+    fi
+    DEB_HOST_MULTIARCH=$( \
+        dpkg-architecture -q DEB_HOST_MULTIARCH -a $DEV_HOST_ARCH 2>/dev/null)
     link_dir $UAPI/evl .
-    link_dir $UAPI/asm/evl asm
+    if [ -d $UAPI/$DEB_HOST_MULTIARCH/asm/evl ]; then
+        link_dir $UAPI/$DEB_HOST_MULTIARCH/asm/evl asm
+    else
+        link_dir $UAPI/asm/evl asm
+    fi
     link_dir $UAPI/asm-generic .
 fi
Signature · 1 line
2.35.3
#1 lore raw

Your patch is working, there is just one spelling mistake.

Quoted 25 lines

-----Original Message-----
From: Kiszka, Jan (T CED) <[email protected]>
Sent: Sonntag, 17. Dezember 2023 17:25
To: Philippe Gerum <[email protected]>
Cc: Xenomai <[email protected]>; Kowalsky, Clara (T CED SES-DE) <[email protected]>
Subject: [libevl][PATCH] meson: setup-uapi: Take Debian multiarch into account

From: Jan Kiszka <[email protected]>

Check also the Debian multiarch include path for the chosen architecture so that we can support (self-built) linux-libc-dev packages that contain the evl headers.

---
 meson/setup-uapi.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
meson/setup-uapi.sh index renamed from meson/setup-uapi.sh +0 -0

f2d0774..c939254 100644

meson/setup-uapi.sh if test -r $UAPI/Kbuild; then · line 25

Quoted 9 lines
meson/setup-uapi.sh +6 -0
@@ -17,7 +17,17 @@ if test -r $UAPI/Kbuild; then
     link_dir $UAPI/arch/$ARCH/include/uapi/asm/evl asm
     link_dir $UAPI/include/uapi/asm-generic .
 else
+    DEB_HOST_ARCH=$ARCH
+    if [ "$DEB_HOST_ARCH" = "x86" ]; then
+        DEB_HOST_ARCH=amd64
+    fi
+    DEB_HOST_MULTIARCH=$( \
+        dpkg-architecture -q DEB_HOST_MULTIARCH -a $DEV_HOST_ARCH

DEB_HOST_MULTIARCH instead of DEV_HOST_ARCH

Quoted 11 lines
meson/setup-uapi.sh +6 -2
+ 2>/dev/null)
     link_dir $UAPI/evl .
-    link_dir $UAPI/asm/evl asm
+    if [ -d $UAPI/$DEB_HOST_MULTIARCH/asm/evl ]; then
+        link_dir $UAPI/$DEB_HOST_MULTIARCH/asm/evl asm
+    else
+        link_dir $UAPI/asm/evl asm
+    fi
     link_dir $UAPI/asm-generic .
 fi
--
Quoted 1 line

2.35.3

Clara

author
#2 lore raw
Quoted 22 lines · Clara (T CED SES-DE)

Your patch is working, there is just one spelling mistake.

Quoted 20 lines

-----Original Message-----
From: Kiszka, Jan (T CED) <[email protected]>
Sent: Sonntag, 17. Dezember 2023 17:25
To: Philippe Gerum <[email protected]>
Cc: Xenomai <[email protected]>; Kowalsky, Clara (T CED SES-DE) <[email protected]>
Subject: [libevl][PATCH] meson: setup-uapi: Take Debian multiarch into account

From: Jan Kiszka <[email protected]>

Check also the Debian multiarch include path for the chosen architecture so that we can support (self-built) linux-libc-dev packages that contain the evl headers.

---
 meson/setup-uapi.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
Quoted 17 lines
Quoted 5 lines
meson/setup-uapi.sh index renamed from meson/setup-uapi.sh +0 -0

f2d0774..c939254 100644

meson/setup-uapi.sh if test -r $UAPI/Kbuild; then · line 25

Quoted 9 lines
meson/setup-uapi.sh +6 -0
@@ -17,7 +17,17 @@ if test -r $UAPI/Kbuild; then
     link_dir $UAPI/arch/$ARCH/include/uapi/asm/evl asm
     link_dir $UAPI/include/uapi/asm-generic .
 else
+    DEB_HOST_ARCH=$ARCH
+    if [ "$DEB_HOST_ARCH" = "x86" ]; then
+        DEB_HOST_ARCH=amd64
+    fi
+    DEB_HOST_MULTIARCH=$( \
+        dpkg-architecture -q DEB_HOST_MULTIARCH -a $DEV_HOST_ARCH

DEB_HOST_MULTIARCH instead of DEV_HOST_ARCH

Thanks for spotting!

Jan

Quoted 14 lines
Quoted 11 lines
meson/setup-uapi.sh +6 -2
+ 2>/dev/null)
     link_dir $UAPI/evl .
-    link_dir $UAPI/asm/evl asm
+    if [ -d $UAPI/$DEB_HOST_MULTIARCH/asm/evl ]; then
+        link_dir $UAPI/$DEB_HOST_MULTIARCH/asm/evl asm
+    else
+        link_dir $UAPI/asm/evl asm
+    fi
     link_dir $UAPI/asm-generic .
 fi
--
Quoted 1 line

2.35.3

Clara

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center