Make userland / assembly getting started more uniform / visible

Forward --gcc-which to ./run --tmux.

Use gdb-multiarch for --gcc-which host.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-14 00:00:00 +00:00
parent 9f9db3680d
commit 91986fb295
12 changed files with 286 additions and 178 deletions

View File

@@ -86,17 +86,14 @@ Run `make modules_install` after `make`.
def build(self):
build_dir = self.get_build_dir()
os.makedirs(build_dir, exist_ok=True)
tool = 'gcc'
gcc = self.get_toolchain_tool(tool)
prefix = gcc[:-len(tool)]
common_args = {
'cwd': self.env['linux_source_dir'],
}
ccache = shutil.which('ccache')
if ccache is not None:
cc = '{} {}'.format(ccache, gcc)
cc = '{} {}'.format(ccache, self.env['gcc_path'])
else:
cc = gcc
cc = self.env['gcc_path']
if self.env['verbose']:
verbose = ['V=1']
else:
@@ -105,7 +102,7 @@ Run `make modules_install` after `make`.
'make', LF,
'-j', str(self.env['nproc']), LF,
'ARCH={}'.format(self.env['linux_arch']), LF,
'CROSS_COMPILE={}'.format(prefix), LF,
'CROSS_COMPILE={}-'.format(self.env['toolchain_prefix']), LF,
'CC={}'.format(cc), LF,
'O={}'.format(build_dir), LF,
] + verbose