From 6528871efd3e99f18deba5a768f935fd6c75d533 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 18 Apr 2009 17:03:55 +0000 Subject: add a modified version of the mips64 patch from #4603 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15249 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/kernel.mk | 2 +- include/site/mips64-linux | 28 ++++++++++++++++++++++++++++ include/site/mips64-openwrt-linux-gnu | 5 +++++ include/site/mips64-openwrt-linux-uclibc | 5 +++++ include/site/mips64el-linux | 28 ++++++++++++++++++++++++++++ include/site/mips64el-openwrt-linux-gnu | 5 +++++ include/site/mips64el-openwrt-linux-uclibc | 5 +++++ include/target.mk | 2 ++ 8 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 include/site/mips64-linux create mode 100644 include/site/mips64-openwrt-linux-gnu create mode 100644 include/site/mips64-openwrt-linux-uclibc create mode 100644 include/site/mips64el-linux create mode 100644 include/site/mips64el-openwrt-linux-gnu create mode 100644 include/site/mips64el-openwrt-linux-uclibc (limited to 'include') diff --git a/include/kernel.mk b/include/kernel.mk index 8b98369b4..20377af3c 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 000000000..1541a89d1 --- /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 000000000..b7474d527 --- /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 000000000..1b1347ce9 --- /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 000000000..41dfc01df --- /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 000000000..b7474d527 --- /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 000000000..1b1347ce9 --- /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 2f62c2a8c..5484592de 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) -- cgit v1.2.3