File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,10 @@ def parse_args():
214
214
nargs = argparse .REMAINDER ,
215
215
help = 'additional arguments to pass as the emulator' )
216
216
217
+ parser .add_argument ('--memory' ,
218
+ default = '9800M' ,
219
+ help = 'amount of memory to allocate to QEMU' )
220
+
217
221
return parser .parse_args ()
218
222
219
223
@@ -515,10 +519,11 @@ def find(path) -> List[str]:
515
519
516
520
def run_in_emulator (build_info : BuildInfo , iso_path ):
517
521
is_kvm_available = is_kvm_supported ()
518
- args = build_info .args
522
+ # args = build_info.args
523
+ args = parse_args ()
519
524
520
525
qemu_args = ['-cdrom' , iso_path ,
521
- '-m' , '9800M' ,
526
+ '-m' , args . memory ,
522
527
'-smp' , '1' ,
523
528
'-serial' , 'stdio' ]
524
529
@@ -665,7 +670,7 @@ def main():
665
670
666
671
kernel_bin = kernel_bin [0 ]
667
672
iso_path = prepare_iso (args , kernel_bin , user_bins )
668
- run_in_emulator (args , iso_path )
673
+ run_in_emulator (build_info , iso_path )
669
674
elif args .clean :
670
675
src_target = os .path .join ('src' , 'target' , args .target )
671
676
userland_target = os .path .join ('userland' , 'target' )
You can’t perform that action at this time.
0 commit comments