Merge "Allow GSI targets to build otatools.zip"

am: 07d87198ee

Change-Id: Ie2732eccba803709d7f34ccaf1fd287f90d2cc8a
This commit is contained in:
Bowgo Tsai 2018-10-12 07:45:49 -07:00 committed by android-build-merger
commit ad0114acb1

View file

@ -3045,33 +3045,42 @@ endif
# ----------------------------------------------------------------- # -----------------------------------------------------------------
# host tools needed to build dist and OTA packages # host tools needed to build dist and OTA packages
build_ota_package := true
ifeq ($(TARGET_SKIP_OTA_PACKAGE),true)
build_ota_package := false
endif
ifeq ($(BUILD_OS),darwin) ifeq ($(BUILD_OS),darwin)
build_ota_package := false build_ota_package := false
endif build_otatools_package := false
ifneq ($(strip $(SANITIZE_TARGET)),) else
build_ota_package := false # set build_ota_package, and allow opt-out below
endif build_ota_package := true
ifeq ($(TARGET_PRODUCT),sdk) ifeq ($(TARGET_SKIP_OTA_PACKAGE),true)
build_ota_package := false build_ota_package := false
endif endif
ifneq ($(filter generic%,$(TARGET_DEVICE)),) ifneq ($(strip $(SANITIZE_TARGET)),)
build_ota_package := false build_ota_package := false
endif endif
ifeq ($(TARGET_NO_KERNEL),true) ifeq ($(TARGET_PRODUCT),sdk)
build_ota_package := false build_ota_package := false
endif endif
ifeq ($(recovery_fstab),) ifneq ($(filter generic%,$(TARGET_DEVICE)),)
build_ota_package := false build_ota_package := false
endif endif
ifeq ($(TARGET_BUILD_PDK),true) ifeq ($(TARGET_NO_KERNEL),true)
build_ota_package := false build_ota_package := false
endif
ifeq ($(recovery_fstab),)
build_ota_package := false
endif
ifeq ($(TARGET_BUILD_PDK),true)
build_ota_package := false
endif
# set build_otatools_package, and allow opt-out below
build_otatools_package := true
ifeq ($(TARGET_SKIP_OTATOOLS_PACKAGE),true)
build_otatools_package := false
endif
endif endif
ifeq ($(build_ota_package),true) ifeq ($(build_otatools_package),true)
OTATOOLS := $(HOST_OUT_EXECUTABLES)/minigzip \ OTATOOLS := $(HOST_OUT_EXECUTABLES)/minigzip \
$(HOST_OUT_EXECUTABLES)/aapt \ $(HOST_OUT_EXECUTABLES)/aapt \
$(HOST_OUT_EXECUTABLES)/checkvintf \ $(HOST_OUT_EXECUTABLES)/checkvintf \
@ -3189,7 +3198,7 @@ $(BUILT_OTATOOLS_PACKAGE): $(OTATOOLS) $(OTATOOLS_DEPS) $(OTATOOLS_RELEASETOOLS)
.PHONY: otatools-package .PHONY: otatools-package
otatools-package: $(BUILT_OTATOOLS_PACKAGE) otatools-package: $(BUILT_OTATOOLS_PACKAGE)
endif # build_ota_package endif # build_otatools_package
# ----------------------------------------------------------------- # -----------------------------------------------------------------
# A zip of the directories that map to the target filesystem. # A zip of the directories that map to the target filesystem.