summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-13 10:14:24 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-18 21:40:49 -0400
commitcf8d943260528b669c9f0fa6fb4f1c17cab0ecda (patch)
tree51fe7ff834db26fac9d455cb464f890ed0dfb8dc /arch/blackfin/mach-common/Makefile
parentabea0bc3d990e5d80f6112985cecee68922a08a3 (diff)
downloadblackbird-op-linux-cf8d943260528b669c9f0fa6fb4f1c17cab0ecda.tar.gz
blackbird-op-linux-cf8d943260528b669c9f0fa6fb4f1c17cab0ecda.zip
Blackfin: only build irqpanic.c when needed
The irq_panic function is only used when CONFIG_DEBUG_ICACHE_CHECK is enabled, so move the conditional build to the Makefile rather than wrapping all of the contents of the file. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common/Makefile')
-rw-r--r--arch/blackfin/mach-common/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/Makefile b/arch/blackfin/mach-common/Makefile
index 1f3228ed713f..dd8b2dc97f56 100644
--- a/arch/blackfin/mach-common/Makefile
+++ b/arch/blackfin/mach-common/Makefile
@@ -4,7 +4,7 @@
obj-y := \
cache.o cache-c.o entry.o head.o \
- interrupt.o irqpanic.o arch_checks.o ints-priority.o
+ interrupt.o arch_checks.o ints-priority.o
obj-$(CONFIG_BFIN_ICACHE_LOCK) += lock.o
obj-$(CONFIG_PM) += pm.o dpmc_modes.o
@@ -12,3 +12,4 @@ obj-$(CONFIG_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_CPU_VOLTAGE) += dpmc.o
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_BFIN_KERNEL_CLOCK) += clocks-init.o
+obj-$(CONFIG_DEBUG_ICACHE_CHECK) += irqpanic.o
OpenPOWER on IntegriCloud