Define base Brillo partitions.
This introduces the basic partitions expected to be available on any
Brillo system, including boot{_a, _b}, system{_a, _b}, odm{_a, _b},
misc, and userdata. Board- or application-specific .bpt files can
override as needed.
TEST=Manually, verified that partition-table.{img, bpt} is generated.
BUG=27831397
Change-Id: I396bf3f9298b8a7a9c7fb1dac5398d0ea1ecd043
diff --git a/brillo_base.mk b/brillo_base.mk
index e155d99..90e0ed0 100644
--- a/brillo_base.mk
+++ b/brillo_base.mk
@@ -44,6 +44,8 @@
# Include the cfgtree helpers for loading config values from disk.
include device/generic/brillo/cfgtree.mk
+BOARD_BPT_INPUT_FILES := device/generic/brillo/brillo_partitions.bpt
+
# Global Brillo USE flags.
BRILLO_USE_BINDER := 1
BRILLO_USE_DBUS := 1
diff --git a/brillo_partitions.bpt b/brillo_partitions.bpt
new file mode 100644
index 0000000..7e66e84
--- /dev/null
+++ b/brillo_partitions.bpt
@@ -0,0 +1,39 @@
+{
+ "settings": {
+ "disk_size": "4 GiB"
+ },
+ "partitions": [
+ {
+ "ab": true,
+ "label": "boot",
+ "size": "32 MiB",
+ "guid": "auto",
+ "type_guid": "brillo_boot"
+ },
+ {
+ "ab": true,
+ "label": "system",
+ "size": "512 MiB",
+ "guid": "auto",
+ "type_guid": "brillo_system"
+ },
+ {
+ "ab": true,
+ "label": "odm",
+ "size": "1 GiB",
+ "guid": "auto",
+ "type_guid": "brillo_odm"
+ },
+ {
+ "label": "misc",
+ "size": "1 MiB",
+ "type_guid": "brillo_misc"
+ },
+ {
+ "label": "userdata",
+ "grow": true,
+ "guid": "auto",
+ "type_guid": "brillo_userdata"
+ }
+ ]
+}