Merge "Fix kati regen due to build_number.txt" am: 6023b1944d
am: 1b74125136
Original change: https://android-review.googlesource.com/c/platform/build/+/1623659 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Iaba24909230aa4d423e08bb9710034de5d3eaceb
This commit is contained in:
commit
e7db5a634b
1 changed files with 6 additions and 1 deletions
|
@ -41,7 +41,12 @@ include $(BUILD_SYSTEM)/clang/config.mk
|
|||
# without changing the command line every time. Avoids rebuilds
|
||||
# when using ninja.
|
||||
$(shell mkdir -p $(SOONG_OUT_DIR) && \
|
||||
echo -n $(BUILD_NUMBER) > $(SOONG_OUT_DIR)/build_number.txt)
|
||||
echo -n $(BUILD_NUMBER) > $(SOONG_OUT_DIR)/build_number.tmp; \
|
||||
if ! cmp -s $(SOONG_OUT_DIR)/build_number.tmp $(SOONG_OUT_DIR)/build_number.txt; then \
|
||||
mv $(SOONG_OUT_DIR)/build_number.tmp $(SOONG_OUT_DIR)/build_number.txt; \
|
||||
else \
|
||||
rm $(SOONG_OUT_DIR)/build_number.tmp; \
|
||||
fi)
|
||||
BUILD_NUMBER_FILE := $(SOONG_OUT_DIR)/build_number.txt
|
||||
.KATI_READONLY := BUILD_NUMBER_FILE
|
||||
$(KATI_obsolete_var BUILD_NUMBER,See https://android.googlesource.com/platform/build/+/master/Changes.md#BUILD_NUMBER)
|
||||
|
|
Loading…
Reference in a new issue