diff options
author | Daniel Rosenberg <drosen@google.com> | 2014-07-21 17:21:20 -0700 |
---|---|---|
committer | Daniel Rosenberg <drosen@google.com> | 2014-07-22 15:00:59 -0700 |
commit | 40b61ca768ff695e4ec5fd7b70aa9f42e10a35c0 (patch) | |
tree | f016e5ed3bab413666b79a4ee55ebe31986d7daa | |
parent | 0486200762a0be6080579dd60044ae3ff88f616a (diff) | |
download | build-40b61ca768ff695e4ec5fd7b70aa9f42e10a35c0.zip build-40b61ca768ff695e4ec5fd7b70aa9f42e10a35c0.tar.gz build-40b61ca768ff695e4ec5fd7b70aa9f42e10a35c0.tar.bz2 |
Create a vendor build.prop for verifying versions
The vendor build.prop contains the fingerprint for the build, and
timestamps. It allows you to tell if the vendor partition matches
the system partition.
Change-Id: Icf261571e82823928b2562e66e48fbcb0da55801
Signed-off-by: Daniel Rosenberg <drosen@google.com>
-rw-r--r-- | core/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile index fadec15..c2394b3 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 |