1f9828387d
1. Following the setup of gcc in build/core/combo/, we added the [HOST|TARGET]_<arch>.mk clang config files, and load only the configs needed by the current product. 2. Added support for the 2nd arch. Change-Id: I2a383418a9688a050b39492f8e489d40eeeb5f2d
53 lines
1.7 KiB
Makefile
53 lines
1.7 KiB
Makefile
|
|
include $(BUILD_SYSTEM)/clang/mips64.mk
|
|
|
|
CLANG_CONFIG_mips64_TARGET_TRIPLE := mips64el-linux-android
|
|
CLANG_CONFIG_mips64_TARGET_TOOLCHAIN_PREFIX := \
|
|
$(TARGET_TOOLCHAIN_ROOT)/$(CLANG_CONFIG_mips64_TARGET_TRIPLE)/bin
|
|
|
|
CLANG_CONFIG_mips64_TARGET_EXTRA_ASFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_ASFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_ASFLAGS) \
|
|
$(CLANG_CONFIG_mips64_EXTRA_ASFLAGS) \
|
|
-target $(CLANG_CONFIG_mips64_TARGET_TRIPLE) \
|
|
-B$(CLANG_CONFIG_mips64_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
CLANG_CONFIG_mips64_TARGET_EXTRA_CFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_mips64_EXTRA_CFLAGS) \
|
|
$(CLANG_CONFIG_mips64_TARGET_EXTRA_ASFLAGS)
|
|
|
|
CLANG_CONFIG_mips64_TARGET_EXTRA_CPPFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_CPPFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CPPFLAGS) \
|
|
$(CLANG_CONFIG_mips64_EXTRA_CPPFLAGS) \
|
|
|
|
CLANG_CONFIG_mips64_TARGET_EXTRA_LDFLAGS := \
|
|
$(CLANG_CONFIG_EXTRA_LDFLAGS) \
|
|
$(CLANG_CONFIG_TARGET_EXTRA_LDFLAGS) \
|
|
$(CLANG_CONFIG_mips64_EXTRA_LDFLAGS) \
|
|
-target $(CLANG_CONFIG_mips64_TARGET_TRIPLE) \
|
|
-B$(CLANG_CONFIG_mips64_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
|
|
define convert-to-clang-flags
|
|
$(strip \
|
|
$(call subst-clang-incompatible-mips64-flags,\
|
|
$(filter-out $(CLANG_CONFIG_mips64_UNKNOWN_CFLAGS),\
|
|
$(1))))
|
|
endef
|
|
|
|
CLANG_TARGET_GLOBAL_CFLAGS := \
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_CFLAGS)) \
|
|
$(CLANG_CONFIG_mips64_TARGET_EXTRA_CFLAGS)
|
|
|
|
CLANG_TARGET_GLOBAL_CPPFLAGS := \
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_CPPFLAGS)) \
|
|
$(CLANG_CONFIG_mips64_TARGET_EXTRA_CPPFLAGS)
|
|
|
|
CLANG_TARGET_GLOBAL_LDFLAGS := \
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \
|
|
$(CLANG_CONFIG_mips64_TARGET_EXTRA_LDFLAGS)
|
|
|
|
RS_TRIPLE := mips64el-unknown-linux
|