The project provides console utility that can be used for printing inventory list stored by OpenBMC.
OpenBMC SDK contains toolchain and all dependencies needed for building the project. See official documentation for details.
Build steps:
$ source /path/to/sdk/environment-setup-arm1176jzs-openbmc-linux-gnueabi
$ mkdir build_dir
$ meson build_dir
$ ninja -C build_dir
If build process succeeded, the directory build_dir
contains executable
file lsinventory
.
Unit tests can be built and run with OpenBMC SDK.
Run tests:
$ source /path/to/sdk/environment-setup-arm1176jzs-openbmc-linux-gnueabi
$ # build the project (see above)
$ qemu-arm -L ${SDKTARGETSYSROOT} build_dir/test/lsinventory_test