From 75c9dbb46d246f3fe450d0e2faad825f49ebacaf Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Sun, 23 Aug 2020 21:15:46 -0700 Subject: [PATCH] acrn-config: remove CONFIG_UEFI_OS_LOADER_NAME from python scripts Since UEFI boot is no longer supported. Tracked-On: #5197 Signed-off-by: Zide Chen --- misc/acrn-config/hv_config/board_defconfig.py | 1 - misc/acrn-config/hv_config/hv_item.py | 3 --- misc/acrn-config/library/hv_cfg_lib.py | 8 -------- 3 files changed, 12 deletions(-) diff --git a/misc/acrn-config/hv_config/board_defconfig.py b/misc/acrn-config/hv_config/board_defconfig.py index 25d341587..e23ec1de2 100644 --- a/misc/acrn-config/hv_config/board_defconfig.py +++ b/misc/acrn-config/hv_config/board_defconfig.py @@ -160,7 +160,6 @@ def get_serial_console(config): def get_miscfg(hv_info, config): print("CONFIG_GPU_SBDF={}".format(hv_info.mis.gpu_sbdf), file=config) - print('CONFIG_UEFI_OS_LOADER_NAME="{}"'.format(hv_info.mis.uefi_os_loader_name), file=config) def get_features(hv_info, config): diff --git a/misc/acrn-config/hv_config/hv_item.py b/misc/acrn-config/hv_config/hv_item.py index acedae8f7..bb8bc43b3 100644 --- a/misc/acrn-config/hv_config/hv_item.py +++ b/misc/acrn-config/hv_config/hv_item.py @@ -86,15 +86,12 @@ class MisCfg: def __init__(self, hv_file): self.hv_file = hv_file self.gpu_sbdf = 0 - self.uefi_os_loader_name = '' def get_info(self): self.gpu_sbdf = common.get_hv_item_tag(self.hv_file, "MISC_CFG", "GPU_SBDF") - self.uefi_os_loader_name = common.get_hv_item_tag(self.hv_file, "MISC_CFG", "UEFI_OS_LOADER_NAME") def check_item(self): hv_cfg_lib.hv_size_check(self.gpu_sbdf, "MISC_CFG", "GPU_SBDF") - hv_cfg_lib.uefi_load_name_check(self.uefi_os_loader_name, "MISC_CFG", "UEFI_OS_LOADER_NAME") class Features: diff --git a/misc/acrn-config/library/hv_cfg_lib.py b/misc/acrn-config/library/hv_cfg_lib.py index 230320802..1b20c9fb4 100644 --- a/misc/acrn-config/library/hv_cfg_lib.py +++ b/misc/acrn-config/library/hv_cfg_lib.py @@ -97,14 +97,6 @@ def ir_entries_check(str_num, cap, cap_ir_entries): ERR_LIST[key] = "{} should be a value of 2^n".format(cap_ir_entries) -def uefi_load_name_check(str_name, mis, mis_uefi_name): - - name_len = len(str_name) - if name_len > 256 or name_len < 0: - key = 'hv,{},{}'.format(mis, mis_uefi_name) - ERR_LIST[key] = "{} length should be in range[0, 256]".format(mis_uefi_name) - - def ny_support_check(sel_str, feat, feat_item, feat_sub_leaf=''): if empty_check(sel_str, feat, feat_item, feat_sub_leaf): return