core: propogate module tags for prebuilts
Change-Id: If46558dc783b72a1baf3e8e1df167cb75c67e944
Signed-off-by: Dima Zavin <dima@android.com>
diff --git a/core/multi_prebuilt.mk b/core/multi_prebuilt.mk
index 738a88d..7602673 100644
--- a/core/multi_prebuilt.mk
+++ b/core/multi_prebuilt.mk
@@ -21,6 +21,7 @@
prebuilt_java_libraries := $(LOCAL_PREBUILT_JAVA_LIBRARIES)
prebuilt_static_java_libraries := $(LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES)
prebuilt_is_host := $(LOCAL_IS_HOST_MODULE)
+prebuilt_module_tags := $(LOCAL_MODULE_TAGS)
ifndef multi_prebuilt_once
@@ -29,9 +30,10 @@
# $(1): file list
# $(2): IS_HOST_MODULE
# $(3): MODULE_CLASS
-# $(4): OVERRIDE_BUILT_MODULE_PATH
-# $(5): UNINSTALLABLE_MODULE
-# $(6): BUILT_MODULE_STEM
+# $(4): MODULE_TAGS
+# $(5): OVERRIDE_BUILT_MODULE_PATH
+# $(6): UNINSTALLABLE_MODULE
+# $(7): BUILT_MODULE_STEM
#
# Elements in the file list may be bare filenames,
# or of the form "<modulename>:<filename>".
@@ -45,8 +47,9 @@
$(eval include $(CLEAR_VARS)) \
$(eval LOCAL_IS_HOST_MODULE := $(2)) \
$(eval LOCAL_MODULE_CLASS := $(3)) \
- $(eval OVERRIDE_BUILT_MODULE_PATH := $(4)) \
- $(eval LOCAL_UNINSTALLABLE_MODULE := $(5)) \
+ $(eval LOCAL_MODULE_TAGS := $(4)) \
+ $(eval OVERRIDE_BUILT_MODULE_PATH := $(5)) \
+ $(eval LOCAL_UNINSTALLABLE_MODULE := $(6)) \
$(eval tw := $(subst :, ,$(strip $(t)))) \
$(if $(word 3,$(tw)),$(error $(LOCAL_PATH): Bad prebuilt filename '$(t)')) \
$(if $(word 2,$(tw)), \
@@ -56,8 +59,8 @@
$(eval LOCAL_MODULE := $(basename $(notdir $(t)))) \
$(eval LOCAL_SRC_FILES := $(t)) \
) \
- $(if $(6), \
- $(eval LOCAL_BUILT_MODULE_STEM := $(6)) \
+ $(if $(7), \
+ $(eval LOCAL_BUILT_MODULE_STEM := $(7)) \
, \
$(eval LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))) \
) \
@@ -73,6 +76,7 @@
$(prebuilt_static_libs), \
$(prebuilt_is_host), \
STATIC_LIBRARIES, \
+ $(prebuilt_module_tags), \
, \
true)
@@ -80,17 +84,20 @@
$(prebuilt_shared_libs), \
$(prebuilt_is_host), \
SHARED_LIBRARIES, \
+ $(prebuilt_module_tags), \
$($(if $(prebuilt_is_host),HOST,TARGET)_OUT_INTERMEDIATE_LIBRARIES))
$(call auto-prebuilt-boilerplate, \
$(prebuilt_executables), \
$(prebuilt_is_host), \
- EXECUTABLES)
+ EXECUTABLES, \
+ $(prebuilt_module_tags))
$(call auto-prebuilt-boilerplate, \
$(prebuilt_java_libraries), \
$(prebuilt_is_host), \
JAVA_LIBRARIES, \
+ $(prebuilt_module_tags), \
, \
, \
javalib.jar)
@@ -99,6 +106,7 @@
$(prebuilt_static_java_libraries), \
$(prebuilt_is_host), \
JAVA_LIBRARIES, \
+ $(prebuilt_module_tags), \
, \
true, \
javalib.jar)
@@ -109,3 +117,4 @@
prebuilt_java_libraries :=
prebuilt_static_java_libraries :=
prebuilt_is_host :=
+prebuilt_module_tags :=