From patchwork Thu Feb 21 23:31:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] More n32 fixups Date: Thu, 21 Feb 2013 23:31:50 -0000 From: Peter Seebach X-Patchwork-Id: 44997 Message-Id: <20130221173150.5a8764e4@e6410-2> To: Bernhard Reutner-Fischer Cc: openembedded-core@lists.openembedded.org On Fri, 22 Feb 2013 00:23:48 +0100 Bernhard Reutner-Fischer wrote: > > Also, the insane.bbclass change spelled "mips64el" as "mipsel64", > > which no one noticed because no one's using little-endian n32, > > apparently. > > Would be great if you could have a look at the FIXME in > meta/recipes-core/uclibc/uclibc-config.inc for the correct setting of > the respective mips ABI. Hmm. I can look, but I don't think I've touched uclibc in a fairly long time. Untested, but possibly pretty close: -s --- a/meta/recipes-core/uclibc/uclibc-config.inc +++ b/meta/recipes-core/uclibc/uclibc-config.inc @@ -73,9 +73,11 @@ def map_uclibc_abi(o, d): return 'ARM_EABI' else: return 'ARM_OABI' - # FIXME: This is inaccurate! Handle o32, n32, n64 elif re.match('^mips.*64$', arch): - return 'MIPS_N64_ABI' + if o.endswith('gnun32'): + return 'MIPS_N32_ABI' + else: + return 'MIPS_N64_ABI' elif re.match('^mips.*', arch): return 'MIPS_O32_ABI' return ""