summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2014-07-22 22:21:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-22 16:21:19 +0000
commit337bbf89d92f28bff85273ffefb71d3e5d7f57fc (patch)
tree8b3940dbada2481e70d288de2ac4823bd10e95f4
parent3389b9e88752a2b3a20fd6fea04ac6bedeec4afc (diff)
parent40b61ca768ff695e4ec5fd7b70aa9f42e10a35c0 (diff)
downloadbuild-337bbf89d92f28bff85273ffefb71d3e5d7f57fc.zip
build-337bbf89d92f28bff85273ffefb71d3e5d7f57fc.tar.gz
build-337bbf89d92f28bff85273ffefb71d3e5d7f57fc.tar.bz2
Merge "Create a vendor build.prop for verifying versions" into lmp-dev
-rw-r--r--core/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index 04fab18..36d53e1 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -243,6 +243,22 @@ endif
build_desc :=
# -----------------------------------------------------------------
+# vendor build.prop
+#
+# For verifying that the vendor build is what we thing it is
+ifdef BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE
+INSTALLED_VENDOR_BUILD_PROP_TARGET := $(TARGET_OUT_VENDOR)/build.prop
+ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_VENDOR_BUILD_PROP_TARGET)
+$(INSTALLED_VENDOR_BUILD_PROP_TARGET): $(INSTALLED_BUILD_PROP_TARGET)
+ @echo Target vendor buildinfo: $@
+ @mkdir -p $(dir $@)
+ $(hide) echo > $@
+ $(hide) echo ro.vendor.build.date=`date`>>$@
+ $(hide) echo ro.vendor.build.date.utc=`date +%s`>>$@
+ $(hide) echo ro.vendor.build.fingerprint="$(BUILD_FINGERPRINT)">>$@
+endif
+
+# -----------------------------------------------------------------
# sdk-build.prop
#
# There are certain things in build.prop that we don't want to