mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-05 18:25:05 +00:00
acrn-config: Rename acpi generated asl folder name from VMx to ACPI_VMx
Tracked-On: #5644 Signed-off-by: Xie, nanlin <nanlin.xie@intel.com>
This commit is contained in:
parent
8622d1b644
commit
f7772a98ee
@ -408,7 +408,7 @@ def main(args):
|
|||||||
|
|
||||||
if os.path.isdir(DEST_ACPI_PATH):
|
if os.path.isdir(DEST_ACPI_PATH):
|
||||||
for config in os.listdir(DEST_ACPI_PATH):
|
for config in os.listdir(DEST_ACPI_PATH):
|
||||||
if config.startswith('VM') and os.path.isdir(os.path.join(DEST_ACPI_PATH, config)):
|
if config.startswith('ACPI_VM') and os.path.isdir(os.path.join(DEST_ACPI_PATH, config)):
|
||||||
shutil.rmtree(os.path.join(DEST_ACPI_PATH, config))
|
shutil.rmtree(os.path.join(DEST_ACPI_PATH, config))
|
||||||
|
|
||||||
dict_passthru_devices = collections.OrderedDict()
|
dict_passthru_devices = collections.OrderedDict()
|
||||||
@ -455,12 +455,12 @@ def main(args):
|
|||||||
break
|
break
|
||||||
|
|
||||||
print('start to generate ACPI ASL code for VM{}'.format(vm_id))
|
print('start to generate ACPI ASL code for VM{}'.format(vm_id))
|
||||||
dest_vm_acpi_path = os.path.join(DEST_ACPI_PATH, 'VM'+vm_id)
|
dest_vm_acpi_path = os.path.join(DEST_ACPI_PATH, 'ACPI_VM'+vm_id)
|
||||||
if not os.path.isdir(dest_vm_acpi_path):
|
if not os.path.isdir(dest_vm_acpi_path):
|
||||||
os.makedirs(dest_vm_acpi_path)
|
os.makedirs(dest_vm_acpi_path)
|
||||||
if PASSTHROUGH_PTCT is True and vm_id == PRELAUNCHED_RTVM_ID:
|
if PASSTHROUGH_PTCT is True and vm_id == PRELAUNCHED_RTVM_ID:
|
||||||
passthru_devices.append(PTCT)
|
passthru_devices.append(PTCT)
|
||||||
shutil.copy(os.path.join(VM_CONFIGS_PATH, 'acpi', board_type, PTCT), dest_vm_acpi_path)
|
shutil.copy(os.path.join(VM_CONFIGS_PATH, 'acpi_template', board_type, PTCT), dest_vm_acpi_path)
|
||||||
gen_rsdp(dest_vm_acpi_path)
|
gen_rsdp(dest_vm_acpi_path)
|
||||||
gen_xsdt(dest_vm_acpi_path, passthru_devices)
|
gen_xsdt(dest_vm_acpi_path, passthru_devices)
|
||||||
gen_fadt(dest_vm_acpi_path, board_root)
|
gen_fadt(dest_vm_acpi_path, board_root)
|
||||||
|
@ -185,14 +185,14 @@ def main(args):
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
for config in os.listdir(DEST_ACPI_PATH):
|
for config in os.listdir(DEST_ACPI_PATH):
|
||||||
if os.path.isdir(os.path.join(DEST_ACPI_PATH, config)) and config.startswith('VM'):
|
if os.path.isdir(os.path.join(DEST_ACPI_PATH, config)) and config.startswith('ACPI_VM'):
|
||||||
print('start to generate ACPI binary for {}'.format(config))
|
print('start to generate ACPI binary for {}'.format(config))
|
||||||
dest_vm_acpi_path = os.path.join(DEST_ACPI_PATH, config)
|
dest_vm_acpi_path = os.path.join(DEST_ACPI_PATH, config)
|
||||||
dest_vm_acpi_bin_path = os.path.join(DEST_ACPI_BIN_PATH, config)
|
dest_vm_acpi_bin_path = os.path.join(DEST_ACPI_BIN_PATH, config)
|
||||||
os.makedirs(dest_vm_acpi_bin_path)
|
os.makedirs(dest_vm_acpi_bin_path)
|
||||||
if asl_to_aml(dest_vm_acpi_path, dest_vm_acpi_bin_path):
|
if asl_to_aml(dest_vm_acpi_path, dest_vm_acpi_bin_path):
|
||||||
return 1
|
return 1
|
||||||
aml_to_bin(dest_vm_acpi_path, dest_vm_acpi_bin_path, 'ACPI_'+config+'.bin')
|
aml_to_bin(dest_vm_acpi_path, dest_vm_acpi_bin_path, config+'.bin')
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user