mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Build the Linux kernel independently from Buildroot
This will allow for other types of root filesystems that don't rely on Buildroot to be added and used in the future. Propagate --verbose on all build scripts to see full GCC commands. build-all: allow for neat subsets also 9p share rootfs_overlay. TODO document.
This commit is contained in:
17
build-qemu
17
build-qemu
@@ -21,6 +21,10 @@ if args.clean:
|
||||
else:
|
||||
start_time = time.time()
|
||||
os.makedirs(common.qemu_build_dir, exist_ok=True)
|
||||
if args.verbose:
|
||||
verbose = ['V=1']
|
||||
else:
|
||||
verbose = []
|
||||
assert common.run_cmd(
|
||||
[
|
||||
os.path.join(common.qemu_src_dir, 'configure'),
|
||||
@@ -35,11 +39,14 @@ else:
|
||||
cwd=common.qemu_build_dir
|
||||
) == 0
|
||||
assert common.run_cmd(
|
||||
[
|
||||
'make',
|
||||
# TODO factor with build.
|
||||
'-j', str(multiprocessing.cpu_count()),
|
||||
],
|
||||
(
|
||||
[
|
||||
'make',
|
||||
'-j', str(multiprocessing.cpu_count()),
|
||||
|
||||
] +
|
||||
verbose
|
||||
),
|
||||
cwd=common.qemu_build_dir,
|
||||
extra_paths=[common.ccache_dir],
|
||||
) == 0
|
||||
|
||||
Reference in New Issue
Block a user