summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/Makefile_64
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-10-20 13:04:06 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-10-20 13:04:06 +0900
commitebf9c118df678de111eda45709081806f71710cc (patch)
treea4e48873a8e26c809661b5929dd54e1a6867c28c /arch/sh/kernel/Makefile_64
parent7639a4541f7e7abb1295ff8ab39cc2f5842239ae (diff)
sh: Only build in gpio.o when CONFIG_GENERIC_GPIO is selected.
The pinmux management is tied in to this code, while it is presently only used by platforms that select GENERIC_GPIO. The asm/gpio.h definitions are not referenced when GENERIC_GPIO is disabled, resulting in a build failure for all of the platforms that don't select it. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/Makefile_64')
-rw-r--r--arch/sh/kernel/Makefile_643
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/kernel/Makefile_64 b/arch/sh/kernel/Makefile_64
index 2a7a5e694a1..c97660b2b48 100644
--- a/arch/sh/kernel/Makefile_64
+++ b/arch/sh/kernel/Makefile_64
@@ -1,7 +1,7 @@
extra-y := head_64.o init_task.o vmlinux.lds
obj-y := debugtraps.o io.o io_generic.o irq.o machvec.o process_64.o \
- ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o gpio.o \
+ ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o \
syscalls_64.o time_64.o topology.o traps.o traps_64.o
obj-y += cpu/ timers/
@@ -18,5 +18,6 @@ obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
obj-$(CONFIG_PM) += pm.o
obj-$(CONFIG_STACKTRACE) += stacktrace.o
obj-$(CONFIG_IO_TRAPPED) += io_trapped.o
+obj-$(CONFIG_GENERIC_GPIO) += gpio.o
EXTRA_CFLAGS += -Werror