Makefile (b8250dc4192c6adab0b9a713a11bf19afc462c96) | Makefile (7a9989356b23fa2c7731632d3b575c53c1ac8bce) |
---|---|
1# 2# Makefile for the Linux/MIPS kernel. 3# 4 5extra-y := head.o vmlinux.lds 6 7obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \ 8 ptrace.o reset.o setup.o signal.o syscall.o \ --- 78 unchanged lines hidden (view full) --- 87obj-$(CONFIG_MIPS_MACHINE) += mips_machine.o 88 89obj-$(CONFIG_OF) += prom.o 90 91CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -x c /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) 92 93obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o 94 | 1# 2# Makefile for the Linux/MIPS kernel. 3# 4 5extra-y := head.o vmlinux.lds 6 7obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \ 8 ptrace.o reset.o setup.o signal.o syscall.o \ --- 78 unchanged lines hidden (view full) --- 87obj-$(CONFIG_MIPS_MACHINE) += mips_machine.o 88 89obj-$(CONFIG_OF) += prom.o 90 91CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -x c /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) 92 93obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o 94 |
95obj-$(CONFIG_MIPS_CPUFREQ) += cpufreq/ 96 | |
97obj-$(CONFIG_PERF_EVENTS) += perf_event.o 98obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o 99 100obj-$(CONFIG_JUMP_LABEL) += jump_label.o 101 102# | 95obj-$(CONFIG_PERF_EVENTS) += perf_event.o 96obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o 97 98obj-$(CONFIG_JUMP_LABEL) += jump_label.o 99 100# |
103# DSP ASE supported for MIPS32 or MIPS64 Release 2 cores only. It is not 104# safe to unconditionnaly use the assembler -mdsp / -mdspr2 switches 105# here because the compiler may use DSP ASE instructions (such as lwx) in 106# code paths where we cannot check that the CPU we are running on supports it. 107# Proper abstraction using HAVE_AS_DSP and macros is done in 108# arch/mips/include/asm/mipsregs.h. | 101# DSP ASE supported for MIPS32 or MIPS64 Release 2 cores only. It is safe 102# to enable DSP assembler support here even if the MIPS Release 2 CPU we 103# are targetting does not support DSP because all code-paths making use of 104# it properly check that the running CPU *actually does* support these 105# instructions. |
109# 110ifeq ($(CONFIG_CPU_MIPSR2), y) 111CFLAGS_DSP = -DHAVE_AS_DSP 112 | 106# 107ifeq ($(CONFIG_CPU_MIPSR2), y) 108CFLAGS_DSP = -DHAVE_AS_DSP 109 |
110# 111# Check if assembler supports DSP ASE 112# 113ifeq ($(call cc-option-yn,-mdsp), y) 114CFLAGS_DSP += -mdsp 115endif 116 117# 118# Check if assembler supports DSP ASE Rev2 119# 120ifeq ($(call cc-option-yn,-mdspr2), y) 121CFLAGS_DSP += -mdspr2 122endif 123 |
|
113CFLAGS_signal.o = $(CFLAGS_DSP) 114CFLAGS_signal32.o = $(CFLAGS_DSP) 115CFLAGS_process.o = $(CFLAGS_DSP) 116CFLAGS_branch.o = $(CFLAGS_DSP) 117CFLAGS_ptrace.o = $(CFLAGS_DSP) 118endif 119 120CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) | 124CFLAGS_signal.o = $(CFLAGS_DSP) 125CFLAGS_signal32.o = $(CFLAGS_DSP) 126CFLAGS_process.o = $(CFLAGS_DSP) 127CFLAGS_branch.o = $(CFLAGS_DSP) 128CFLAGS_ptrace.o = $(CFLAGS_DSP) 129endif 130 131CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) |