mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
common: factor -j --nproc to all builds
This commit is contained in:
6
build-m5
6
build-m5
@@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import multiprocessing
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
import common
|
||||
|
||||
@@ -19,7 +15,7 @@ class M5Component(common.Component):
|
||||
arch = args.arch
|
||||
return [
|
||||
'make',
|
||||
'-j', str(multiprocessing.cpu_count()),
|
||||
'-j', str(args.nproc),
|
||||
'-f', 'Makefile.{}'.format(arch),
|
||||
'CC={}'.format(cc),
|
||||
'LD={}'.format(ld),
|
||||
|
||||
Reference in New Issue
Block a user