diff --git a/core/Makefile b/core/Makefile index 3e0125ed64..97322c6f50 100644 --- a/core/Makefile +++ b/core/Makefile @@ -3071,7 +3071,7 @@ else ifeq ($(TARGET_SKIP_OTA_PACKAGE),true) build_ota_package := false endif - ifneq ($(strip $(SANITIZE_TARGET)),) + ifneq (,$(filter address, $(SANITIZE_TARGET))) build_ota_package := false endif ifeq ($(TARGET_PRODUCT),sdk) @@ -3257,7 +3257,7 @@ endef built_ota_tools := # We can't build static executables when SANITIZE_TARGET=address -ifeq ($(strip $(SANITIZE_TARGET)),) +ifeq (,$(filter address, $(SANITIZE_TARGET))) built_ota_tools += \ $(call intermediates-dir-for,EXECUTABLES,updater,,,$(TARGET_PREFER_32_BIT))/updater endif