aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Zeuthen2015-09-02 14:49:58 -0500
committerDavid Zeuthen2015-09-02 14:49:58 -0500
commitd85ae79dc9911cb2062cce24101f19885417fcaf (patch)
tree3169f9ab4a7e75a4c5eeca1228a4cc29c4fdb6a8 /bootloader.h
parenteef991389c7f739dd80bbe6e4a3699322c12dcfb (diff)
downloadplatform-bootable-recovery-d85ae79dc9911cb2062cce24101f19885417fcaf.tar.gz
platform-bootable-recovery-d85ae79dc9911cb2062cce24101f19885417fcaf.tar.xz
platform-bootable-recovery-d85ae79dc9911cb2062cce24101f19885417fcaf.zip
Add slot_suffix field to struct bootloader_message.
This is needed by fs_mgr for certain A/B implementations. Change-Id: I7bb404d61198eb7a962c2b693911f5156745daae
Diffstat (limited to 'bootloader.h')
-rw-r--r--bootloader.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/bootloader.h b/bootloader.h
index 4e9fb0a0..742a4abf 100644
--- a/bootloader.h
+++ b/bootloader.h
@@ -39,6 +39,13 @@
39 * multiple times, so that the UI can reflect which invocation of the 39 * multiple times, so that the UI can reflect which invocation of the
40 * package it is. If the value is of the format "#/#" (eg, "1/3"), 40 * package it is. If the value is of the format "#/#" (eg, "1/3"),
41 * the UI will add a simple indicator of that status. 41 * the UI will add a simple indicator of that status.
42 *
43 * The slot_suffix field is used for A/B implementations where the
44 * bootloader does not set the androidboot.ro.boot.slot_suffix kernel
45 * commandline parameter. This is used by fs_mgr to mount /system and
46 * other partitions with the slotselect flag set in fstab. A/B
47 * implementations are free to use all 32 bytes and may store private
48 * data past the first NUL-byte in this field.
42 */ 49 */
43struct bootloader_message { 50struct bootloader_message {
44 char command[32]; 51 char command[32];
@@ -51,7 +58,8 @@ struct bootloader_message {
51 // stage string (for multistage packages) and possible future 58 // stage string (for multistage packages) and possible future
52 // expansion. 59 // expansion.
53 char stage[32]; 60 char stage[32];
54 char reserved[224]; 61 char slot_suffix[32];
62 char reserved[192];
55}; 63};
56 64
57/* Read and write the bootloader command from the "misc" partition. 65/* Read and write the bootloader command from the "misc" partition.