Skip to contentSkip to conversation

build: Reject building for i386

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

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 build: Reject building for i386

From: Jan Kiszka <[email protected]>

This architecture is not supported but we were silently converting it into 64-bit x86.

---
 meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meson.build +5 -2
index bbde902..fdb2e55 100644
@@ -46,12 +46,15 @@ pthread_dep = dependency('threads')
 
 # Do some architecture name remapping
 libevl_arch = host_machine.cpu_family()
+if libevl_arch == 'x86'
+    error('i386 not supported')
+endif
 if libevl_arch == 'x86_64'
-   libevl_arch = 'x86'
+    libevl_arch = 'x86'
 endif
 
 if libevl_arch == 'aarch64'
-   libevl_arch = 'arm64'
+    libevl_arch = 'arm64'
 endif
 
 post_install = find_program('post-install.sh',
Signature · 1 line
2.35.3
author
#1 lore raw
Quoted 22 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This architecture is not supported but we were silently converting it into 64-bit x86.

---
 meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meson.build +3 -0
index bbde902..fdb2e55 100644
@@ -46,12 +46,15 @@ pthread_dep = dependency('threads')
 
 # Do some architecture name remapping
 libevl_arch = host_machine.cpu_family()
+if libevl_arch == 'x86'
+    error('i386 not supported')
+endif
 if libevl_arch == 'x86_64'

meson.build pthread_dep = dependency('threads') · line 60

Quoted 10 lines
meson.build +2 -2
-   libevl_arch = 'x86'
+    libevl_arch = 'x86'
 endif
 
 if libevl_arch == 'aarch64'
-   libevl_arch = 'arm64'
+    libevl_arch = 'arm64'
 endif
 
 post_install = find_program('post-install.sh',

As you are merging already, don't forgot this one as well. Minor but possibly still helpful for newbies.

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#2 lore raw
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This architecture is not supported but we were silently converting it into 64-bit x86.

---
 meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meson.build +5 -2
index bbde902..fdb2e55 100644
@@ -46,12 +46,15 @@ pthread_dep = dependency('threads')
 
 # Do some architecture name remapping
 libevl_arch = host_machine.cpu_family()
+if libevl_arch == 'x86'
+    error('i386 not supported')
+endif
 if libevl_arch == 'x86_64'
-   libevl_arch = 'x86'
+    libevl_arch = 'x86'
 endif
 
 if libevl_arch == 'aarch64'
-   libevl_arch = 'arm64'
+    libevl_arch = 'arm64'
 endif
 
Quoted 5 lines

meson.build pthread_dep = dependency('threads') · line 60

Quoted 1 line
meson.build +0 -0
 post_install = find_program('post-install.sh',

As you are merging already, don't forgot this one as well. Minor but possibly still helpful for newbies.

Merged, thanks.

Signature · 1 line
Philippe.