aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Patil <sspatil@google.com>2017-10-23 19:47:43 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-24 06:10:01 +0000
commit5129a6f13f0eb16ec872d19845c986654a11316c (patch)
treea078eb851e81ba8408b8b018416cd416460193ec
parent6b984b21a6248b8d48bbff60b17b208e636671b4 (diff)
downloadbuild-5129a6f13f0eb16ec872d19845c986654a11316c.tar.gz
build: fix builds when first_api_level isn't defined as property
Bug: 67965044 Test: Build pixel Change-Id: I4bce5a4f4d0751a30bf7abda0da5e7d73313c9ef Signed-off-by: Sandeep Patil <sspatil@google.com> (cherry picked from commit b79196f0ca4f553bd4dd9109d1a8a71c623872da)
-rw-r--r--core/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile
index 7d09f65d43..618e98317b 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -364,7 +364,7 @@ $(INSTALLED_VENDOR_BUILD_PROP_TARGET): $(VENDOR_BUILDINFO_SH) $(intermediate_sys
@echo Target vendor buildinfo: $@
@mkdir -p $(dir $@)
$(hide) echo > $@
- $(hide) grep 'ro.product.first_api_level' $(intermediate_system_build_prop) >> $@
+ $(hide) grep 'ro.product.first_api_level' $(intermediate_system_build_prop) >> $@ || true
$(hide) echo ro.vendor.build.date=`$(DATE_FROM_FILE)`>>$@
$(hide) echo ro.vendor.build.date.utc=`$(DATE_FROM_FILE) +%s`>>$@
$(hide) echo ro.vendor.build.fingerprint="$(BUILD_FINGERPRINT_FROM_FILE)">>$@