diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-18 17:03:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-18 17:03:55 +0000 |
commit | 56164a5815346ed801c1fd8885023f55c19b29ff (patch) | |
tree | d5f46ef620e54d7b0ff56c98fed8ad25895d6bb7 /include | |
parent | 24aedf82810f1abcdd345741ab7a97adea43ad1c (diff) | |
download | mtk-20170518-56164a5815346ed801c1fd8885023f55c19b29ff.zip mtk-20170518-56164a5815346ed801c1fd8885023f55c19b29ff.tar.gz mtk-20170518-56164a5815346ed801c1fd8885023f55c19b29ff.tar.bz2 |
add a modified version of the mips64 patch from #4603
SVN-Revision: 15249
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 2 | ||||
-rw-r--r-- | include/site/mips64-linux | 28 | ||||
-rw-r--r-- | include/site/mips64-openwrt-linux-gnu | 5 | ||||
-rw-r--r-- | include/site/mips64-openwrt-linux-uclibc | 5 | ||||
-rw-r--r-- | include/site/mips64el-linux | 28 | ||||
-rw-r--r-- | include/site/mips64el-openwrt-linux-gnu | 5 | ||||
-rw-r--r-- | include/site/mips64el-openwrt-linux-uclibc | 5 | ||||
-rw-r--r-- | include/target.mk | 2 |
8 files changed, 79 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 8b98369..20377af 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -53,7 +53,7 @@ ifneq (,$(findstring uml,$(BOARD))) LINUX_KARCH=um else ifeq (,$(LINUX_KARCH)) - LINUX_KARCH=$(strip $(subst i386,x86,$(subst armeb,arm,$(subst mipsel,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH)))))))) + LINUX_KARCH=$(strip $(subst i386,x86,$(subst armeb,arm,$(subst mipsel,mips,$(subst mips64,mips,$(subst mips64el,mips,$(subst sh2,sh,$(subst sh3,sh,$(subst sh4,sh,$(ARCH)))))))))) endif endif diff --git a/include/site/mips64-linux b/include/site/mips64-linux new file mode 100644 index 0000000..1541a89 --- /dev/null +++ b/include/site/mips64-linux @@ -0,0 +1,28 @@ +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=8 +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=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +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=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/mips64-openwrt-linux-gnu b/include/site/mips64-openwrt-linux-gnu new file mode 100644 index 0000000..b7474d5 --- /dev/null +++ b/include/site/mips64-openwrt-linux-gnu @@ -0,0 +1,5 @@ +#!/bin/sh + +. $TOPDIR/include/site/mips64-linux +. $TOPDIR/include/site/linux-gnu + diff --git a/include/site/mips64-openwrt-linux-uclibc b/include/site/mips64-openwrt-linux-uclibc new file mode 100644 index 0000000..1b1347c --- /dev/null +++ b/include/site/mips64-openwrt-linux-uclibc @@ -0,0 +1,5 @@ +#!/bin/sh + +. $TOPDIR/include/site/mips64-linux +. $TOPDIR/include/site/linux-uclibc + diff --git a/include/site/mips64el-linux b/include/site/mips64el-linux new file mode 100644 index 0000000..41dfc01 --- /dev/null +++ b/include/site/mips64el-linux @@ -0,0 +1,28 @@ +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=8 +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=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +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=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/mips64el-openwrt-linux-gnu b/include/site/mips64el-openwrt-linux-gnu new file mode 100644 index 0000000..b7474d5 --- /dev/null +++ b/include/site/mips64el-openwrt-linux-gnu @@ -0,0 +1,5 @@ +#!/bin/sh + +. $TOPDIR/include/site/mips64-linux +. $TOPDIR/include/site/linux-gnu + diff --git a/include/site/mips64el-openwrt-linux-uclibc b/include/site/mips64el-openwrt-linux-uclibc new file mode 100644 index 0000000..1b1347c --- /dev/null +++ b/include/site/mips64el-openwrt-linux-uclibc @@ -0,0 +1,5 @@ +#!/bin/sh + +. $TOPDIR/include/site/mips64-linux +. $TOPDIR/include/site/linux-uclibc + diff --git a/include/target.mk b/include/target.mk index 2f62c2a..5484592 100644 --- a/include/target.mk +++ b/include/target.mk @@ -155,6 +155,8 @@ ifeq ($(DUMP),1) DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -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 + DEFAULT_CFLAGS_mips64el=$(DEFAULT_CFLAGS_mips64) DEFAULT_CFLAGS_arm=-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time DEFAULT_CFLAGS_armeb=$(DEFAULT_CFLAGS_arm) DEFAULT_CFLAGS=$(if $(DEFAULT_CFLAGS_$(ARCH)),$(DEFAULT_CFLAGS_$(ARCH)),-Os -pipe -funit-at-a-time) |