Index: firmware/lib/vboot_firmware.c |
diff --git a/firmware/lib/vboot_firmware.c b/firmware/lib/vboot_firmware.c |
index 1b401ba706811cb63ab7d8be1aa0fecade80a510..11ea6f7772e1c78d9cf8e48ed8f9c5624814be89 100644 |
--- a/firmware/lib/vboot_firmware.c |
+++ b/firmware/lib/vboot_firmware.c |
@@ -60,8 +60,9 @@ int LoadFirmware(LoadFirmwareParams* params) { |
} |
/* Initialize the TPM and read rollback indices. */ |
- /* TODO: fix SetupTPM parameter for developer mode */ |
- if (0 != RollbackFirmwareSetup(0, &tpm_key_version, &tpm_fw_version)) { |
+ if (0 != RollbackFirmwareSetup( |
+ (params->boot_flags & BOOT_FLAG_DEVELOPER ? 1 : 0), |
+ &tpm_key_version, &tpm_fw_version)) { |
VBDEBUG(("Unable to get stored versions.\n")); |
return LOAD_FIRMWARE_RECOVERY; |
} |