2014-02-07 10:08:44 +08:00
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/clang/mips.mk
|
|
|
|
|
|
|
|
CLANG_CONFIG_mips_TARGET_TRIPLE := mipsel-linux-android
|
|
|
|
CLANG_CONFIG_mips_TARGET_TOOLCHAIN_PREFIX := \
|
2014-07-23 05:34:00 +08:00
|
|
|
$($(clang_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT)/mips64el-linux-android/bin
|
2014-02-07 10:08:44 +08:00
|
|
|
|
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_ASFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_mips_EXTRA_ASFLAGS) \
|
2014-10-09 06:41:29 +08:00
|
|
|
-fPIC \
|
2014-02-07 10:08:44 +08:00
|
|
|
-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)
|
|
|
|
|
2014-11-26 16:53:46 +08:00
|
|
|
CLANG_CONFIG_mips_TARGET_EXTRA_CONLYFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CONLYFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CONLYFLAGS) \
|
|
|
|
$(CLANG_CONFIG_mips_EXTRA_CONLYFLAGS)
|
|
|
|
|
2014-02-07 10:08:44 +08:00
|
|
|
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)
|
|
|
|
|
2014-11-26 16:53:46 +08:00
|
|
|
$(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)
|
|
|
|
|
2014-02-07 10:08:44 +08:00
|
|
|
$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CPPFLAGS := \
|
2014-06-04 07:05:59 +08:00
|
|
|
$(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CPPFLAGS)) \
|
2014-02-07 10:08:44 +08:00
|
|
|
$(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)
|
|
|
|
|
2016-03-18 02:04:37 +08:00
|
|
|
$(clang_2nd_arch_prefix)RS_TRIPLE := armv7-linux-androideabi
|
2014-08-30 05:43:53 +08:00
|
|
|
$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS :=
|
2014-09-03 10:09:35 +08:00
|
|
|
RS_COMPAT_TRIPLE := mipsel-linux-android
|
2015-01-26 08:20:57 +08:00
|
|
|
|
|
|
|
$(clang_2nd_arch_prefix)TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-mipsel-android.a
|