summaryrefslogtreecommitdiff
path: root/mk/arch/arm/arm.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-24 13:04:28 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-24 13:04:28 +0100
commitb7556f14725846fc5412b9495ebc5861fe102dc7 (patch)
tree358c02ec8952e0529ed8e5bcc6c04508d9f861eb /mk/arch/arm/arm.mk
parent869e68d0d52ac44af2400d53b00cfcbfdec4dac9 (diff)
downloadembtoolkit-b7556f14725846fc5412b9495ebc5861fe102dc7.tar.gz
embtoolkit-b7556f14725846fc5412b9495ebc5861fe102dc7.tar.bz2
embtoolkit-b7556f14725846fc5412b9495ebc5861fe102dc7.tar.xz
Toolchain: move different supported arch in their own directory
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/arch/arm/arm.mk')
-rw-r--r--mk/arch/arm/arm.mk67
1 files changed, 67 insertions, 0 deletions
diff --git a/mk/arch/arm/arm.mk b/mk/arch/arm/arm.mk
new file mode 100644
index 0000000..ed9b6b8
--- /dev/null
+++ b/mk/arch/arm/arm.mk
@@ -0,0 +1,67 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+#
+# This program is free software; you can distribute it and/or modify it
+# under the terms of the GNU General Public License
+# (Version 2 or later) published by the Free Software Foundation.
+#
+# This program is distributed in the hope it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
+################################################################################
+#
+# \file arm-arch.mk
+# \brief arm-arch.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date June 2009
+################################################################################
+
+LINUX_ARCH := arm
+GNU_TARGET_ARCH := arm
+EMBTK_MCU_FLAG := $(subst ",,$(strip $(CONFIG_EMBTK_ARM_MCU_STRING)))
+
+ifeq ($(CONFIG_EMBTK_CLIB_EGLIBC),y)
+# EGLIBC C library
+ifeq ($(CONFIG_EMBTK_ARCH_ARM_BIG_ENDIAN),y)
+GNU_TARGET := armeb-linux
+STRICT_GNU_TARGET := armeb-unknown-linux-gnueabi
+else
+GNU_TARGET := armel-linux
+STRICT_GNU_TARGET := armel-unknown-linux-gnueabi
+endif
+
+else
+# uClibc C library
+ifeq ($(CONFIG_EMBTK_ARCH_ARM_BIG_ENDIAN),y)
+GNU_TARGET := armeb-linux
+STRICT_GNU_TARGET := armeb-unknown-linux-uclibceabi
+else
+GNU_TARGET := armel-linux
+STRICT_GNU_TARGET := armel-unknown-linux-uclibceabi
+endif
+
+endif
+
+# GCC configure options
+GCC_WITH_CPU := --with-cpu=$(subst ",,$(strip $(CONFIG_EMBTK_ARM_MCU_STRING)))
+
+# GCC extra configure options for arm
+GCC3_CONFIGURE_EXTRA_OPTIONS += $(strip $(if $(CONFIG_EMBTK_GCC_LANGUAGE_JAVA), \
+ --enable-sjlj-exceptions))
+
+# Hard or soft floating point for GCC?
+GCC_WITH_FLOAT := $(strip $(if $(CONFIG_EMBTK_SOFTFLOAT), \
+ --with-float=soft,--with-float=softfp))
+# Hard or soft floating point?
+EMBTK_TARGET_FLOAT_CFLAGS := $(strip $(if $(CONFIG_EMBTK_SOFTFLOAT), \
+ -mfloat-abi=soft,-mfloat-abi=softfp))
+
+# Some other flags for TARGET_CFLAGS
+EMBTK_TARGET_MCPU := -mcpu=$(EMBTK_MCU_FLAG)
+EMBTK_TARGET_MARCH :=