diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-03-01 14:22:29 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:50 -0400 |
commit | fe00f943e0ef98b4057abcc2940d631a975b43cd (patch) | |
tree | c036ab8269ac86485130a083330229a01d319557 /arch/mips/Makefile | |
parent | 14f18b7f7e58de9a34c4b5fd38d5f73f22fba7ac (diff) |
Sparseify MIPS.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 99da8a2850c7..393c33c0faad 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -52,6 +52,21 @@ ifdef CONFIG_CROSSCOMPILE | |||
52 | CROSS_COMPILE := $(tool-prefix) | 52 | CROSS_COMPILE := $(tool-prefix) |
53 | endif | 53 | endif |
54 | 54 | ||
55 | CHECKFLAGS-y += -D__linux__ -D__mips__ \ | ||
56 | -D_ABIO32=1 \ | ||
57 | -D_ABIN32=2 \ | ||
58 | -D_ABI64=3 | ||
59 | CHECKFLAGS-$(CONFIG_32BIT) += -D_MIPS_SIM=_ABIO32 \ | ||
60 | -D_MIPS_SZLONG=32 \ | ||
61 | -D__PTRDIFF_TYPE__=int | ||
62 | CHECKFLAGS-$(CONFIG_64BIT) += -m64 -D_MIPS_SIM=_ABI64 \ | ||
63 | -D_MIPS_SZLONG=64 \ | ||
64 | -D__PTRDIFF_TYPE__="long int" | ||
65 | CHECKFLAGS-$(CONFIG_CPU_BIG_ENDIAN) += -D__MIPSEB__ | ||
66 | CHECKFLAGS-$(CONFIG_CPU_LITTLE_ENDIAN) += -D__MIPSEL__ | ||
67 | |||
68 | CHECKFLAGS = $(CHECKFLAGS-y) | ||
69 | |||
55 | ifdef CONFIG_BUILD_ELF64 | 70 | ifdef CONFIG_BUILD_ELF64 |
56 | gas-abi = 64 | 71 | gas-abi = 64 |
57 | ld-emul = $(64bit-emul) | 72 | ld-emul = $(64bit-emul) |