acrn-hypervisor/misc/config_tools
Junjie Mao ce6500893f board_inspector: use executables found under system paths
Using partial executable paths in the board inspector may cause unintended
results when another executable has the same name and is also detectable in
the search paths.

Introduce a wrapper module (`external_tools`) which locates executables
only under system paths such as /usr/bin and /usr/sbin and converts partial
executable paths to absolute ones before executing them via the subprocess
module. All invocations to `subprocess.run` or `subprocess.Popen`
throughout the board inspector are replaced with `external_tools.run`, with
the only exception being the invocation to the legacy board parser which
already uses an absolute path to the current Python interpreter.

Tracked-On: #8315
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-11-16 11:02:42 +08:00
..
acpi_gen misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
acpi_template/template Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
board_config misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
board_inspector board_inspector: use executables found under system paths 2022-11-16 11:02:42 +08:00
configurator config-tools: generate config_summary.rst 2022-11-14 09:53:53 +08:00
data misc: update ASRock board XML 2022-11-04 12:14:50 +08:00
hv_config misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
launch_config config tool: combine multiple xhci to one line 2022-11-08 10:43:29 +08:00
library misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
scenario_config misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
schema config-tools: fix virio GPU rendering issue 2022-11-08 09:45:54 +08:00
service_vm_config misc: rename common.py to avoid private library conflict 2022-11-14 12:03:51 +08:00
static_allocators static_allocator/gpa: deduplicate secondary PCI window list 2022-11-15 09:57:51 +08:00
xforms config_tools: add pio serial port bdf to config.h 2022-10-19 17:23:11 +08:00
LICENSE config_tools: packaging config tool scripts for easier import 2022-03-18 08:49:06 +08:00
MANIFEST.in config_tools: change JSON Schema source file 2022-05-13 11:13:42 +08:00
README.md config_tools: packaging config tool scripts for easier import 2022-03-18 08:49:06 +08:00
build.cmd config_tools: fix Windows config_tools package build script 2022-05-22 20:10:24 +08:00
pyproject.toml config_tools: packaging config tool scripts for easier import 2022-03-18 08:49:06 +08:00
requirements.txt Create a requirements.txt for python package on GSG 2022-10-27 16:15:40 +08:00
setup.cfg config_tools: change JSON Schema source file 2022-05-13 11:13:42 +08:00

README.md

Supporting libraries of ACRN configuration toolset

This package contains the libraries supporting ACRN configuration toolset, including:

  • The manipulators and validators of scenario schemas or XMLs
  • The generator of guest ACPI tables

The main objective of this package is to ease the import of the supporting libraries in the ACRN configurator which uses a Python interpreter built in WebAssembly (WASM). This package is thus NOT intended to be used by users; invoke the Python scripts directly if needed.