diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2013-02-21 06:51:33 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2013-02-21 06:51:33 -0500 |
| commit | 8bfc245f9ad7bd4e461179e4e7852ef99b8b6144 (patch) | |
| tree | 0ad091f645fbc8318634599d278966a53d3922ee /arch/mips/kernel/Makefile | |
| parent | 612663a974065c3445e641d046769fe4c55a6438 (diff) | |
| parent | 535237cecab2b078114be712c67e89a0db61965f (diff) | |
Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next
Diffstat (limited to 'arch/mips/kernel/Makefile')
| -rw-r--r-- | arch/mips/kernel/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index c48ed923fd55..f81d98f6184c 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
| @@ -27,6 +27,7 @@ obj-$(CONFIG_CSRC_IOASIC) += csrc-ioasic.o | |||
| 27 | obj-$(CONFIG_CSRC_POWERTV) += csrc-powertv.o | 27 | obj-$(CONFIG_CSRC_POWERTV) += csrc-powertv.o |
| 28 | obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o | 28 | obj-$(CONFIG_CSRC_R4K) += csrc-r4k.o |
| 29 | obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o | 29 | obj-$(CONFIG_CSRC_SB1250) += csrc-sb1250.o |
| 30 | obj-$(CONFIG_CSRC_GIC) += csrc-gic.o | ||
| 30 | obj-$(CONFIG_SYNC_R4K) += sync-r4k.o | 31 | obj-$(CONFIG_SYNC_R4K) += sync-r4k.o |
| 31 | 32 | ||
| 32 | obj-$(CONFIG_STACKTRACE) += stacktrace.o | 33 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
| @@ -98,4 +99,35 @@ obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o | |||
| 98 | 99 | ||
| 99 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o | 100 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o |
| 100 | 101 | ||
| 102 | # | ||
| 103 | # DSP ASE supported for MIPS32 or MIPS64 Release 2 cores only. It is safe | ||
| 104 | # to enable DSP assembler support here even if the MIPS Release 2 CPU we | ||
| 105 | # are targetting does not support DSP because all code-paths making use of | ||
| 106 | # it properly check that the running CPU *actually does* support these | ||
| 107 | # instructions. | ||
| 108 | # | ||
| 109 | ifeq ($(CONFIG_CPU_MIPSR2), y) | ||
| 110 | CFLAGS_DSP = -DHAVE_AS_DSP | ||
| 111 | |||
| 112 | # | ||
| 113 | # Check if assembler supports DSP ASE | ||
| 114 | # | ||
| 115 | ifeq ($(call cc-option-yn,-mdsp), y) | ||
| 116 | CFLAGS_DSP += -mdsp | ||
| 117 | endif | ||
| 118 | |||
| 119 | # | ||
| 120 | # Check if assembler supports DSP ASE Rev2 | ||
| 121 | # | ||
| 122 | ifeq ($(call cc-option-yn,-mdspr2), y) | ||
| 123 | CFLAGS_DSP += -mdspr2 | ||
| 124 | endif | ||
| 125 | |||
| 126 | CFLAGS_signal.o = $(CFLAGS_DSP) | ||
| 127 | CFLAGS_signal32.o = $(CFLAGS_DSP) | ||
| 128 | CFLAGS_process.o = $(CFLAGS_DSP) | ||
| 129 | CFLAGS_branch.o = $(CFLAGS_DSP) | ||
| 130 | CFLAGS_ptrace.o = $(CFLAGS_DSP) | ||
| 131 | endif | ||
| 132 | |||
| 101 | CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) | 133 | CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) |
