aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2017-11-13 12:06:27 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-03 09:26:31 +0000
commit4b4a1295b8476d2820935eb5661b2d24a49b29b2 (patch)
tree767ec773e0159c00be89bae68fee001c4bcad559
parent4e8840aa7adf91f04da2a1947b8d1dff7f88df50 (diff)
downloadopenembedded-core-4b4a1295b8476d2820935eb5661b2d24a49b29b2.zip
openembedded-core-4b4a1295b8476d2820935eb5661b2d24a49b29b2.tar.gz
openembedded-core-4b4a1295b8476d2820935eb5661b2d24a49b29b2.tar.bz2
insane: add support for ARM64 ILP32
Add aarch64 32-bits (ILP32) ELF header into dictionary and check binaries for 32-bitness. Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 535d410..7407b29 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -149,6 +149,9 @@ def package_qa_get_machine_dict(d):
"powerpc": (20, 0, 0, False, 32),
"sh4": (42, 0, 0, True, 32),
},
+ "linux-gnu_ilp32" : {
+ "aarch64" : (183, 0, 0, True, 32),
+ },
"linux-gnux32" : {
"x86_64": (62, 0, 0, True, 32),
},
@@ -429,7 +432,7 @@ def package_qa_check_arch(path,name,d, elf, messages):
# Check the architecture and endiannes of the binary
is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \
- (target_os == "linux-gnux32" or target_os == "linux-muslx32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
+ (target_os == "linux-gnux32" or target_os == "linux-muslx32" or target_os == "linux-gnu_ilp32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
if not ((machine == elf.machine()) or is_32):
package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \
(oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d)))