diff options
-rw-r--r-- | board/wheatley/board.h | 1 | ||||
-rw-r--r-- | chip/npcx/header.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/wheatley/board.h b/board/wheatley/board.h index 72d87cdd21..643a5c91f4 100644 --- a/board/wheatley/board.h +++ b/board/wheatley/board.h @@ -51,6 +51,7 @@ #define CONFIG_LID_ANGLE_SENSOR_LID 2 #define CONFIG_LID_SWITCH #define CONFIG_LOW_POWER_IDLE +#define CONFIG_LTO #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_X86 #define CONFIG_POWER_COMMON diff --git a/chip/npcx/header.c b/chip/npcx/header.c index 49b7488b4f..0ba3ee59d6 100644 --- a/chip/npcx/header.c +++ b/chip/npcx/header.c @@ -57,7 +57,7 @@ struct __packed fw_header_t { uint32_t sig_fw_image; /* The CRC or Checksum of the firmware image */ } __aligned(1); -__attribute__ ((section(".header"))) +__keep __attribute__ ((section(".header"))) const struct fw_header_t fw_header = { /* 00 */ SIG_FW_EC, /* 04 */ 0x54E1, /* Header CRC check Enable/Disable -> AB1Eh/54E1h */ |