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

Commit 988df91d authored by Cole Faust's avatar Cole Faust
Browse files

Don't update build thumbprint's mtime unnecessarily

The build thumbprint changes whenever the build number changes, which
used to be every build. But now local builds don't change the build
number.

The build fingerprint file a few lines above already had this code,
make the thumbprint match.

Bug: 411231354
Test: when building target-files.zip in soong-only builds, repeated builds don't trigger rebuilds
Change-Id: I17c422d2096b58c2c3f38617c6983b87d72c9225
parent 49c20850
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1309,7 +1309,7 @@ BUILD_THUMBPRINT_FILE := $(PRODUCT_OUT)/build_thumbprint.txt
ifeq ($(strip $(HAS_BUILD_NUMBER)),true)
$(BUILD_THUMBPRINT_FILE): $(BUILD_NUMBER_FILE)
endif
ifneq (,$(shell mkdir -p $(PRODUCT_OUT) && echo $(BUILD_THUMBPRINT) >$(BUILD_THUMBPRINT_FILE) && grep " " $(BUILD_THUMBPRINT_FILE)))
ifneq (,$(shell mkdir -p $(PRODUCT_OUT) && echo $(BUILD_THUMBPRINT) >$(BUILD_THUMBPRINT_FILE).tmp && (if ! cmp -s $(BUILD_THUMBPRINT_FILE).tmp $(BUILD_THUMBPRINT_FILE); then mv $(BUILD_THUMBPRINT_FILE).tmp $(BUILD_THUMBPRINT_FILE); else rm $(BUILD_THUMBPRINT_FILE).tmp; fi) && grep " " $(BUILD_THUMBPRINT_FILE)))
  $(error BUILD_THUMBPRINT cannot contain spaces: "$(file <$(BUILD_THUMBPRINT_FILE))")
endif
# unset it for safety.