acrn-hypervisor/misc/config_tools/board_inspector
Junjie Mao bd4ddbd31d board-inspector: reorganize the scripts
This patch reorganize the files of the board inspector as follows.

1. Rename the directory name from `target` to `board_inspector`, in order to
   align with the name used in ACRN documentation.
2. Move the scripts that generate the current board XML into the `legacy`
   sub-directory. The legacy nodes will be removed after transitioning to the
   new board XML schema completely,
3. Add the main script `cli.py` which is the command line interface of the board
   inspector.

v1 -> v2:
 - Rename `run.py` to `cli.py`.

Tracked-On: #5922
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2021-05-16 19:02:00 +08:00
..
acpiparser board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
legacy board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
lib board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
cli.py board-inspector: reorganize the scripts 2021-05-16 19:02:00 +08:00
README board-inspector: reorganize the scripts 2021-05-16 19:02:00 +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 run.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+ or ClearLinux 30210+
	Tools:		cpuid, rdmsr, lspci, dmidecode
	kernel cmdline: "idle=nomwait intel_idle.max_cstate=0 intel_pstate=disable"