From d769513efc3825ac4321f6a23f5696b3288450b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 25 Mar 2021 00:00:02 +0000 Subject: [PATCH] Fix ./build-m5 "Do not know how to make File target `build/aarch64/out/m5'" The correct m5 target is: submodules/gem5/util/m5/build/arm64/out/m5, but we were using submodules/gem5/util/m5/build/aarch6/out/m5 instead, presumably this changed on some gem5 version update, and we didn't notice because artifacts were leftover in the repo due to in-tree build. Thanks for EE415-20170470 for proposing the patch at: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/145#issuecomment-787219330 Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/145 --- common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.py b/common.py index a22e939..987e58e 100644 --- a/common.py +++ b/common.py @@ -928,6 +928,8 @@ Incompatible archs are skipped. env['gem5_m5_source_dir'] = join(env['gem5_source_dir'], 'util', 'm5') if self.env['arch'] == 'x86_64': env['gem5_m5_source_dir_build_arch'] = 'x86' + elif self.env['arch'] == 'aarch64': + env['gem5_m5_source_dir_build_arch'] = 'arm64' else: env['gem5_m5_source_dir_build_arch'] = env['arch'] env['gem5_m5_source_dir_build'] = join(env['gem5_m5_source_dir'], 'build', env['gem5_m5_source_dir_build_arch'], 'out', 'm5')