Re: remove particular device from QB_OPT_APPEND: per-word manner

Quentin Schulz

Hi Sergey,

On Tue, Jan 12, 2021 at 05:09:25PM +0200, Sergey Ivanov wrote:
Hi there.

I'm working with arm64 target and i want to take control on usb buses on it.
What i'm trying to do is tro remove both bus and hid devices on it via
QB_OPT_APPEND_remove = " -show-cursor -device qemu-xhci -device usb-tablet
-device usb-kbd "

Of course, it doesn't work properly since it removes ALL occurrences of
each word above. In particular, i had "-device VGA,edid=on" that i wanted
to stay.
Instead, i obtained "VGA,edid=on" that lead to boot error. OK, it is clear.
I also tried smth. like

QB_OPT_APPEND_remove = " -show-cursor '-device qemu-xhci' '-device
usb-tablet' '-device usb-kbd -device' "

however nothing was removed here. Can i workaround given issue under *Zeus?*
A "hack" I'm thinking about right now would be to remove those variables
by hand in a python anonymous function. You want to expand the variable
first, then do some python regex or however you like, to remove what you
want. Python anonymous functions are run at parsing time.

Otherwise, if you know pretty much exactly what the content of the
variable should be for you, you can always use the following:
QB_OPT_APPEND_<my-machine> = "<content>"

Hope this can give you some ideas,

Join to automatically receive all group messages.