summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEdward Wang <ewang@cyngn.com>2016-04-15 23:03:14 -0700
committerEdward Wang <ewang@cyngn.com>2016-04-15 23:05:45 -0700
commit06a72275fb859eaffd879c22f86b87a0e3f36e87 (patch)
tree0f66c82a42f4657151468d44f95dbbd14058e201 /tools
parentc9c78dbd214d3ca9e79788c3406a40cb80638dcb (diff)
downloadbuild-06a72275fb859eaffd879c22f86b87a0e3f36e87.zip
build-06a72275fb859eaffd879c22f86b87a0e3f36e87.tar.gz
build-06a72275fb859eaffd879c22f86b87a0e3f36e87.tar.bz2
build: skip 'ro.product.device' using new macro "TARGET_SKIP_PRODUCT_DEVICE"
Change-Id: Id17ef7de8b0146dd6e4b2cc3cc5b88453da38f6c Ticket: FEIJ-62
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildinfo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index c621859..fa717b7 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -46,7 +46,9 @@ echo "ro.board.platform=$TARGET_BOARD_PLATFORM"
if [ "$TARGET_UNIFIED_DEVICE" == "" ] ; then
echo "# ro.build.product is obsolete; use ro.product.device"
echo "ro.build.product=$TARGET_DEVICE"
- echo "ro.product.model=$PRODUCT_MODEL"
+ if [ -z "$TARGET_SKIP_PRODUCT_DEVICE" ] ; then
+ echo "ro.product.model=$PRODUCT_MODEL"
+ fi
echo "ro.product.device=$TARGET_DEVICE"
echo "# Do not try to parse description, fingerprint, or thumbprint"
echo "ro.build.description=$PRIVATE_BUILD_DESC"