mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland: convert make to python
This commit is contained in:
6
build-m5
6
build-m5
@@ -8,8 +8,6 @@ from shell_helpers import LF
|
||||
class Main(common.BuildCliFunction):
|
||||
def _get_make_cmd(self):
|
||||
allowed_toolchains = ['buildroot']
|
||||
cc = self.get_toolchain_tool('gcc')
|
||||
ld = self.get_toolchain_tool('ld')
|
||||
if self.env['arch'] == 'x86_64':
|
||||
arch = 'x86'
|
||||
else:
|
||||
@@ -18,8 +16,8 @@ class Main(common.BuildCliFunction):
|
||||
'make', LF,
|
||||
'-j', str(self.env['nproc']), LF,
|
||||
'-f', 'Makefile.{}'.format(arch), LF,
|
||||
'CC={}'.format(cc), LF,
|
||||
'LD={}'.format(ld), LF,
|
||||
'CC={}'.format(self.env['gcc']), LF,
|
||||
'LD={}'.format(self.env['ld']), LF,
|
||||
'PWD={}'.format(self.env['gem5_m5_source_dir']), LF,
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user