diff --git a/core/Makefile b/core/Makefile index 83bbfd947..fa787b5ca 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1438,10 +1438,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 @@ -1454,6 +1455,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)