diff options
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) |