commit | b78d4c81b345de4f1744c7832a5669441f5eb9e0 | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Mon Sep 19 15:21:56 2022 -0700 |
committer | Ed Tanous <edtanous@google.com> | Mon Sep 19 15:38:29 2022 -0700 |
tree | 05fc07ba8fe19b9c05692cb823db557bd7eb0eb9 | |
parent | 0b964d14088261d2ae8d6c7340c4fa46c9c5e1ca [diff] |
Apply modern compiler options These are options used in other places that significantly reduce the size of binaries, in this case, 6KB, or about 15% of the total application size. Also, it should be noted, because raw-peci is a c++ application, we need to set the CMAK_CXX_FLAGS as well for them to be applied. Specific flags enabled are in the patchset. Tested: Code compiles Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I68c91fa6fede6ab9ae69c6f29a2537ee95584e0a
libpeci is a library that provides various APIs to interface with the IOCTLs provided by the PECI driver in the OpenBMC kernel. Currently available here:
https://github.com/openbmc/linux/blob/dev-5.4/include/uapi/linux/peci-ioctl.h
This repo also includes a peci_cmds command-line utility with functions that map to the libpeci APIs. It can be used to test PECI functionality across the library, driver, and hardware.
This repo also includes dbus_raw_peci which provides a raw-peci daemon that exposes a raw PECI interface that is accessible over D-Bus. It can be used when an application needs to send a raw PECI command without loading the full PECI library.