summaryrefslogtreecommitdiff
path: root/mk/arm-arch.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-04 01:14:44 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-04 01:15:58 +0200
commitc5e84614ee8eca242af7806fcc0072958021280d (patch)
tree5644562166b782a163b3fd9982a902cd7c99eab4 /mk/arm-arch.mk
parent339cb0b974e33db231f32d522f00dc0ff618036d (diff)
downloadembtoolkit-c5e84614ee8eca242af7806fcc0072958021280d.tar.gz
embtoolkit-c5e84614ee8eca242af7806fcc0072958021280d.tar.bz2
embtoolkit-c5e84614ee8eca242af7806fcc0072958021280d.tar.xz
Toolchain: Add ARM arch support
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/arm-arch.mk')
-rw-r--r--mk/arm-arch.mk57
1 files changed, 57 insertions, 0 deletions
diff --git a/mk/arm-arch.mk b/mk/arm-arch.mk
new file mode 100644
index 0000000..b57dacb
--- /dev/null
+++ b/mk/arm-arch.mk
@@ -0,0 +1,57 @@
+################################################################################
+# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+#
+# 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 GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date June 2009
+################################################################################
+
+ifeq ($(CONFIG_EMBTK_ARCH_ARM),y)
+LINUX_ARCH := arm
+GNU_TARGET_ARCH := arm
+
+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
+
+#GCC configure options
+GCC_WITH_CPU := --with-cpu=$(subst ",,$(strip $(CONFIG_EMBTK_ARM_MCU_STRING)))
+
+#Hard or soft floating point for GCC
+ifeq ($(CONFIG_EMBTK_SOFTFLOAT),y)
+GCC_WITH_FLOAT := --with-float=soft
+else
+GCC_WITH_FLOAT := --with-float=hard
+endif
+
+#Hard or soft floating point for eglibc
+ifeq ($(CONFIG_EMBTK_SOFTFLOAT),y)
+EGLIBC_FLOAT_TYPE := --with-fp=no
+EMBTK_TARGET_FLOAT_CFLAGS := -mfloat-abi=soft
+else
+EGLIBC_FLOAT_TYPE := --with-fp=yes
+EMBTK_TARGET_FLOAT_CFLAGS := -mfloat-abi=hard
+endif
+
+endif
+