Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04d15dd9 authored by Casey Dahlin's avatar Casey Dahlin
Browse files

List partition_table.bpt as an output of running bpttool

Change-Id: I8bb1e03e451bf148e421ecac346bf20ce5d4695b
Test: Verified builds can now depend on partition_table.bpt
Bug: 30971990
parent ce4c49c2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1440,10 +1440,11 @@ userdatatarball-nodeps: $(FS_GET_STATS)
ifdef BOARD_BPT_INPUT_FILES

BUILT_BPTIMAGE_TARGET := $(PRODUCT_OUT)/partition-table.img
BUILT_BPTJSON_TARGET := $(PRODUCT_OUT)/partition-table.bpt

INTERNAL_BVBTOOL_MAKE_TABLE_ARGS := \
	--output_gpt $(BUILT_BPTIMAGE_TARGET) \
	--output_json $(PRODUCT_OUT)/partition-table.bpt \
	--output_json $(BUILT_BPTJSON_TARGET) \
	$(foreach file, $(BOARD_BPT_INPUT_FILES), --input $(file))

ifdef BOARD_BPT_DISK_SIZE
@@ -1456,6 +1457,9 @@ define build-bptimage-target
endef

INSTALLED_BPTIMAGE_TARGET := $(BUILT_BPTIMAGE_TARGET)
$(BUILT_BPTJSON_TARGET): $(INSTALLED_BPTIMAGE_TARGET)
	$(hide) touch -c $(BUILT_BPTJSON_TARGET)

$(INSTALLED_BPTIMAGE_TARGET): $(BPTTOOL) $(BOARD_BPT_INPUT_FILES)
	$(build-bptimage-target)