Aaron Durbin (adurbin(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10153
-gerrit
commit 08b3754539632f9eb5f7b30527c2dc6af558abde
Author: Aaron Durbin <adurbin(a)chromium.org>
Date: Fri May 8 16:01:31 2015 -0500
vboot: allow options to be selected from .config
In order to allow easier setting of variables without
changing mainboards and/or chipset Kconfig files allow
the vboot options to be selected by the user.
Change-Id: I6e995eb209b4cd63c73ef679d0c5699759d129f5
Signed-off-by: Aaron Durbin <adurbin(a)chromium.org>
---
src/vendorcode/google/chromeos/vboot2/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/vendorcode/google/chromeos/vboot2/Kconfig b/src/vendorcode/google/chromeos/vboot2/Kconfig
index 8396113..bb6c1ad 100644
--- a/src/vendorcode/google/chromeos/vboot2/Kconfig
+++ b/src/vendorcode/google/chromeos/vboot2/Kconfig
@@ -17,14 +17,14 @@
##
config VBOOT_STARTS_IN_BOOTBLOCK
- bool
+ bool "Vboot starts verifying in bootblock"
default n
depends on VBOOT_VERIFY_FIRMWARE
help
Firmware verification happens during or at the end of bootblock.
config VBOOT_STARTS_IN_ROMSTAGE
- bool
+ bool "Vboot starts verifying in romstage"
default n
depends on VBOOT_VERIFY_FIRMWARE && !VBOOT_STARTS_IN_BOOTBLOCK
help
@@ -51,12 +51,12 @@ config VBOOT_DISABLE_DEV_ON_RECOVERY
handy on embedded devices with limited input capabilities.
config SEPARATE_VERSTAGE
- bool
+ bool "Vboot verification is built into a separate stage"
default n
depends on VBOOT_VERIFY_FIRMWARE
config RETURN_FROM_VERSTAGE
- bool
+ bool "The separate verification stage returns to its caller"
default n
depends on SEPARATE_VERSTAGE
help
Aaron Durbin (adurbin(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10151
-gerrit
commit 18db1db9c7f71d0ad16e40f402bab7da8a7749ec
Author: Aaron Durbin <adurbin(a)chromium.org>
Date: Fri May 8 15:54:31 2015 -0500
chromeos: add missing vboot functions
Somewhere along the development path the following
vboot functions were dropped:
int vboot_enable_developer(void)
int vboot_enable_recovery(void)
Add them back, but also refactor the flag extraction
so as not duplicate all that same logic.
Change-Id: Id58f3b99f29caeff98b2d3111cfa28241d15b54f
Signed-off-by: Aaron Durbin <adurbin(a)chromium.org>
---
src/vendorcode/google/chromeos/chromeos.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/vendorcode/google/chromeos/chromeos.c b/src/vendorcode/google/chromeos/chromeos.c
index fb72673..1e49bd1 100644
--- a/src/vendorcode/google/chromeos/chromeos.c
+++ b/src/vendorcode/google/chromeos/chromeos.c
@@ -26,7 +26,7 @@
#include <console/console.h>
#include "vboot_handoff.h"
-int vboot_skip_display_init(void)
+static int vboot_handoff_flag(uint32_t flag)
{
struct vboot_handoff *vbho;
@@ -35,7 +35,22 @@ int vboot_skip_display_init(void)
if (vbho == NULL)
return 0;
- return !(vbho->init_params.out_flags & VB_INIT_OUT_ENABLE_DISPLAY);
+ return !!(vbho->init_params.out_flags & flag);
+}
+
+int vboot_skip_display_init(void)
+{
+ return !vboot_handoff_flag(VB_INIT_OUT_ENABLE_DISPLAY);
+}
+
+int vboot_enable_developer(void)
+{
+ return vboot_handoff_flag(VB_INIT_OUT_ENABLE_DEVELOPER);
+}
+
+int vboot_enable_recovery(void)
+{
+ return vboot_handoff_flag(VB_INIT_OUT_ENABLE_RECOVERY);
}
int __attribute__((weak)) clear_recovery_mode_switch(void)
Aaron Durbin (adurbin(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10153
-gerrit
commit e176749e5a8582165539fbc82da3d28e6595b0ef
Author: Aaron Durbin <adurbin(a)chromium.org>
Date: Fri May 8 16:01:31 2015 -0500
vboot: allow options to be selected from .config
In order to allow easier setting of variables without
changing mainboards and/or chipset Kconfig files allow
the vboot options to be selected by the user.
Change-Id: I6e995eb209b4cd63c73ef679d0c5699759d129f5
Signed-off-by: Aaron Durbin <adurbin(a)chromium.org>
---
src/vendorcode/google/chromeos/vboot2/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/vendorcode/google/chromeos/vboot2/Kconfig b/src/vendorcode/google/chromeos/vboot2/Kconfig
index 8396113..bb6c1ad 100644
--- a/src/vendorcode/google/chromeos/vboot2/Kconfig
+++ b/src/vendorcode/google/chromeos/vboot2/Kconfig
@@ -17,14 +17,14 @@
##
config VBOOT_STARTS_IN_BOOTBLOCK
- bool
+ bool "Vboot starts verifying in bootblock"
default n
depends on VBOOT_VERIFY_FIRMWARE
help
Firmware verification happens during or at the end of bootblock.
config VBOOT_STARTS_IN_ROMSTAGE
- bool
+ bool "Vboot starts verifying in romstage"
default n
depends on VBOOT_VERIFY_FIRMWARE && !VBOOT_STARTS_IN_BOOTBLOCK
help
@@ -51,12 +51,12 @@ config VBOOT_DISABLE_DEV_ON_RECOVERY
handy on embedded devices with limited input capabilities.
config SEPARATE_VERSTAGE
- bool
+ bool "Vboot verification is built into a separate stage"
default n
depends on VBOOT_VERIFY_FIRMWARE
config RETURN_FROM_VERSTAGE
- bool
+ bool "The separate verification stage returns to its caller"
default n
depends on SEPARATE_VERSTAGE
help