summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-01-13 15:30:34 -0800
committerAndres Morales <anmorales@google.com>2015-01-13 17:55:09 -0800
commit9c820f82c43600923bf93abae3d9af1d65e98d37 (patch)
treed36c62261ad5fae9a905e42a55ef6f15c4c48f3c
parentc56a60451188da6385ae9f52e0adbef14c647f21 (diff)
downloadbuild-9c820f82c43600923bf93abae3d9af1d65e98d37.zip
build-9c820f82c43600923bf93abae3d9af1d65e98d37.tar.gz
build-9c820f82c43600923bf93abae3d9af1d65e98d37.tar.bz2
Add build.prop to root ramdisk
will be used for verifying installed bootimage Change-Id: Iaf80823545980fb2e464a558e918715cc1b82e11
-rw-r--r--core/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index 43be804..0d07423 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -263,6 +263,21 @@ $(INSTALLED_VENDOR_BUILD_PROP_TARGET): $(INSTALLED_BUILD_PROP_TARGET)
$(hide) echo ro.vendor.build.fingerprint="$(BUILD_FINGERPRINT)">>$@
endif
+# ----------------------------------------------------------------
+# boot.img build.prop
+# as with vendor build.prop above, for verifying that the bootimage
+# build is what we think it is
+
+INSTALLED_BOOTIMAGE_BUILD_PROP_TARGET := $(TARGET_ROOT_OUT)/build.prop
+ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_BOOTIMAGE_BUILD_PROP_TARGET)
+$(INSTALLED_BOOTIMAGE_BUILD_PROP_TARGET):
+ @echo Target bootimage buildinfo: $@
+ @mkdir -p $(dir $@)
+ $(hide) echo > $@
+ $(hide) echo ro.bootimage.build.date=`date`>>$@
+ $(hide) echo ro.bootimage.build.date.utc=`date +%s`>>$@
+ $(hide) echo ro.bootimage.build.fingerprint="$(BUILD_FINGERPRINT)">>$@
+
# -----------------------------------------------------------------
# sdk-build.prop
#