rootfs.py: minikernel:
use branch v0.7 from kritis-linux and change settings to be more i386-alike and add essential kernel feature 'flock' using latest kernel 3.18.140 from 3.18.x-branch (+minor indentation fixes)
This commit is contained in:
parent
9f83e1213e
commit
7e69dcc926
21
rootfs.py
21
rootfs.py
|
@ -8,11 +8,13 @@ you can run bootstap inside chroot.
|
|||
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2021 Bastian Bittorf <bb@npl.de>
|
||||
|
||||
import argparse
|
||||
import glob
|
||||
import os
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
from sysa import SysA
|
||||
from lib.utils import run
|
||||
|
@ -84,10 +86,23 @@ def bootstrap(args, tmp_dir, initramfs_path):
|
|||
return
|
||||
|
||||
if args.minikernel:
|
||||
run('git', 'clone', '--depth', '1', '--branch', 'v0.4',
|
||||
if os.path.isdir('kritis-linux'):
|
||||
shutil.rmtree('kritis-linux')
|
||||
|
||||
run('git', 'clone',
|
||||
'--depth', '1', '--branch', 'v0.7',
|
||||
'https://github.com/bittorf/kritis-linux.git')
|
||||
run('kritis-linux/ci_helper.sh', '--arch', 'x86_64', '--ramsize',
|
||||
'-m', str(args.qemu_ram) + 'M', '--kernel', '5.10.8', '--initrd', initramfs_path)
|
||||
run('kritis-linux/ci_helper.sh',
|
||||
'--private',
|
||||
'--multi', '1',
|
||||
'--repeat', '1',
|
||||
'--arch', args.arch,
|
||||
'--qemucpu', '486',
|
||||
'--kernel', '3.18.140',
|
||||
'--features', 'kflock,highrestimers',
|
||||
'--ramsize', str(args.qemu_ram) + 'M',
|
||||
'--initrd', initramfs_path,
|
||||
'--log', '/tmp/bootstrap.log')
|
||||
return
|
||||
|
||||
run(args.qemu_cmd,
|
||||
|
|
Loading…
Reference in New Issue