OSDN Git Service

Add the build type to META folder in target files.zip
authorSteve Fung <stevefung@google.com>
Thu, 5 Nov 2015 10:04:04 +0000 (02:04 -0800)
committerSteve Fung <stevefung@google.com>
Thu, 5 Nov 2015 23:04:11 +0000 (15:04 -0800)
For AB builds, add the build type to META/build_type.txt so the
server can easily determine user, userdebug, and eng builds
from each other.

Bug: 25420005
Change-Id: I6e4de2ba36a6fd1208c65a434d4725bb93d2cee6

core/Makefile

index 5011940..6c07067 100644 (file)
@@ -1630,6 +1630,8 @@ ifeq ($(AB_OTA_UPDATER),true)
        $(hide) for part in $(AB_OTA_PARTITIONS); do \
          echo "$${part}" >> $(zip_root)/META/ab_partitions.txt; \
        done
+       @# Include the build type in META/misc_info.txt so the server can easily differentiate production builds.
+       $(hide) echo "build_type=$(TARGET_BUILD_VARIANT)" >> $(zip_root)/META/misc_info.txt
 ifdef OSRELEASED_DIRECTORY
        $(hide) $(ACP) $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY)/product_id $(zip_root)/META/product_id.txt
        $(hide) $(ACP) $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY)/product_version $(zip_root)/META/product_version.txt