diff --git a/core/binary.mk b/core/binary.mk index a28561c1ad..23a8169d9b 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -1450,6 +1450,11 @@ else ifdef LOCAL_USE_VNDK my_warn_types := my_allowed_types := native:vendor native:vndk endif +else ifneq ($(filter $(TARGET_RECOVERY_OUT)/%,$(LOCAL_MODULE_PATH)),) +my_link_type := native:recovery +my_warn_types := +# TODO(b/113303515) remove native:platform and my_allowed_ndk_types +my_allowed_types := native:recovery native:platform $(my_allowed_ndk_types) else my_link_type := native:platform my_warn_types := $(my_warn_ndk_types) diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 2f3c7a4a28..78da421bd5 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -188,6 +188,8 @@ else ifdef LOCAL_USE_VNDK else my_link_type := native:vendor endif +else ifneq ($(filter $(TARGET_RECOVERY_OUT)/%,$(LOCAL_MODULE_PATH)),) +my_link_type := native:recovery else my_link_type := native:platform endif