forked from openkylin/platform_build
Don't include static executables when SANITIZE_TARGET=address
Also we can't build the ota package without these static executables. Bug: 21785137 Change-Id: I11b35abebced4b0608378a072ece2ab2dbadeffb
This commit is contained in:
parent
82f6383fa6
commit
e6e544e596
|
@ -1338,11 +1338,17 @@ define package_files-copy-root
|
||||||
endef
|
endef
|
||||||
|
|
||||||
built_ota_tools := \
|
built_ota_tools := \
|
||||||
$(call intermediates-dir-for,EXECUTABLES,applypatch,,,$(TARGET_PREFER_32_BIT))/applypatch \
|
$(call intermediates-dir-for,EXECUTABLES,applypatch,,,$(TARGET_PREFER_32_BIT))/applypatch \
|
||||||
$(call intermediates-dir-for,EXECUTABLES,applypatch_static,,,$(TARGET_PREFER_32_BIT))/applypatch_static \
|
$(call intermediates-dir-for,EXECUTABLES,sqlite3,,,$(TARGET_PREFER_32_BIT))/sqlite3
|
||||||
$(call intermediates-dir-for,EXECUTABLES,check_prereq,,,$(TARGET_PREFER_32_BIT))/check_prereq \
|
|
||||||
$(call intermediates-dir-for,EXECUTABLES,sqlite3,,,$(TARGET_PREFER_32_BIT))/sqlite3 \
|
# We can't build static executables when SANITIZE_TARGET=address
|
||||||
$(call intermediates-dir-for,EXECUTABLES,updater,,,$(TARGET_PREFER_32_BIT))/updater
|
ifneq (address,$(SANITIZE_TARGET))
|
||||||
|
built_ota_tools += \
|
||||||
|
$(call intermediates-dir-for,EXECUTABLES,check_prereq,,,$(TARGET_PREFER_32_BIT))/check_prereq \
|
||||||
|
$(call intermediates-dir-for,EXECUTABLES,applypatch_static,,,$(TARGET_PREFER_32_BIT))/applypatch_static \
|
||||||
|
$(call intermediates-dir-for,EXECUTABLES,updater,,,$(TARGET_PREFER_32_BIT))/updater
|
||||||
|
endif
|
||||||
|
|
||||||
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_OTA_TOOLS := $(built_ota_tools)
|
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_OTA_TOOLS := $(built_ota_tools)
|
||||||
|
|
||||||
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_RECOVERY_API_VERSION := $(RECOVERY_API_VERSION)
|
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_RECOVERY_API_VERSION := $(RECOVERY_API_VERSION)
|
||||||
|
@ -1491,6 +1497,7 @@ ifneq ($(filter $(MAKECMDGOALS),target-files-package),)
|
||||||
$(call dist-for-goals, target-files-package, $(BUILT_TARGET_FILES_PACKAGE))
|
$(call dist-for-goals, target-files-package, $(BUILT_TARGET_FILES_PACKAGE))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(SANITIZE_TARGET),address)
|
||||||
ifneq ($(TARGET_PRODUCT),sdk)
|
ifneq ($(TARGET_PRODUCT),sdk)
|
||||||
ifeq ($(filter generic%,$(TARGET_DEVICE)),)
|
ifeq ($(filter generic%,$(TARGET_DEVICE)),)
|
||||||
ifneq ($(TARGET_NO_KERNEL),true)
|
ifneq ($(TARGET_NO_KERNEL),true)
|
||||||
|
@ -1526,6 +1533,7 @@ endif # recovery_fstab is defined
|
||||||
endif # TARGET_NO_KERNEL != true
|
endif # TARGET_NO_KERNEL != true
|
||||||
endif # TARGET_DEVICE != generic*
|
endif # TARGET_DEVICE != generic*
|
||||||
endif # TARGET_PRODUCT != sdk
|
endif # TARGET_PRODUCT != sdk
|
||||||
|
endif # SANITIZE_TARGET != address
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# The update package
|
# The update package
|
||||||
|
|
Loading…
Reference in New Issue