Makefile 4.05 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9
#
# Makefile for the kernel character device drivers.
#

#
# This file contains the font map for the default (hardware) font
#
FONTMAPFILE = cp437.uni

10
obj-y	 += mem.o tty_io.o n_tty.o tty_ioctl.o pty.o misc.o random.o
Linus Torvalds's avatar
Linus Torvalds committed
11 12 13 14 15

# All of the (potential) objects that export symbols.
# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.

export-objs     :=	busmouse.o console.o keyboard.o sysrq.o \
Russell King's avatar
Russell King committed
16
			misc.o pty.o random.o selection.o \
17 18
			sonypi.o tty_io.o tty_ioctl.o generic_serial.o rtc.o \
			ip2main.o
Linus Torvalds's avatar
Linus Torvalds committed
19

Christoph Hellwig's avatar
Christoph Hellwig committed
20 21
obj-$(CONFIG_VT) += vt.o vc_screen.o consolemap.o consolemap_deftbl.o selection.o keyboard.o
obj-$(CONFIG_HW_CONSOLE) += console.o defkeymap.o
Linus Torvalds's avatar
Linus Torvalds committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
obj-$(CONFIG_ROCKETPORT) += rocket.o
obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
obj-$(CONFIG_DIGI) += pcxx.o
obj-$(CONFIG_DIGIEPCA) += epca.o
obj-$(CONFIG_CYCLADES) += cyclades.o
obj-$(CONFIG_STALLION) += stallion.o
obj-$(CONFIG_ISTALLION) += istallion.o
obj-$(CONFIG_COMPUTONE) += ip2.o ip2main.o
obj-$(CONFIG_RISCOM8) += riscom8.o
obj-$(CONFIG_ISI) += isicom.o
obj-$(CONFIG_ESPSERIAL) += esp.o
obj-$(CONFIG_SYNCLINK) += synclink.o
37
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
Linus Torvalds's avatar
Linus Torvalds committed
38 39 40
obj-$(CONFIG_N_HDLC) += n_hdlc.o
obj-$(CONFIG_SPECIALIX) += specialix.o
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
Linus Torvalds's avatar
Linus Torvalds committed
41
obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
42
obj-$(CONFIG_SX) += sx.o generic_serial.o
43
obj-$(CONFIG_RIO) += rio/ generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
44 45 46 47 48
obj-$(CONFIG_SH_SCI) += sh-sci.o generic_serial.o
obj-$(CONFIG_SERIAL167) += serial167.o
obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o
obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o
obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o
Linus Torvalds's avatar
Linus Torvalds committed
49
obj-$(CONFIG_SERIAL_TX3912) += generic_serial.o serial_tx3912.o
50
obj-$(CONFIG_HVC_CONSOLE) += hvc_console.o
51
obj-$(CONFIG_RAW_DRIVER) += raw.o
Linus Torvalds's avatar
Linus Torvalds committed
52 53 54 55 56 57 58

obj-$(CONFIG_PRINTER) += lp.o

obj-$(CONFIG_BUSMOUSE) += busmouse.o
obj-$(CONFIG_DTLK) += dtlk.o
obj-$(CONFIG_R3964) += n_r3964.o
obj-$(CONFIG_APPLICOM) += applicom.o
Linus Torvalds's avatar
Linus Torvalds committed
59
obj-$(CONFIG_SONYPI) += sonypi.o
Linus Torvalds's avatar
Linus Torvalds committed
60 61
obj-$(CONFIG_ATARIMOUSE) += atarimouse.o
obj-$(CONFIG_RTC) += rtc.o
62
obj-$(CONFIG_GEN_RTC) += genrtc.o
Linus Torvalds's avatar
Linus Torvalds committed
63 64 65 66 67
obj-$(CONFIG_EFI_RTC) += efirtc.o
ifeq ($(CONFIG_PPC),)
  obj-$(CONFIG_NVRAM) += nvram.o
endif
obj-$(CONFIG_TOSHIBA) += toshiba.o
Linus Torvalds's avatar
Linus Torvalds committed
68
obj-$(CONFIG_I8K) += i8k.o
Linus Torvalds's avatar
Linus Torvalds committed
69 70 71
obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_INTEL_RNG) += i810_rng.o
obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
72
obj-$(CONFIG_FTAPE) += ftape/
Linus Torvalds's avatar
Linus Torvalds committed
73 74 75 76 77 78 79 80 81 82 83 84 85
obj-$(CONFIG_H8) += h8.o
obj-$(CONFIG_PPDEV) += ppdev.o
obj-$(CONFIG_DZ) += dz.o
obj-$(CONFIG_NWBUTTON) += nwbutton.o
obj-$(CONFIG_NWFLASH) += nwflash.o

# Only one watchdog can succeed. We probe the hardware watchdog
# drivers first, then the softdog driver.  This means if your hardware
# watchdog dies or is 'borrowed' for some reason the software watchdog
# still gives you some cover.

obj-$(CONFIG_PCWATCHDOG) += pcwd.o
obj-$(CONFIG_ACQUIRE_WDT) += acquirewdt.o
Linus Torvalds's avatar
Linus Torvalds committed
86
obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
87
obj-$(CONFIG_IB700_WDT) += ib700wdt.o
Linus Torvalds's avatar
Linus Torvalds committed
88 89 90 91 92 93 94
obj-$(CONFIG_MIXCOMWD) += mixcomwd.o
obj-$(CONFIG_60XX_WDT) += sbc60xxwdt.o
obj-$(CONFIG_WDT) += wdt.o
obj-$(CONFIG_WDTPCI) += wdt_pci.o
obj-$(CONFIG_21285_WATCHDOG) += wdt285.o
obj-$(CONFIG_977_WATCHDOG) += wdt977.o
obj-$(CONFIG_I810_TCO) += i810-tco.o
Linus Torvalds's avatar
Linus Torvalds committed
95
obj-$(CONFIG_MACHZ_WDT) += machzwd.o
Linus Torvalds's avatar
Linus Torvalds committed
96
obj-$(CONFIG_SH_WDT) += shwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
97
obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
98
obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
99
obj-$(CONFIG_MWAVE) += mwave/
100 101 102
obj-$(CONFIG_AGP) += agp/
obj-$(CONFIG_DRM) += drm/
obj-$(CONFIG_PCMCIA) += pcmcia/
103

104
include $(TOPDIR)/Rules.make
Linus Torvalds's avatar
Linus Torvalds committed
105

106 107
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
	$(call do_cmd,CONMK  $(echo_target),$(objtree)/scripts/conmakehash $< > $@)
Linus Torvalds's avatar
Linus Torvalds committed
108

109 110 111 112
$(obj)/defkeymap.o:  $(obj)/defkeymap.c

$(obj)/qtronixmap.o: $(obj)/qtronixmap.c

113 114 115 116
# Uncomment if you're changing the keymap and have an appropriate
# loadkeys version for the map. By default, we'll use the shipped
# versions.
# GENERATE_KEYMAP := 1
Linus Torvalds's avatar
Linus Torvalds committed
117

118 119 120
ifdef GENERATE_KEYMAP

$(obj)/defkeymap.c $(obj)/qtronixmap.c: $(obj)/%.c: $(src)/%.map
121
	loadkeys --mktable $< > $@.tmp
122 123 124
	sed -e 's/^static *//' $@.tmp > $@
	rm $@.tmp

125
endif