Author: blogic Date: 2016-02-18 09:22:17 +0100 (Thu, 18 Feb 2016) New Revision: 48739
Added: trunk/toolchain/uClibc/config/archs Modified: trunk/toolchain/gcc/common.mk trunk/toolchain/uClibc/common.mk Log: toolchain: add support of ARCv2 architecture This change adds support of ARC ISAv2 processors in OpenWRT toolchain. In general gcc for ARC may compile code for both ISA versions simultaneously but libgcc will be built only for default architecture that's why it's necessary to specify --with-cpu on gcc configuration. As for uClibc we need to use different configurations for different ARC ISAs. Signed-off-by: Alexey Brodkin <[email protected]> Cc: Felix Fietkau <[email protected]> Cc: Jo-Philipp Wich <[email protected]> Cc: Jonas Gorski <[email protected]> Modified: trunk/toolchain/gcc/common.mk =================================================================== --- trunk/toolchain/gcc/common.mk 2016-02-18 08:22:07 UTC (rev 48738) +++ trunk/toolchain/gcc/common.mk 2016-02-18 08:22:17 UTC (rev 48739) @@ -111,6 +111,7 @@ $(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \ $(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 \ --with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \ + $(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \ --with-gmp=$(TOPDIR)/staging_dir/host \ --with-mpfr=$(TOPDIR)/staging_dir/host \ --with-mpc=$(TOPDIR)/staging_dir/host \ Modified: trunk/toolchain/uClibc/common.mk =================================================================== --- trunk/toolchain/uClibc/common.mk 2016-02-18 08:22:07 UTC (rev 48738) +++ trunk/toolchain/uClibc/common.mk 2016-02-18 08:22:17 UTC (rev 48739) @@ -41,8 +41,9 @@ $(if $(CONFIG_UCLIBC_ENABLE_DEBUG),$(if $(wildcard $(CONFIG_DIR)/debug),'+' $(CONFIG_DIR)/debug)) \ $(CONFIG_DIR)/$(ARCH)$(strip \ $(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),.$(BOARD), \ + $(if $(filter archs,$(subst ",,$(CONFIG_CPU_TYPE))),hs, \ $(if $(CONFIG_MIPS64_ABI),.$(subst ",,$(CONFIG_MIPS64_ABI)), \ - $(if $(CONFIG_HAS_SPE_FPU),$(if $(wildcard $(CONFIG_DIR)/$(ARCH).e500),.e500))))) + $(if $(CONFIG_HAS_SPE_FPU),$(if $(wildcard $(CONFIG_DIR)/$(ARCH).e500),.e500)))))) CPU_CFLAGS = \ -funsigned-char -fno-builtin -fno-asm \ Copied: trunk/toolchain/uClibc/config/archs (from rev 48738, trunk/toolchain/uClibc/config/arc) =================================================================== --- trunk/toolchain/uClibc/config/archs (rev 0) +++ trunk/toolchain/uClibc/config/archs 2016-02-18 08:22:17 UTC (rev 48739) @@ -0,0 +1,10 @@ +ARCH_ANY_ENDIAN=y +ARCH_LITTLE_ENDIAN=y +ARCH_WANTS_LITTLE_ENDIAN=y +TARGET_ARCH="arc" +TARGET_arc=y +# CONFIG_ARC_CPU_700 is not set +CONFIG_ARC_CPU_HS=y +CONFIG_ARC_PAGE_SIZE_8K=y +# CONFIG_ARC_PAGE_SIZE_16K is not set +# CONFIG_ARC_PAGE_SIZE_4K is not set _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
