diff options
| author | Daniel Díaz <daniel.diaz@linaro.org> | 2017-11-13 12:06:27 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-03 09:26:37 +0000 |
| commit | 183be315b1381c342104465075590fbb99cbe3cc (patch) | |
| tree | a129c9ba8ddbb385060d06b304fe7942ec5ed593 /meta/classes | |
| parent | 6e7463fb92ad7b56beb0d9a28191e68a206b0e27 (diff) | |
| download | poky-183be315b1381c342104465075590fbb99cbe3cc.tar.gz | |
insane: add support for ARM64 ILP32
Add aarch64 32-bits (ILP32) ELF header into dictionary and
check binaries for 32-bitness.
(From OE-Core rev: 4b4a1295b8476d2820935eb5661b2d24a49b29b2)
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/insane.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 535d41077e..7407b29f86 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
| @@ -149,6 +149,9 @@ def package_qa_get_machine_dict(d): | |||
| 149 | "powerpc": (20, 0, 0, False, 32), | 149 | "powerpc": (20, 0, 0, False, 32), |
| 150 | "sh4": (42, 0, 0, True, 32), | 150 | "sh4": (42, 0, 0, True, 32), |
| 151 | }, | 151 | }, |
| 152 | "linux-gnu_ilp32" : { | ||
| 153 | "aarch64" : (183, 0, 0, True, 32), | ||
| 154 | }, | ||
| 152 | "linux-gnux32" : { | 155 | "linux-gnux32" : { |
| 153 | "x86_64": (62, 0, 0, True, 32), | 156 | "x86_64": (62, 0, 0, True, 32), |
| 154 | }, | 157 | }, |
| @@ -429,7 +432,7 @@ def package_qa_check_arch(path,name,d, elf, messages): | |||
| 429 | 432 | ||
| 430 | # Check the architecture and endiannes of the binary | 433 | # Check the architecture and endiannes of the binary |
| 431 | is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \ | 434 | is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \ |
| 432 | (target_os == "linux-gnux32" or target_os == "linux-muslx32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE'))) | 435 | (target_os == "linux-gnux32" or target_os == "linux-muslx32" or target_os == "linux-gnu_ilp32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE'))) |
| 433 | if not ((machine == elf.machine()) or is_32): | 436 | if not ((machine == elf.machine()) or is_32): |
| 434 | package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \ | 437 | package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \ |
| 435 | (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d))) | 438 | (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d))) |
