Andrew Geissler | 6b9421b | 2022-02-24 17:01:55 -0600 | [diff] [blame^] | 1 | #include "utils.hpp" |
| 2 | |
| 3 | #include <phosphor-logging/lg2.hpp> |
| 4 | |
| 5 | PHOSPHOR_LOG2_USING; |
| 6 | |
| 7 | int main() |
| 8 | { |
| 9 | // Read the secure boot gpio |
| 10 | auto secureBootGpio = |
| 11 | phosphor::state::manager::utils::getGpioValue("bmc-secure-boot"); |
| 12 | if (secureBootGpio == -1) |
| 13 | { |
| 14 | debug("bmc-secure-boot gpio not present or can not be read"); |
| 15 | } |
| 16 | else if (secureBootGpio == 0) |
| 17 | { |
| 18 | info("bmc-secure-boot gpio found and indicates it is NOT enabled"); |
| 19 | } |
| 20 | else |
| 21 | { |
| 22 | info("bmc-secure-boot found and indicates it is enabled"); |
| 23 | } |
| 24 | |
| 25 | return 0; |
| 26 | } |