mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Support dev vs consumer firmware in vboot_reference
Change-Id: I5a42ba017974b3d591abc574ef7b9b7c9ac579e8 BUG=chrome-os-partner:1824 TEST=make && make runtests Review URL: http://codereview.chromium.org/6462010
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user