Date
1 - 4 of 4
remove particular device from QB_OPT_APPEND: per-word manner
Sergey Ivanov
Hi there. What i'm trying to do is tro remove both bus and hid devices on it viaI'm working with arm64 target and i want to take control on usb buses on it. QB_OPT_APPEND_remove = " -show-cursor -device qemu-xhci -device usb-tablet -device usb-kbd " 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? -- Kind regards, Sergey Ivanov
|
|
Quentin Schulz
Hi Sergey,
On Tue, Jan 12, 2021 at 05:09:25PM +0200, Sergey Ivanov wrote: Hi there.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, Cheers, Quentin
|
|
Quentin Schulz
On Tue, Jan 12, 2021 at 05:27:58PM +0200, Sergey Ivanov wrote:
Thanks, it should work, provided...I'd say yes except for task-specific variables (one can do QB_OPT_APPEND_task-install for example). Make sure you expand the variable though (d.getVar('QB_OPT_APPEND', True) IIRC?) so that if QB_OPT_APPEND contains other variables, they'll be resolved before you start doing your logic. Quentin
|
|
Sergey Ivanov
For all info ---------- Forwarded message --------- От: Quentin Schulz <quentin.schulz@...> Date: вт, 12 янв. 2021 г. в 17:43 Subject: Re: [yocto] remove particular device from QB_OPT_APPEND: per-word manner To: Sergey Ivanov <icegood1980@...> Rah, please answer to all always (keep the mailing list in Cc). I'll bounce the mail on the mailing list for you now.
On Tue, Jan 12, 2021 at 05:27:58PM +0200, Sergey Ivanov wrote:
> Thanks, it should work, provided... > Am i understand correctly that all append-remove stuff works BEFORE > anonymous python script? > > вт, 12 янв. 2021 г. в 17:19, Quentin Schulz < > 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, > > Cheers, > > Quentin > > > > > -- > Kind regards, > Sergey Ivanov -- StreamUnlimited Engineering GmbH High Tech Campus Vienna, Gutheil-Schoder-Gasse 10, 1100 Vienna, Austria Fax: +43 1 667 20 02 4401 quentin.schulz@..., www.streamunlimited.com -- Kind regards, Sergey Ivanov
|
|