Skip to content

Commit 702626f

Browse files
jwpjrdevAndy-Python-Programmer
authored andcommitted
build: config option for QEMU memory
1 parent 86d8975 commit 702626f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

aero.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ def parse_args():
214214
nargs=argparse.REMAINDER,
215215
help='additional arguments to pass as the emulator')
216216

217+
parser.add_argument('--memory',
218+
default='9800M',
219+
help='amount of memory to allocate to QEMU')
220+
217221
return parser.parse_args()
218222

219223

@@ -515,10 +519,11 @@ def find(path) -> List[str]:
515519

516520
def run_in_emulator(build_info: BuildInfo, iso_path):
517521
is_kvm_available = is_kvm_supported()
518-
args = build_info.args
522+
# args = build_info.args
523+
args = parse_args()
519524

520525
qemu_args = ['-cdrom', iso_path,
521-
'-m', '9800M',
526+
'-m', args.memory,
522527
'-smp', '1',
523528
'-serial', 'stdio']
524529

@@ -665,7 +670,7 @@ def main():
665670

666671
kernel_bin = kernel_bin[0]
667672
iso_path = prepare_iso(args, kernel_bin, user_bins)
668-
run_in_emulator(args, iso_path)
673+
run_in_emulator(build_info, iso_path)
669674
elif args.clean:
670675
src_target = os.path.join('src', 'target', args.target)
671676
userland_target = os.path.join('userland', 'target')

0 commit comments

Comments
 (0)