Index: utility/load_kernel_test.c |
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c |
index 83cc60c4af44845a714c6b8aa754cf0d0b5ffa18..1f44857902c02aa158bdbebf77002e445c82a862 100644 |
--- a/utility/load_kernel_test.c |
+++ b/utility/load_kernel_test.c |
@@ -121,7 +121,7 @@ int main(int argc, char* argv[]) { |
/* TODO: Option for boot mode - developer, recovery */ |
/* Need to skip the address check, since we're putting it somewhere on the |
* heap instead of its actual target address in the firmware. */ |
- lkp.boot_flags = BOOT_FLAG_SKIP_ADDR_CHECK; |
+ lkp.boot_flags = BOOT_FLAG_SKIP_ADDR_CHECK | BOOT_FLAG_RECOVERY; |
/* Call LoadKernel() */ |
rv = LoadKernel(&lkp); |
@@ -135,5 +135,5 @@ int main(int argc, char* argv[]) { |
fclose(image_file); |
Free(lkp.kernel_buffer); |
- return 0; |
+ return rv != LOAD_KERNEL_SUCCESS; |
} |