Skip to content

Commit fb396be

Browse files
committed
build-m5: add missing CROSS_COMPILE parameter
The build could fail with: ... make: arm-linux-gnueabi-ar: Command not found ... This was working by change previously because I must have had that installed on all my dev machines. I wonder how it got through Docker though. Oh well.
1 parent 21e7e16 commit fb396be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-m5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Main(common.BuildCliFunction):
1717
'-j', str(self.env['nproc']), LF,
1818
'-f', 'Makefile.{}'.format(arch), LF,
1919
'CC={}'.format(self.env['gcc_path']), LF,
20+
'CROSS_COMPILE={}'.format(self.env['toolchain_prefix_dash']), LF,
2021
'LD={}'.format(self.env['ld_path']), LF,
2122
'PWD={}'.format(self.env['gem5_m5_source_dir']), LF,
2223
]
@@ -31,7 +32,10 @@ class Main(common.BuildCliFunction):
3132
cwd=self.env['gem5_m5_source_dir'],
3233
)
3334
os.makedirs(self.env['out_rootfs_overlay_bin_dir'], exist_ok=True)
34-
self.sh.cp(os.path.join(self.env['gem5_m5_source_dir'], 'm5'), self.env['out_rootfs_overlay_bin_dir'])
35+
self.sh.cp(
36+
os.path.join(self.env['gem5_m5_source_dir'], 'm5'),
37+
self.env['out_rootfs_overlay_bin_dir']
38+
)
3539

3640
def clean(self):
3741
self.sh.run_cmd(

0 commit comments

Comments
 (0)