aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-11-04 14:46:54 -0800
committerColin Cross <ccross@android.com>2015-11-04 22:55:29 +0000
commit75bc1ed95f269e1274dee1c13a1ce63bb6065ddb (patch)
tree5b1fe10f035e2fd438e7a3c440f7023b901fe89f
parent46e11a854350ef2e36aaef2d9daf34f8d7af31f1 (diff)
downloadtlsdate-75bc1ed95f269e1274dee1c13a1ce63bb6065ddb.tar.gz
tlsdate: prevent unnecessary rebuildsbrillo-m8-releasebrillo-m8-dev
tlsdate rebuilds every time the makefiles are reparsed because it embeds the output of a shell date command into the command line, and ninja reruns the command every time it changes. Replace $(shell date +%sL) with $$$(BUILD_NUMBER_FROM_FILE)L, which will read the build date from $(OUT_DIR)/build_date.txt. This date file will be updated on every build, but will not cause a rebuild if it changes, so the date from the most recent time the file was recompiled for other reasons will be used. Bug: 24790431 Change-Id: Ib93ead6512706e13ae6dbd271e7560a3e8c00e8a
-rw-r--r--Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 0e49796..939f9e9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -39,7 +39,7 @@ tlsdate_common_shared_libs := libcrypto libdbus libevent
define tlsdate_common
LOCAL_CFLAGS += \
-DWITH_EVENTS -DHAVE_DBUS -DHAVE_CROS -DHAVE_PV_UIO \
- -DRECENT_COMPILE_DATE=$(shell date +%sL) \
+ -DRECENT_COMPILE_DATE=$$$(BUILD_DATETIME_FROM_FILE)L \
-DTARGET_OS_LINUX -Wall -Werror -Wno-unused-parameter
endef