1 2include $(BUILD_SYSTEM)/clang/arm.mk 3 4CLANG_CONFIG_arm_TARGET_TRIPLE := arm-linux-androideabi 5CLANG_CONFIG_arm_TARGET_TOOLCHAIN_PREFIX := \ 6 $($(clang_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT)/$(CLANG_CONFIG_arm_TARGET_TRIPLE)/bin 7 8CLANG_CONFIG_arm_TARGET_EXTRA_ASFLAGS := \ 9 $(CLANG_CONFIG_EXTRA_ASFLAGS) \ 10 $(CLANG_CONFIG_TARGET_EXTRA_ASFLAGS) \ 11 $(CLANG_CONFIG_arm_EXTRA_ASFLAGS) \ 12 -target $(CLANG_CONFIG_arm_TARGET_TRIPLE) \ 13 -B$(CLANG_CONFIG_arm_TARGET_TOOLCHAIN_PREFIX) 14 15CLANG_CONFIG_arm_TARGET_EXTRA_CFLAGS := \ 16 $(CLANG_CONFIG_EXTRA_CFLAGS) \ 17 $(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \ 18 $(CLANG_CONFIG_arm_EXTRA_CFLAGS) \ 19 -target $(CLANG_CONFIG_arm_TARGET_TRIPLE) \ 20 $(CLANG_CONFIG_arm_TARGET_EXTRA_ASFLAGS) 21 22CLANG_CONFIG_arm_TARGET_EXTRA_CPPFLAGS := \ 23 $(CLANG_CONFIG_EXTRA_CPPFLAGS) \ 24 $(CLANG_CONFIG_TARGET_EXTRA_CPPFLAGS) \ 25 $(CLANG_CONFIG_arm_EXTRA_CPPFLAGS) \ 26 -target $(CLANG_CONFIG_arm_TARGET_TRIPLE) 27 28CLANG_CONFIG_arm_TARGET_EXTRA_LDFLAGS := \ 29 $(CLANG_CONFIG_EXTRA_LDFLAGS) \ 30 $(CLANG_CONFIG_TARGET_EXTRA_LDFLAGS) \ 31 $(CLANG_CONFIG_arm_EXTRA_LDFLAGS) \ 32 -target $(CLANG_CONFIG_arm_TARGET_TRIPLE) \ 33 -B$(CLANG_CONFIG_arm_TARGET_TOOLCHAIN_PREFIX) 34 35 36define $(clang_2nd_arch_prefix)convert-to-clang-flags 37 $(strip \ 38 $(call subst-clang-incompatible-arm-flags,\ 39 $(filter-out $(CLANG_CONFIG_arm_UNKNOWN_CFLAGS),\ 40 $(1)))) 41endef 42 43$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CFLAGS := \ 44 $(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS)) \ 45 $(CLANG_CONFIG_arm_TARGET_EXTRA_CFLAGS) 46 47$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_CPPFLAGS := \ 48 $(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_CPPFLAGS)) \ 49 $(CLANG_CONFIG_arm_TARGET_EXTRA_CPPFLAGS) 50 51$(clang_2nd_arch_prefix)CLANG_TARGET_GLOBAL_LDFLAGS := \ 52 $(call $(clang_2nd_arch_prefix)convert-to-clang-flags,$($(clang_2nd_arch_prefix)TARGET_GLOBAL_LDFLAGS)) \ 53 $(CLANG_CONFIG_arm_TARGET_EXTRA_LDFLAGS) 54 55$(clang_2nd_arch_prefix)RS_TRIPLE := armv7-none-linux-gnueabi 56$(clang_2nd_arch_prefix)RS_TRIPLE_CFLAGS := 57RS_COMPAT_TRIPLE := armv7-none-linux-gnueabi 58