Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e783e63 authored by Bowgo Tsai's avatar Bowgo Tsai Committed by android-build-merger
Browse files

Merge "Allow GSI targets to build otatools.zip" am: 07d87198 am: ad0114ac

am: ff80116f

Change-Id: I76ab6aec2332188ca856eac730d17bbd1ab25ee4
parents 8510792e ff80116f
Loading
Loading
Loading
Loading
+34 −25
Original line number Diff line number Diff line
@@ -3045,13 +3045,15 @@ endif
# -----------------------------------------------------------------
# host tools needed to build dist and OTA packages

ifeq ($(BUILD_OS),darwin)
  build_ota_package := false
  build_otatools_package := false
else
  # set build_ota_package, and allow opt-out below
  build_ota_package := true
  ifeq ($(TARGET_SKIP_OTA_PACKAGE),true)
    build_ota_package := false
  endif
ifeq ($(BUILD_OS),darwin)
build_ota_package := false
endif
  ifneq ($(strip $(SANITIZE_TARGET)),)
    build_ota_package := false
  endif
@@ -3071,7 +3073,14 @@ ifeq ($(TARGET_BUILD_PDK),true)
    build_ota_package := false
  endif

ifeq ($(build_ota_package),true)
  # 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

ifeq ($(build_otatools_package),true)
OTATOOLS :=  $(HOST_OUT_EXECUTABLES)/minigzip \
  $(HOST_OUT_EXECUTABLES)/aapt \
  $(HOST_OUT_EXECUTABLES)/checkvintf \
@@ -3189,7 +3198,7 @@ $(BUILT_OTATOOLS_PACKAGE): $(OTATOOLS) $(OTATOOLS_DEPS) $(OTATOOLS_RELEASETOOLS)
.PHONY: 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.