• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2my_prefix := HOST_
3include $(BUILD_SYSTEM)/multilib.mk
4
5ifndef LOCAL_MODULE_HOST_ARCH
6ifndef my_module_multilib
7ifeq ($(HOST_PREFER_32_BIT),true)
8my_module_multilib := 32
9else
10# By default we only build host module for the first arch.
11my_module_multilib := first
12endif
13endif
14endif
15
16ifeq ($(my_module_multilib),both)
17ifeq ($(LOCAL_MODULE_PATH_32)$(LOCAL_MODULE_STEM_32),)
18$(error $(LOCAL_PATH): LOCAL_MODULE_STEM_32 or LOCAL_MODULE_PATH_32 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE))
19endif
20ifeq ($(LOCAL_MODULE_PATH_64)$(LOCAL_MODULE_STEM_64),)
21$(error $(LOCAL_PATH): LOCAL_MODULE_STEM_64 or LOCAL_MODULE_PATH_64 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE))
22endif
23else #!LOCAL_MULTILIB == both
24LOCAL_NO_2ND_ARCH_MODULE_SUFFIX := true
25endif
26
27LOCAL_2ND_ARCH_VAR_PREFIX :=
28include $(BUILD_SYSTEM)/module_arch_supported.mk
29
30ifeq ($(my_module_arch_supported),true)
31include $(BUILD_SYSTEM)/host_executable_internal.mk
32endif
33
34ifdef HOST_2ND_ARCH
35LOCAL_2ND_ARCH_VAR_PREFIX := $(HOST_2ND_ARCH_VAR_PREFIX)
36include $(BUILD_SYSTEM)/module_arch_supported.mk
37ifeq ($(my_module_arch_supported),true)
38# Build for HOST_2ND_ARCH
39OVERRIDE_BUILT_MODULE_PATH :=
40LOCAL_BUILT_MODULE :=
41LOCAL_INSTALLED_MODULE :=
42LOCAL_INTERMEDIATE_TARGETS :=
43
44include $(BUILD_SYSTEM)/host_executable_internal.mk
45endif
46LOCAL_2ND_ARCH_VAR_PREFIX :=
47endif  # HOST_2ND_ARCH
48
49LOCAL_NO_2ND_ARCH_MODULE_SUFFIX :=
50my_module_arch_supported :=
51