diff options
author | Thiemo Seufer <ths@networkno.de> | 2005-07-07 05:19:31 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:37 -0400 |
commit | f425a6dce50475f08547d08763f707589478b027 (patch) | |
tree | 32cec3782d55943c69b439c1aa64b39a33a70d13 /arch/mips/Makefile | |
parent | 6e760c8dae7d6c47eff011dd4aad53c94d30494b (diff) |
Hack to make compiles for the other endianness easier.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 56e1d42a5796..056aae597123 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -97,6 +97,15 @@ cflags-y += $(call cc-option, -finline-limit=100000) | |||
97 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib | 97 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib |
98 | MODFLAGS += -mlong-calls | 98 | MODFLAGS += -mlong-calls |
99 | 99 | ||
100 | # | ||
101 | # We explicitly add the endianness specifier if needed, this allows | ||
102 | # to compile kernels with a toolchain for the other endianness. We | ||
103 | # carefully avoid to add it redundantly because gcc 3.3/3.4 complains | ||
104 | # when fed the toolchain default! | ||
105 | # | ||
106 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' && echo -EB) | ||
107 | cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' || echo -EL) | ||
108 | |||
100 | cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer | 109 | cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer |
101 | 110 | ||
102 | # | 111 | # |