mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
ctng: use CT_JOBS instead of wrong -j
This commit is contained in:
@@ -38,7 +38,7 @@ def main(args, extra_args=None):
|
|||||||
assert common.run_cmd(
|
assert common.run_cmd(
|
||||||
[
|
[
|
||||||
'make',
|
'make',
|
||||||
'-j', str(nproc)
|
'-j', str(nproc),
|
||||||
],
|
],
|
||||||
) == 0
|
) == 0
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ def main(args, extra_args=None):
|
|||||||
[
|
[
|
||||||
common.crosstool_ng_executable,
|
common.crosstool_ng_executable,
|
||||||
'build',
|
'build',
|
||||||
'-j', str(nproc)
|
'CT_JOBS={}'.format(str(nproc)),
|
||||||
],
|
],
|
||||||
out_file=os.path.join(common.crosstool_ng_build_dir, 'lkmc.log'),
|
out_file=os.path.join(common.crosstool_ng_build_dir, 'lkmc.log'),
|
||||||
delete_env=['LD_LIBRARY_PATH'],
|
delete_env=['LD_LIBRARY_PATH'],
|
||||||
|
|||||||
2
run
2
run
@@ -176,7 +176,7 @@ def main(args, extra_args=None):
|
|||||||
# Anything smaller than physical blows up as expected, but why can't it auto-detect the right value?
|
# Anything smaller than physical blows up as expected, but why can't it auto-detect the right value?
|
||||||
cmd += [
|
cmd += [
|
||||||
'--command-line', 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli),
|
'--command-line', 'earlyprintk=pl011,0x1c090000 console=ttyAMA0 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli),
|
||||||
'--dtb-file', os.path.join(common.gem5_system_dir, 'arm', 'dt', 'armv{}_gem5_v1_{}cpu.dtb'.format(common.armv, args.cpus)),
|
'--dtb-filename', os.path.join(common.gem5_system_dir, 'arm', 'dt', 'armv{}_gem5_v1_{}cpu.dtb'.format(common.armv, args.cpus)),
|
||||||
'--machine-type', common.machine,
|
'--machine-type', common.machine,
|
||||||
]
|
]
|
||||||
if not args.baremetal is None:
|
if not args.baremetal is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user