Makefile 4.04 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

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

Kai Germaschewski's avatar
Kai Germaschewski committed
15
export-objs     :=	busmouse.o console.o generic_serial.o ip2main.o \
16
			ite_gpio.o misc.o nvram.o random.o rtc.o \
Kai Germaschewski's avatar
Kai Germaschewski committed
17
			selection.o sonypi.o sysrq.o tty_io.o tty_ioctl.o
Linus Torvalds's avatar
Linus Torvalds committed
18

Christoph Hellwig's avatar
Christoph Hellwig committed
19 20
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
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
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
36
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
Linus Torvalds's avatar
Linus Torvalds committed
37 38 39
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
40
obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
41
obj-$(CONFIG_SX) += sx.o generic_serial.o
42
obj-$(CONFIG_RIO) += rio/ generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
43 44 45 46 47
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
48
obj-$(CONFIG_SERIAL_TX3912) += generic_serial.o serial_tx3912.o
49
obj-$(CONFIG_HVC_CONSOLE) += hvc_console.o
50
obj-$(CONFIG_RAW_DRIVER) += raw.o
Linus Torvalds's avatar
Linus Torvalds committed
51 52 53 54 55 56 57

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
58
obj-$(CONFIG_SONYPI) += sonypi.o
Linus Torvalds's avatar
Linus Torvalds committed
59 60
obj-$(CONFIG_ATARIMOUSE) += atarimouse.o
obj-$(CONFIG_RTC) += rtc.o
61
obj-$(CONFIG_GEN_RTC) += genrtc.o
Linus Torvalds's avatar
Linus Torvalds committed
62 63 64 65 66
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
67
obj-$(CONFIG_I8K) += i8k.o
Linus Torvalds's avatar
Linus Torvalds committed
68 69 70
obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_INTEL_RNG) += i810_rng.o
obj-$(CONFIG_QIC02_TAPE) += tpqic02.o
71
obj-$(CONFIG_FTAPE) += ftape/
Linus Torvalds's avatar
Linus Torvalds committed
72 73 74 75 76 77 78 79 80 81 82 83 84
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
85
obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
86
obj-$(CONFIG_IB700_WDT) += ib700wdt.o
Linus Torvalds's avatar
Linus Torvalds committed
87 88 89 90 91 92 93
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
94
obj-$(CONFIG_MACHZ_WDT) += machzwd.o
Linus Torvalds's avatar
Linus Torvalds committed
95
obj-$(CONFIG_SH_WDT) += shwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
96
obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
97
obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
98
obj-$(CONFIG_MWAVE) += mwave/
99 100 101
obj-$(CONFIG_AGP) += agp/
obj-$(CONFIG_DRM) += drm/
obj-$(CONFIG_PCMCIA) += pcmcia/
102

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

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

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

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

112 113 114 115
# 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
116

117 118 119
ifdef GENERATE_KEYMAP

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

124
endif