diff options
Diffstat (limited to 'common/firmware_image.S')
-rw-r--r-- | common/firmware_image.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/firmware_image.S b/common/firmware_image.S index 97a7123f49..ed78bad3ce 100644 --- a/common/firmware_image.S +++ b/common/firmware_image.S @@ -7,6 +7,7 @@ */ #include "config.h" +#include "rollback.h" #define FW_FILE(builddir,proj,sect,suffix,ext) \ builddir##/##sect##/##proj##.##sect##suffix##.flat##ext @@ -29,6 +30,13 @@ .incbin STRINGIFY(FINAL_OUTDIR/key.vbpubk2) #endif +#ifdef CONFIG_ROLLBACK +/* Note: matches struct rollback_data in common/rollback.c. */ +.section .image.ROLLBACK, "a" +.long CONFIG_ROLLBACK_VERSION +.long CROS_EC_ROLLBACK_COOKIE +#endif + /* Shared objects library */ #ifdef CONFIG_SHAREDLIB .section .image.libsharedobjs, "ax" |