From 158ca82842ec0826d3d6d5b23ab5a1c886d8cc90 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Thu, 7 Jul 2005 09:19:31 +0000 Subject: [PATCH] --- yaml --- r: 11132 b: refs/heads/master c: f425a6dce50475f08547d08763f707589478b027 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/Makefile | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index eb18ba140ef1..291aa024372d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6e760c8dae7d6c47eff011dd4aad53c94d30494b +refs/heads/master: f425a6dce50475f08547d08763f707589478b027 diff --git a/trunk/arch/mips/Makefile b/trunk/arch/mips/Makefile index 56e1d42a5796..056aae597123 100644 --- a/trunk/arch/mips/Makefile +++ b/trunk/arch/mips/Makefile @@ -97,6 +97,15 @@ cflags-y += $(call cc-option, -finline-limit=100000) LDFLAGS_vmlinux += -G 0 -static -n -nostdlib MODFLAGS += -mlong-calls +# +# We explicitly add the endianness specifier if needed, this allows +# to compile kernels with a toolchain for the other endianness. We +# carefully avoid to add it redundantly because gcc 3.3/3.4 complains +# when fed the toolchain default! +# +cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' && echo -EB) +cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' || echo -EL) + cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer #