run-liminix-vm: map rootfs file iff --phram-address supplied

pull/2/head
Daniel Barlow 2023-12-21 10:50:16 +00:00
parent 9a29a042e8
commit a962f18369
1 changed files with 8 additions and 5 deletions

View File

@ -113,11 +113,14 @@
(local exec-args
(-> []
(appendm (. bin options.arch))
(appendm ["-m" "272"
"-echr" "16"
"-device"
(.. "loader,file=" options.rootfs ",addr=" options.phram-address)
])
(appendm ["-echr" "16"])
(appendm (if options.phram-address
[
"-m" "272"
"-device"
(.. "loader,file=" options.rootfs ",addr=" options.phram-address)
]
["-m" "256"]))
(appendm
(if options.background
(background options.background)