[app/aboot]: Add recovery and update support in froyo.
- Read radio.img from Cache partition and write it to FOTA partition.
- Changed partition size for Cache and added misc partition for recovery.
- Changed product name for fastboot update.
Change-Id: I831b2bb757865a0a4108cab66950691d5db9b8b2
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index fb80f38..ccc88ad 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -47,6 +47,8 @@
#include "bootimg.h"
#include "fastboot.h"
+#define EXPAND(NAME) #NAME
+#define TARGET(NAME) EXPAND(NAME)
#define DEFAULT_CMDLINE "mem=100M console=null";
#ifdef MEMBASE
@@ -628,7 +630,7 @@
fastboot_register("continue", cmd_continue);
fastboot_register("reboot", cmd_reboot);
fastboot_register("reboot-bootloader", cmd_reboot_bootloader);
- fastboot_publish("product", "swordfish");
+ fastboot_publish("product", TARGET(BOARD));
fastboot_publish("kernel", "lk");
fastboot_init(target_get_scratch_address(), 120 * 1024 * 1024);