forked from DGNum/liminix
run-liminix-vm: --flag parameter passes arg straight to qemu
This commit is contained in:
parent
1042be912c
commit
aecc44aaa0
1 changed files with 4 additions and 1 deletions
|
@ -44,8 +44,10 @@
|
||||||
["--lan" spec & rest] (assoc (parse-args rest) :lan spec)
|
["--lan" spec & rest] (assoc (parse-args rest) :lan spec)
|
||||||
["--wan" spec & rest] (assoc (parse-args rest) :wan spec)
|
["--wan" spec & rest] (assoc (parse-args rest) :wan spec)
|
||||||
["--command-line" cmd & rest] (assoc (parse-args rest) :command-line cmd)
|
["--command-line" cmd & rest] (assoc (parse-args rest) :command-line cmd)
|
||||||
|
["--flag" flag & rest] (let [o (parse-args rest)]
|
||||||
|
(assoc o :flags (doto o.flags (table.insert flag))))
|
||||||
[kernel rootfsimg]
|
[kernel rootfsimg]
|
||||||
{ :kernel kernel :rootfs (pad-file rootfsimg (* 16 1024)) }
|
{ :flags [] :kernel kernel :rootfs (pad-file rootfsimg (* 16 1024)) }
|
||||||
))
|
))
|
||||||
|
|
||||||
(fn pad-u-boot [options]
|
(fn pad-u-boot [options]
|
||||||
|
@ -114,6 +116,7 @@
|
||||||
(-> []
|
(-> []
|
||||||
(appendm (. bin options.arch))
|
(appendm (. bin options.arch))
|
||||||
(appendm ["-echr" "16"])
|
(appendm ["-echr" "16"])
|
||||||
|
(appendm options.flags)
|
||||||
(appendm (if options.phram-address
|
(appendm (if options.phram-address
|
||||||
[
|
[
|
||||||
"-m" "272"
|
"-m" "272"
|
||||||
|
|
Loading…
Reference in a new issue