pHAL: Enabled environment variable based pHAL logging

pHAL repos logging level is initialised based on repository
specific environment variables. If the environment variable
is not set by the user, default logging level ( INFO only)
will be getting initialised.

Environment variable names:
 - PDBG_LOG pdbg library
 - IPL_LOG  ipl library
 - LIBEKB_LOG libekb library

Refer individual repository for logging level details.

Example: To set pdbg log level to PDBG_DEBUG
  export PDBG_LOG=4
  systemctl import-environment PDBG_LOG

Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I3f9f35c0b5d23c5635001379bd330d56c2a468b7
1 file changed
tree: 07701c3095ea698a23e01d7b864c9363a896a346
  1. phalerror/
  2. procedures/
  3. test/
  4. .clang-format
  5. .gitignore
  6. bootstrap.sh
  7. cfam_access.cpp
  8. cfam_access.hpp
  9. configure.ac
  10. ext_interface.cpp
  11. ext_interface.hpp
  12. filedescriptor.cpp
  13. filedescriptor.hpp
  14. gen_makefile.sh
  15. LICENSE
  16. MAINTAINERS
  17. Makefile.am
  18. Makefile.generated.in
  19. nmi_interface.cpp
  20. nmi_interface.hpp
  21. nmi_main.cpp
  22. op-cfam-reset.service.in
  23. op-continue-mpreboot@.service.in
  24. op-enter-mpreboot@.service.in
  25. op-stop-instructions@.service.in
  26. p10_cfam.hpp
  27. p9_cfam.hpp
  28. pcie-poweroff@.service.in
  29. proc_control.cpp
  30. README.md
  31. registration.cpp
  32. registration.hpp
  33. set-spi-mux.service.in
  34. targeting.cpp
  35. targeting.hpp
  36. xyz.openbmc_project.Control.Host.NMI.service.in
README.md

Contains procedures that interact with the OpenPower nest chipset.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To build with phal feature:
    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS} --enable-phal --enable-openfsi
    3. make

To clean the repository run `./bootstrap.sh clean`.