Set disk size to match EMMC size.
Change-Id: I3da5127a86d81ddd7fe1b297116cc7d81384e034
diff --git a/partition-table.json b/partition-table.json
index 916dacd..d34088a 100644
--- a/partition-table.json
+++ b/partition-table.json
@@ -1,7 +1,8 @@
{
"settings": {
"disk_alignment": "512 KiB",
- "disk_guid": "85b83f23-51c4-4403-8bac-906ff5800f4e"
+ "disk_guid": "85b83f23-51c4-4403-8bac-906ff5800f4e",
+ "disk_size": "3728 MiB"
},
"partitions": [
{
@@ -20,7 +21,7 @@
},
{
"label": "rootfs",
- "size": "2 GiB",
+ "size": "3.5 GiB",
"grow": true,
"guid": "70672ec3-5eee-49ff-b3b1-eb1fbd406bf5",
"type_guid": "brillo_system",
diff --git a/partition-table.mk b/partition-table.mk
index c4eb6eb..6d9812d 100644
--- a/partition-table.mk
+++ b/partition-table.mk
@@ -20,10 +20,9 @@
partition-table: $(PRODUCT_OUT)/partition-table.img
BPTTOOL := $(ROOTDIR)/tools/bpt/bpttool
-MMC_SIZE := 3959422976
$(PRODUCT_OUT)/partition-table.img: $(ROOTDIR)/board/partition-table.json | out-dirs
- $(BPTTOOL) make_table --disk_size $(MMC_SIZE) --input $< --output_gpt $@
+ $(BPTTOOL) make_table --input $< --output_gpt $@
targets::
@echo "partition-table - builds GPT partition table for eMMC"