Add ANDROID_ACTIVE_PARTITION to hnvram lib
This is change 1/2 that allows the userspace
hnvram command to r/w ANDROID_ACTIVE_PARTITION.
Change-Id: I434ce8abe44f71a1cdd20f27c02c1f9d64185732
diff --git a/libupgrade/hmx_upgrade_nvram.c b/libupgrade/hmx_upgrade_nvram.c
index 83a4e5c..fc1a52a 100644
--- a/libupgrade/hmx_upgrade_nvram.c
+++ b/libupgrade/hmx_upgrade_nvram.c
@@ -170,6 +170,8 @@
{NVRAM_FIELD_MAC_ADDR_PON, "MAC_ADDR_PON", HMX_NVRAM_PARTITION_RO, 0},
{NVRAM_FIELD_PRODUCTION_UNIT, "PRODUCTION_UNIT", HMX_NVRAM_PARTITION_RW, 0},
{NVRAM_FIELD_BOOT_TARGET, "BOOT_TARGET", HMX_NVRAM_PARTITION_RW, 0},
+ {NVRAM_FIELD_ANDROID_ACTIVE_PARTITION, "ANDROID_ACTIVE_PARTITION",
+ HMX_NVRAM_PARTITION_RW, 0},
{NVRAM_FIELD_DUMMY, "DUMMY", HMX_NVRAM_PARTITION_RW, 0}
};
/* End typedef */
diff --git a/libupgrade/hmx_upgrade_nvram.h b/libupgrade/hmx_upgrade_nvram.h
index b4ccbd8..3c5362a 100644
--- a/libupgrade/hmx_upgrade_nvram.h
+++ b/libupgrade/hmx_upgrade_nvram.h
@@ -116,6 +116,7 @@
NVRAM_FIELD_MAC_ADDR_PON,
NVRAM_FIELD_PRODUCTION_UNIT,
NVRAM_FIELD_BOOT_TARGET,
+ NVRAM_FIELD_ANDROID_ACTIVE_PARTITION,
NVRAM_FIELD_DUMMY = 0xFFFF
} NVRAM_FIELD_T;