mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	util-linux: Fix build on powerpc and arc
This fixes the build of util-linux on powerpc and arc. Both CPU
architectures were not supported here in addition to the missing MIPS
support.
Fixes: 628a410ed1 ("util-linux: update to 2.39")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
			
			
This commit is contained in:
		
							parent
							
								
									a384490b10
								
							
						
					
					
						commit
						a665c8e5bd
					
				@ -1,24 +1,36 @@
 | 
				
			|||||||
From 2558932c65524d953e4c86d7fda2282a582aa5ec Mon Sep 17 00:00:00 2001
 | 
					From 2558932c65524d953e4c86d7fda2282a582aa5ec Mon Sep 17 00:00:00 2001
 | 
				
			||||||
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
 | 
					From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
 | 
				
			||||||
Date: Wed, 17 May 2023 16:50:47 +0200
 | 
					Date: Wed, 17 May 2023 16:50:47 +0200
 | 
				
			||||||
Subject: [PATCH] test_enosys: add support for mips
 | 
					Subject: [PATCH] test_enosys: add support for mips, powerpc and arc
 | 
				
			||||||
MIME-Version: 1.0
 | 
					MIME-Version: 1.0
 | 
				
			||||||
Content-Type: text/plain; charset=UTF-8
 | 
					Content-Type: text/plain; charset=UTF-8
 | 
				
			||||||
Content-Transfer-Encoding: 8bit
 | 
					Content-Transfer-Encoding: 8bit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
 | 
					Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 tests/helpers/test_enosys.c | 2 ++
 | 
					 tests/helpers/test_enosys.c | 14 ++
 | 
				
			||||||
 1 file changed, 2 insertions(+)
 | 
					 1 file changed, 2 insertions(+)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--- a/tests/helpers/test_enosys.c
 | 
					--- a/tests/helpers/test_enosys.c
 | 
				
			||||||
+++ b/tests/helpers/test_enosys.c
 | 
					+++ b/tests/helpers/test_enosys.c
 | 
				
			||||||
@@ -53,6 +53,8 @@
 | 
					@@ -53,6 +53,20 @@
 | 
				
			||||||
 #    else
 | 
					 #    else
 | 
				
			||||||
 # 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64LE
 | 
					 # 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64LE
 | 
				
			||||||
 #    endif
 | 
					 #    endif
 | 
				
			||||||
 | 
					+#elif __powerpc__
 | 
				
			||||||
 | 
					+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC
 | 
				
			||||||
+#elif __mips__
 | 
					+#elif __mips__
 | 
				
			||||||
 | 
					+#    if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 | 
				
			||||||
+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPS
 | 
					+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPS
 | 
				
			||||||
 | 
					+#    else
 | 
				
			||||||
 | 
					+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPSEL
 | 
				
			||||||
 | 
					+#    endif
 | 
				
			||||||
 | 
					+#elif __arc__
 | 
				
			||||||
 | 
					+#    if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 | 
				
			||||||
 | 
					+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2BE
 | 
				
			||||||
 | 
					+#    else
 | 
				
			||||||
 | 
					+# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2
 | 
				
			||||||
 | 
					+#    endif
 | 
				
			||||||
 #else
 | 
					 #else
 | 
				
			||||||
 #    error Unknown target architecture
 | 
					 #    error Unknown target architecture
 | 
				
			||||||
 #endif
 | 
					 #endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user