From 926ee446034ffbbc212a5df0e62966f078176525 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 27 Feb 2018 23:27:30 +0000 Subject: [PATCH] Revert "Revert "Better error for missing LOCAL_SRC_FILES in prebuilts"" This reverts commit f78069865b430122fee21abbdf078b312c53c063. Reason for revert: fixed mips Bug: 73904572 Test: lunch aosp_mips-eng; m nothing Change-Id: I4f51f91210f1d78ec97e450ac6e0509797c62bb9 --- core/prebuilt_internal.mk | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index cb1d4016d..d4f552231 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -20,19 +20,19 @@ my_32_64_bit_suffix := $(if $($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)IS_64_BIT) ifdef LOCAL_PREBUILT_MODULE_FILE my_prebuilt_src_file := $(LOCAL_PREBUILT_MODULE_FILE) +else ifdef LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH) + my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) + LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH) := +else ifdef LOCAL_SRC_FILES_$(my_32_64_bit_suffix) + my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES_$(my_32_64_bit_suffix)) + LOCAL_SRC_FILES_$(my_32_64_bit_suffix) := +else ifdef LOCAL_SRC_FILES + my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES) + LOCAL_SRC_FILES := +else ifdef LOCAL_REPLACE_PREBUILT_APK_INSTALLED + # This is handled specially below else - ifdef LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH) - my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) - LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH) := - else - ifdef LOCAL_SRC_FILES_$(my_32_64_bit_suffix) - my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES_$(my_32_64_bit_suffix)) - LOCAL_SRC_FILES_$(my_32_64_bit_suffix) := - else - my_prebuilt_src_file := $(LOCAL_PATH)/$(LOCAL_SRC_FILES) - LOCAL_SRC_FILES := - endif - endif + $(call pretty-error,No source files specified) endif LOCAL_CHECKED_MODULE := $(my_prebuilt_src_file)