common: rename _src_ to _source_ everywhere

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent a1ae3fbd26
commit eccefa4c57
12 changed files with 76 additions and 70 deletions

View File

@@ -97,7 +97,7 @@ usually extra Buildroot targets.
'BR2_EXTERNAL={}'.format(br2_external_str), LF,
defconfig, LF,
],
cwd=self.env['buildroot_src_dir'],
cwd=self.env['buildroot_source_dir'],
)
configs = self.env['config']
configs.extend([
@@ -143,7 +143,7 @@ usually extra Buildroot targets.
'O={}'.format(self.env['buildroot_build_dir']), LF,
'olddefconfig', LF,
],
cwd=self.env['buildroot_src_dir'],
cwd=self.env['buildroot_source_dir'],
)
self.make_build_dirs()
if not self.env['no_all']:
@@ -152,7 +152,7 @@ usually extra Buildroot targets.
[
'make', LF,
'LKMC_GEM5_SRCDIR="{}"'.format(self.env['gem5_source_dir']), LF,
'LKMC_PARSEC_BENCHMARK_SRCDIR="{}"'.format(self.env['parsec_benchmark_src_dir']), LF,
'LKMC_PARSEC_BENCHMARK_SRCDIR="{}"'.format(self.env['parsec_benchmark_source_dir']), LF,
'O={}'.format(self.env['buildroot_build_dir']), LF,
'V={}'.format(int(self.env['verbose'])), LF,
] +
@@ -160,7 +160,7 @@ usually extra Buildroot targets.
,
out_file=os.path.join(self.env['buildroot_build_dir'], 'lkmc.log'),
delete_env=['LD_LIBRARY_PATH'],
cwd=self.env['buildroot_src_dir'],
cwd=self.env['buildroot_source_dir'],
)
# Create the qcow2 from ext2.
# Skip if qemu is not present, because gem5 does not need the qcow2.
@@ -172,7 +172,7 @@ usually extra Buildroot targets.
return self.env['buildroot_build_dir']
def _path_relative_to_buildroot(self, abspath):
return os.path.relpath(abspath, self.env['buildroot_src_dir'])
return os.path.relpath(abspath, self.env['buildroot_source_dir'])
if __name__ == '__main__':
Main().cli()