aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/Makefile')
-rw-r--r--arch/mips/kernel/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index 007c33d73715..6c17e1f3d0ec 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -98,4 +98,35 @@ obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o
98 98
99obj-$(CONFIG_JUMP_LABEL) += jump_label.o 99obj-$(CONFIG_JUMP_LABEL) += jump_label.o
100 100
101#
102# DSP ASE supported for MIPS32 or MIPS64 Release 2 cores only. It is safe
103# to enable DSP assembler support here even if the MIPS Release 2 CPU we
104# are targetting does not support DSP because all code-paths making use of
105# it properly check that the running CPU *actually does* support these
106# instructions.
107#
108ifeq ($(CONFIG_CPU_MIPSR2), y)
109CFLAGS_DSP = -DHAVE_AS_DSP
110
111#
112# Check if assembler supports DSP ASE
113#
114ifeq ($(call cc-option-yn,-mdsp), y)
115CFLAGS_DSP += -mdsp
116endif
117
118#
119# Check if assembler supports DSP ASE Rev2
120#
121ifeq ($(call cc-option-yn,-mdspr2), y)
122CFLAGS_DSP += -mdspr2
123endif
124
125CFLAGS_signal.o = $(CFLAGS_DSP)
126CFLAGS_signal32.o = $(CFLAGS_DSP)
127CFLAGS_process.o = $(CFLAGS_DSP)
128CFLAGS_branch.o = $(CFLAGS_DSP)
129CFLAGS_ptrace.o = $(CFLAGS_DSP)
130endif
131
101CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) 132CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS)