Compare commits
No commits in common. "31caabdeef3b54aaac351ef5c1782b28cae229ac" and "456847efa7c74a93965c021904797896e83925e8" have entirely different histories.
31caabdeef
...
456847efa7
23
rootfs.py
23
rootfs.py
|
@ -8,13 +8,11 @@ you can run bootstap inside chroot.
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||||
# SPDX-FileCopyrightText: 2021 Bastian Bittorf <bb@npl.de>
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import shutil
|
|
||||||
|
|
||||||
from sysa import SysA
|
from sysa import SysA
|
||||||
from lib.utils import run
|
from lib.utils import run
|
||||||
|
@ -86,23 +84,10 @@ def bootstrap(args, tmp_dir, initramfs_path):
|
||||||
return
|
return
|
||||||
|
|
||||||
if args.minikernel:
|
if args.minikernel:
|
||||||
if os.path.isdir('kritis-linux'):
|
run('git', 'clone', '--depth', '1', '--branch', 'v0.4',
|
||||||
shutil.rmtree('kritis-linux')
|
|
||||||
|
|
||||||
run('git', 'clone',
|
|
||||||
'--depth', '1', '--branch', 'v0.7',
|
|
||||||
'https://github.com/bittorf/kritis-linux.git')
|
'https://github.com/bittorf/kritis-linux.git')
|
||||||
run('kritis-linux/ci_helper.sh',
|
run('kritis-linux/ci_helper.sh', '--arch', 'x86_64', '--ramsize',
|
||||||
'--private',
|
'-m', str(args.qemu_ram) + 'M', '--kernel', '5.10.8', '--initrd', initramfs_path)
|
||||||
'--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
|
return
|
||||||
|
|
||||||
run(args.qemu_cmd,
|
run(args.qemu_cmd,
|
||||||
|
@ -114,5 +99,5 @@ def bootstrap(args, tmp_dir, initramfs_path):
|
||||||
'-initrd', initramfs_path,
|
'-initrd', initramfs_path,
|
||||||
'-append', "console=ttyS0")
|
'-append', "console=ttyS0")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__=="__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue