summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2019-05-20 23:02:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-05-20 23:02:26 +0000
commit2ee5efd824d539b6252a0015cf4b32e648dbb3c3 (patch)
treefd8c8966436e2701e219fd07a17df22339b7b0d8
parent6ae7967309c6a89ed3d9e463b44f71f92423ad98 (diff)
parent606c9f4d0da979b1fc910cf9d5e60e205727fce4 (diff)
Merge "Move check-all-partition-sizes to a non-phony rule"
-rw-r--r--core/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile
index 57a05d4b1a..c042315da8 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -3381,8 +3381,12 @@ droid_targets: check-all-partition-sizes
.PHONY: check-all-partition-sizes check-all-partition-sizes-nodeps
+check_all_partition_sizes_file := $(call intermediates-dir-for,PACKAGING,check-all-partition-sizes)/timestamp
+
+check-all-partition-sizes: $(check_all_partition_sizes_file)
+
# Add image dependencies so that generated_*_image_info.txt are written before checking.
-check-all-partition-sizes: \
+$(check_all_partition_sizes_file): \
build/make/tools/releasetools/sparse_img.py \
$(call images-for-partitions,$(BOARD_SUPER_PARTITION_PARTITION_LIST))
@@ -3450,7 +3454,12 @@ define check-all-partition-sizes-target
fi
endef
-check-all-partition-sizes check-all-partition-sizes-nodeps:
+$(check_all_partition_sizes_file):
+ $(call check-all-partition-sizes-target)
+ $(call check-super-partition-size)
+ touch $@
+
+check-all-partition-sizes-nodeps:
$(call check-all-partition-sizes-target)
$(call check-super-partition-size)