27b18f5c95
http://b/26987366
- Use clang-2690385 to build RenderScript toolchain.
- Use armv7-linux-androideabi as the triple used to build RenderScript
runtime libraries.
(cherry picked from commit 41f4b242e3
)
Change-Id: I50751f410a2f7c83532cec9b96c50d9afe1224c1
67 lines
2.5 KiB
Makefile
67 lines
2.5 KiB
Makefile
|
|
include $(BUILD_SYSTEM)/clang/mips.mk
|
|
|
|
CLANG_CONFIG_mips_TARGET_TRIPLE := mipsel-linux-android
|
|
CLANG_CONFIG_mips_TARGET_TOOLCHAIN_PREFIX := \
|
|
$($(clang_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT)/mips64el-linux-android/bin
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_ASFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_ASFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_ASFLAGS) \
|
|
$(CLANG_CONFIG_mips_EXTRA_ASFLAGS) \
|
|
-fPIC \
|
|
-target $(CLANG_CONFIG_mips_TARGET_TRIPLE) \
|
|
-B$(CLANG_CONFIG_mips_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_CFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_mips_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_mips_TARGET_EXTRA_ASFLAGS)
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_CONLYFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_CONLYFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CONLYFLAGS) \
|
|
$(CLANG_CONFIG_mips_EXTRA_CONLYFLAGS)
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_CPPFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_CPPFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CPPFLAGS) \
|
|
$(CLANG_CONFIG_mips_EXTRA_CPPFLAGS) \
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_LDFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_LDFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_LDFLAGS) \
|
|
$(CLANG_CONFIG_mips_EXTRA_LDFLAGS) \
|
|
-target $(CLANG_CONFIG_mips_TARGET_TRIPLE) \
|
|
-B$(CLANG_CONFIG_mips_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
|
|
define $(clang_2nd_arch_prefix)convert-to-clang-flags
|
|
$(strip \
|
|
$(call subst-clang-incompatible-mips-flags,\
|
|
$(filter-out $(CLANG_CONFIG_mips_UNKNOWN_CFLAGS),\
|
|
$(1))))
|
|
endef
|
|
|
|
$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CFLAGS := \
|
|
$(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS)) \
|
|
$(CLANG_CONFIG_mips_TARGET_EXTRA_CFLAGS)
|
|
|
|
$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CONLYFLAGS := \
|
|
$(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CONLYFLAGS)) \
|
|
$(CLANG_CONFIG_mips_TARGET_EXTRA_CONLYFLAGS)
|
|
|
|
$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CPPFLAGS := \
|
|
$(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CPPFLAGS)) \
|
|
$(CLANG_CONFIG_mips_TARGET_EXTRA_CPPFLAGS)
|
|
|
|
$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_LDFLAGS := \
|
|
$(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_LDFLAGS)) \
|
|
$(CLANG_CONFIG_mips_TARGET_EXTRA_LDFLAGS)
|
|
|
|
$(clang_2nd_arch_prefix)RS_TRIPLE := armv7-linux-androideabi
|
|
$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS :=
|
|
RS_COMPAT_TRIPLE := mipsel-linux-android
|
|
|
|
$(clang_2nd_arch_prefix)TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-mipsel-android.a
|