blob: 438783950327e60e8eb7fd976ce10681c706e9ce [file] [log] [blame]
Andrew Geissler6b9421b2022-02-24 17:01:55 -06001#include "utils.hpp"
2
3#include <phosphor-logging/lg2.hpp>
4
5PHOSPHOR_LOG2_USING;
6
7int 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}