acrn-hypervisor/misc/config_tools/board_inspector
Junjie Mao 55e8443571 board_inspector/cli: export PATH to the legacy board parser
Customized environment variables are not inherited to child processes
created by the subprocess module. As a result the legacy board parser may
not be able to locate the prerequisite utilities if they can be found only
with the customized PATH.

This patch passes the PATH of cli.py to the legacy parser so that both
scripts use the same PATH to search for utilities.

This patch is added in v2 of the series.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-09-04 18:55:48 +08:00
..
acpiparser config-tools: add tpm2 acpi parser to board_inspector 2021-07-26 16:51:30 +08:00
cpuparser board_inspector/cpuparser: add CPUID parsers 2021-05-16 19:02:00 +08:00
extractors config-tools: add MSI-X capability 2021-08-12 10:53:33 +08:00
legacy config_tools: replace illegal character with escaped character 2021-06-01 08:45:54 +08:00
lib board_inspector/acpiparser: add DSDT/SSDT parser 2021-05-16 19:02:00 +08:00
memmapparser board_inspector/memmapparser: add parser of e820 memory maps 2021-05-16 19:02:00 +08:00
pcieparser config-tools: add MSI-X capability 2021-08-12 10:53:33 +08:00
smbiosparser board_inspector/smbiosparser: add SMBIOS table parsers 2021-05-16 19:02:00 +08:00
cli.py board_inspector/cli: export PATH to the legacy board parser 2021-09-04 18:55:48 +08:00
README config_tools: modify README file 2021-06-17 10:31:11 +08:00

board_parser.py will collect all board related info and then generate a board info file for acrn-config host tool usage.

usage: python3 cli.py <board_name> [--out board_info_file]

board_name : the name of board that run ACRN hypervisor, like apl-up2/nuc7i7dnb. It will be used as name of the board configurations folder which created by acrn-config host tool.
board_info_file : (optional) the name of board info file. if it is not specified, a name of <board_name>.xml will be generated under the current working directory by default.

Please run this script under native Linux environment with root privilege.

OS requirement:
	Release:	Ubuntu 18.04+
	Tools:		cpuid, rdmsr, lspci, lxml, dmidecode (optional)
	kernel cmdline: "idle=nomwait intel_idle.max_cstate=0 intel_pstate=disable"