mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
common: rename _src_ to _source_ everywhere
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user