From d946a669839abad18d21577a131904748ff590b1 Mon Sep 17 00:00:00 2001 From: Vyacheslav Barinov Date: Tue, 6 May 2014 14:57:46 +0400 Subject: [PATCH] AArch64 binformat line fix There was a typo in binformat line for an AArch64 which made it impossible to perform firmware builds for this architecture. Change-Id: I7cc300a5a58dc9fee353f314677d6ab4b2e37d6b Signed-off-by: Vyacheslav Barinov --- mic/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 mic/utils/misc.py diff --git a/mic/utils/misc.py b/mic/utils/misc.py old mode 100644 new mode 100755 index 81e969c..cd3e01a --- a/mic/utils/misc.py +++ b/mic/utils/misc.py @@ -922,7 +922,7 @@ def setup_qemu_emulator(rootdir, arch): # register qemu emulator for interpreting other arch executable file if not os.path.exists(node): if arch == "aarch64": - qemu_arm_string = ":aarch64:M::\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfa\\xff\\xff\\xff:%s:\n" % qemu_emulator + qemu_arm_string = ":aarch64:M::\\x7fELF\\x02\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\xb7:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfe\\xff\\xff:%s:\n" % qemu_emulator else: qemu_arm_string = ":arm:M::\\x7fELF\\x01\\x01\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x28\\x00:\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xfa\\xff\\xff\\xff:%s:\n" % qemu_emulator with open("/proc/sys/fs/binfmt_misc/register", "w") as fd: -- 2.7.4