mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
insane.bbclass: Support musl-x32
Added musl-x32 elf header into dictionary. (From OE-Core rev: 305e2b3b3de1af0001d534e5c9ec126481dfd9dd) Signed-off-by: sweeaun <swee.aun.khor@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -150,6 +150,9 @@ def package_qa_get_machine_dict(d):
|
|||||||
"linux-gnux32" : {
|
"linux-gnux32" : {
|
||||||
"x86_64": (62, 0, 0, True, 32),
|
"x86_64": (62, 0, 0, True, 32),
|
||||||
},
|
},
|
||||||
|
"linux-muslx32" : {
|
||||||
|
"x86_64": (62, 0, 0, True, 32),
|
||||||
|
},
|
||||||
"linux-gnun32" : {
|
"linux-gnun32" : {
|
||||||
"mips64": ( 8, 0, 0, False, 32),
|
"mips64": ( 8, 0, 0, False, 32),
|
||||||
"mips64el": ( 8, 0, 0, True, 32),
|
"mips64el": ( 8, 0, 0, True, 32),
|
||||||
@@ -488,7 +491,7 @@ def package_qa_check_arch(path,name,d, elf, messages):
|
|||||||
|
|
||||||
# Check the architecture and endiannes of the binary
|
# Check the architecture and endiannes of the binary
|
||||||
is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \
|
is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \
|
||||||
(target_os == "linux-gnux32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
|
(target_os == "linux-gnux32" or target_os == "linux-muslx32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
|
||||||
if not ((machine == elf.machine()) or is_32):
|
if not ((machine == elf.machine()) or is_32):
|
||||||
package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \
|
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)))
|
(oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d)))
|
||||||
|
|||||||
Reference in New Issue
Block a user