]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
lib/oe/kernel: Simplify map_uboot_arch
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 Jul 2026 20:53:18 +0000 (21:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Aug 2026 17:04:08 +0000 (18:04 +0100)
The main kernel map function would already handle x86 correctly.

Modern u-boot already handles both forms of powerpc and ppc correctly to
so we don't need this legacy function mapping for it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/kernel.py

index 6c57ef402e82878bf7c0a3dc59eccc7408bdcd3e..ff88c41b2182864a912af1b8576c2b096b1e45c3 100644 (file)
@@ -41,11 +41,7 @@ def map_kernel_arch(d):
 # Return a value for the -A parameter to u-boot's mkimage
 # This would be the value from the table in boot/image.c:uimage_arch
 def map_uboot_arch(d):
-    a = map_kernel_arch(d)
-
-    if   re.match('p(pc|owerpc)(|64)', a): return 'ppc'
-    elif re.match('i.86$', a): return 'x86'
-    return a
+    return map_kernel_arch(d)
 
 # parse kernel ABI version out of <linux/version.h>
 def get_version_headers(p):