aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2009-06-21 18:34:07 +0000
committerImre Kaloz <kaloz@openwrt.org>2009-06-21 18:34:07 +0000
commit0609b66c2c388b7ce5536f4c0a1b14bf617685d2 (patch)
tree39c068bde6937766b91ac60f5157e79c1c8a89c1 /include
parentfc6e01ad10f76d4c9273a707b8ffb6eae48236b1 (diff)
downloadupstream-0609b66c2c388b7ce5536f4c0a1b14bf617685d2.tar.gz
upstream-0609b66c2c388b7ce5536f4c0a1b14bf617685d2.tar.bz2
upstream-0609b66c2c388b7ce5536f4c0a1b14bf617685d2.zip
add preliminary coldfire v4e support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16538 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/site/m68k-linux26
-rw-r--r--include/site/m68k-openwrt-linux-gnu5
-rw-r--r--include/site/m68k-openwrt-linux-uclibc5
-rw-r--r--include/target.mk1
4 files changed, 37 insertions, 0 deletions
diff --git a/include/site/m68k-linux b/include/site/m68k-linux
new file mode 100644
index 0000000000..1005902592
--- /dev/null
+++ b/include/site/m68k-linux
@@ -0,0 +1,26 @@
+ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
+
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_int16_t=2
+ac_cv_sizeof_int32_t=4
+ac_cv_sizeof_int64_t=8
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_long=4
+ac_cv_sizeof_off_t=4
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_short=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_u_int16_t=2
+ac_cv_sizeof_u_int32_t=4
+ac_cv_sizeof_u_int64_t=8
+ac_cv_sizeof_uint16_t=2
+ac_cv_sizeof_uint32_t=4
+ac_cv_sizeof_uint64_t=8
+ac_cv_sizeof_unsigned_int=4
+ac_cv_sizeof_unsigned_long=4
+ac_cv_sizeof_unsigned_short=2
+ac_cv_sizeof_void_p=4
diff --git a/include/site/m68k-openwrt-linux-gnu b/include/site/m68k-openwrt-linux-gnu
new file mode 100644
index 0000000000..69c51d5968
--- /dev/null
+++ b/include/site/m68k-openwrt-linux-gnu
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. $TOPDIR/include/site/m68k-linux
+. $TOPDIR/include/site/linux-gnu
+
diff --git a/include/site/m68k-openwrt-linux-uclibc b/include/site/m68k-openwrt-linux-uclibc
new file mode 100644
index 0000000000..69c51d5968
--- /dev/null
+++ b/include/site/m68k-openwrt-linux-uclibc
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. $TOPDIR/include/site/m68k-linux
+. $TOPDIR/include/site/linux-gnu
+
diff --git a/include/target.mk b/include/target.mk
index 8769c30575..7facaeed83 100644
--- a/include/target.mk
+++ b/include/target.mk
@@ -162,6 +162,7 @@ ifeq ($(DUMP),1)
endif
DEFAULT_CFLAGS_i386=-O2 -pipe -march=i486 -funit-at-a-time
DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -funit-at-a-time
+ DEFAULT_CFLAGS_m68k=-Os -pipe -mcfv4e -funit-at-a-time
DEFAULT_CFLAGS_mips=-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time
DEFAULT_CFLAGS_mipsel=$(DEFAULT_CFLAGS_mips)
DEFAULT_CFLAGS_mips64=-Os -pipe -mips64 -mtune=mips64 -mabi=64 -funit-at-a-time