From f716d8a2ad59bd29b5d96f263bb6fb8c01b4fa52 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 29 Jun 2020 09:47:30 +0800 Subject: [PATCH] acrn-config: remove unnecessary check for pci.ids The pci.ids database should be already prepared while tools of 'lspci' were correctly installed and this check for pci.ids should be removed. Tracked-On: #4989 Signed-off-by: Wei Liu Acked-by: Victor Sun --- misc/acrn-config/target/board_parser.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/misc/acrn-config/target/board_parser.py b/misc/acrn-config/target/board_parser.py index 75cd6dbd5..f09ff9886 100755 --- a/misc/acrn-config/target/board_parser.py +++ b/misc/acrn-config/target/board_parser.py @@ -20,7 +20,6 @@ PY_CACHE = "__pycache__" # This file store information which query from hw board BIN_LIST = ['cpuid', 'rdmsr', 'lspci', ' dmidecode', 'blkid', 'stty'] -PCI_IDS = ["/usr/share/hwdata/pci.ids", "/usr/share/misc/pci.ids"] CPU_VENDOR = "GenuineIntel" @@ -96,10 +95,6 @@ def check_env(): parser_lib.print_red("Please run this tools in a native OS environment!") sys.exit(1) - if not os.path.exists(PCI_IDS[0]) and not os.path.exists(PCI_IDS[1]): - parser_lib.print_yel("pci.ids not found, please make sure lspci is installed correctly!") - sys.exit(1) - if os.path.exists(OUTPUT): shutil.rmtree(OUTPUT)