acrn-config: remove the same parameters and functions from board_cfg_lib

Board config should relay on library/common.py and board_cfg_lib, then
remove the duplicate parameters and functions.

Tracked-On: #3854
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
Acked-by: Terry Zou <terry.zou@intel.com>
This commit is contained in:
Wei Liu
2020-03-26 17:07:49 +08:00
committed by wenlingz
parent 78ce220eb9
commit ed8ac484ad
8 changed files with 76 additions and 180 deletions

View File

@@ -10,6 +10,7 @@ import shutil
import subprocess
import xml.etree.ElementTree as ET
ACRN_CONFIG_TARGET = ''
SOURCE_ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../')
HV_LICENSE_FILE = SOURCE_ROOT_DIR + 'misc/acrn-config/library/hypervisor_license'
@@ -258,6 +259,7 @@ def get_vm_num(config_file):
:param config_file: it is a file what contains information for script to read from
:return: total vm number
"""
global VM_COUNT
vm_count = 0
root = get_config_root(config_file)
for item in root: