[Buildroot] [PATCH 3/5] support/testing/infra/emulator.py: support aarch64

Matt Weber matthew.weber at rockwellcollins.com
Tue Nov 13 23:02:24 UTC 2018


 - Add the condition under the -kernel assignment for aarch64
 - Tested with a defconfig simliar to qemu_aarch64_virt_defconfig

Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
---
 support/testing/infra/emulator.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/support/testing/infra/emulator.py b/support/testing/infra/emulator.py
index 802e89d..8e5a7e9 100644
--- a/support/testing/infra/emulator.py
+++ b/support/testing/infra/emulator.py
@@ -62,7 +62,9 @@ class Emulator(object):
                     kernel = infra.download(self.downloaddir,
                                             "kernel-versatile")
                     qemu_cmd += ["-M", "versatilepb"]
-
+            elif arch == "aarch64":
+                kernel_cmdline.append("console=ttyAMA0")
+                qemu_cmd += ["-M", "virt", "-cpu", "cortex-a53"]
             qemu_cmd += ["-kernel", kernel]
 
         if kernel_cmdline:
-- 
1.9.1




More information about the buildroot mailing list