linux: add --linux-source-dir to have custom linux source dir

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-12-04 00:00:00 +00:00
parent 38ba2b85fc
commit f03e6ea2eb
3 changed files with 31 additions and 22 deletions

View File

@@ -58,7 +58,7 @@ Configure the kernel, but don't build it.
gcc = common.get_toolchain_tool(tool)
prefix = gcc[:-len(tool)]
common_args = {
'cwd': common.linux_src_dir,
'cwd': common.linux_source_dir,
}
ccache = shutil.which('ccache')
if ccache is not None:
@@ -99,7 +99,7 @@ Configure the kernel, but don't build it.
)
common.run_cmd(
[
os.path.join(common.linux_src_dir, 'scripts', 'kconfig', 'merge_config.sh'), common.Newline,
os.path.join(common.linux_source_dir, 'scripts', 'kconfig', 'merge_config.sh'), common.Newline,
'-m', common.Newline,
'-O', build_dir, common.Newline,
os.path.join(build_dir, '.config'), common.Newline,