Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: utility/load_kernel_test.c

Issue 6462010: Support dev vs consumer firmware in vboot_reference (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: post-merge Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/stub/load_firmware_stub.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/load_kernel_test.c
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c
index 9d1f14c3291648adaa368286b2900f878a47e9a0..38e4104fdc1cbe9a29661ffb16a67f8bbf9dec34 100644
--- a/utility/load_kernel_test.c
+++ b/utility/load_kernel_test.c
@@ -144,6 +144,15 @@ int main(int argc, char* argv[]) {
* heap instead of its actual target address in the firmware. */
lkp.boot_flags |= BOOT_FLAG_SKIP_ADDR_CHECK;
+ /* If the boot flags are for developer mode, non-recovery, add the dev-type
+ * firmware bit. LoadKernel() masks off the developer bit if the dev
+ * firmware bit is absent, to keep normal firmware from verifying dev
+ * kernels. */
+ if ((lkp.boot_flags & BOOT_FLAG_DEVELOPER)
+ && !(lkp.boot_flags & BOOT_FLAG_RECOVERY)) {
+ lkp.boot_flags |= BOOT_FLAG_DEV_FIRMWARE;
+ }
+
printf("bootflags = %" PRIu64 "\n", lkp.boot_flags);
/* Get image size */
« no previous file with comments | « firmware/stub/load_firmware_stub.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698