mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 11:50:30 +00:00
acrn-config: add 'poweroff_channel' support for launch config
Add pm_channel support to parse and get 'poweroff_channel' item value from launch config files, these values are selectable by user. Tracked-On: #4212 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -48,6 +48,14 @@ PT_SLOT = {
|
||||
|
||||
|
||||
POST_UUID_DIC = {}
|
||||
PM_CHANNEL = ['', 'IOC', 'PowerButton', 'vuart1(pty)', 'vuart1(tty)']
|
||||
PM_CHANNEL_DIC = {
|
||||
None:'',
|
||||
'IOC':'--pm_notify_channel ioc',
|
||||
'PowerButton':'--pm_notify_channel power_button',
|
||||
'vuart1(pty)':'--pm_notify_channel uart \\\n\t--pm_by_vuart pty,/run/acrn/life_mngr_$vm_name \\\n\t-l com2,/run/acrn/life_mngr_$vm_name',
|
||||
'vuart1(tty)':'--pm_notify_channel uart --pm_by_vuart tty,/dev/ttyS1',
|
||||
}
|
||||
|
||||
|
||||
def prepare(check_git):
|
||||
|
Reference in New Issue
Block a user