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

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

O_TARGET := char.o

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

# 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 \
			misc.o pty.o random.o selection.o serial.o \
19 20
			sonypi.o tty_io.o tty_ioctl.o generic_serial.o rtc.o \
			ip2main.o
Linus Torvalds's avatar
Linus Torvalds committed
21

Vojtech Pavlik's avatar
Vojtech Pavlik committed
22
mod-subdirs	:=	ftape drm pcmcia
Linus Torvalds's avatar
Linus Torvalds committed
23 24 25 26 27 28 29 30 31 32 33 34 35

KEYMAP   =defkeymap.o
KEYBD    =pc_keyb.o
CONSOLE  =console.o
SERIAL   =serial.o

ifeq ($(ARCH),s390)
  KEYMAP   =
  KEYBD    =
  CONSOLE  =
  SERIAL   =
endif

Linus Torvalds's avatar
Linus Torvalds committed
36 37 38 39 40 41
ifeq ($(ARCH),mips)
  ifneq ($(CONFIG_PC_KEYB),y)
    KEYBD    =
  endif
endif

Linus Torvalds's avatar
Linus Torvalds committed
42 43 44 45 46 47 48
ifeq ($(ARCH),s390x)
  KEYMAP   =
  KEYBD    =
  CONSOLE  =
  SERIAL   =
endif

Linus Torvalds's avatar
Linus Torvalds committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
ifeq ($(ARCH),m68k)
   ifdef CONFIG_AMIGA
      KEYBD = amikeyb.o
   else
      KEYBD =
   endif
   SERIAL   =
endif

ifeq ($(ARCH),arm)
  ifneq ($(CONFIG_PC_KEYMAP),y)
    KEYMAP   =
  endif
  ifneq ($(CONFIG_PC_KEYB),y)
    KEYBD    =
  endif
endif

ifeq ($(ARCH),sh)
  KEYMAP   =
  KEYBD    =
  CONSOLE  =
  ifeq ($(CONFIG_SH_HP600),y)
  KEYMAP   = defkeymap.o
  KEYBD    = scan_keyb.o hp600_keyb.o
  CONSOLE  = console.o
  endif
Linus Torvalds's avatar
Linus Torvalds committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
  ifeq ($(CONFIG_SH_DMIDA),y)
  # DMIDA does not connect the HD64465 PS/2 keyboard port
  # but we allow for USB keyboards to be plugged in.
  KEYMAP   = defkeymap.o
  KEYBD    = # hd64465_keyb.o pc_keyb.o
  CONSOLE  = console.o
  endif
  ifeq ($(CONFIG_SH_EC3104),y)
  KEYMAP   = defkeymap.o
  KEYBD    = ec3104_keyb.o
  CONSOLE  = console.o
  endif
  ifeq ($(CONFIG_SH_DREAMCAST),y)
  KEYMAP   = defkeymap.o
  KEYBD    =
  CONSOLE  = console.o
  endif
Linus Torvalds's avatar
Linus Torvalds committed
93 94 95
endif

ifeq ($(CONFIG_DECSTATION),y)
Linus Torvalds's avatar
Linus Torvalds committed
96
  KEYMAP   =
Linus Torvalds's avatar
Linus Torvalds committed
97
  KEYBD    =
Linus Torvalds's avatar
Linus Torvalds committed
98
  SERIAL   = decserial.o
Linus Torvalds's avatar
Linus Torvalds committed
99 100 101 102 103 104 105
endif

ifeq ($(CONFIG_BAGET_MIPS),y)
  KEYBD    =
  SERIAL   =
endif

Linus Torvalds's avatar
Linus Torvalds committed
106 107 108 109
ifeq ($(CONFIG_NINO),y)
  SERIAL   =
endif

Linus Torvalds's avatar
Linus Torvalds committed
110 111 112 113
ifneq ($(CONFIG_SUN_SERIAL),)
  SERIAL   =
endif

Linus Torvalds's avatar
Linus Torvalds committed
114 115 116 117
ifeq ($(CONFIG_QTRONIX_KEYBOARD),y)
  KEYBD    = qtronix.o
  KEYMAP   = qtronixmap.o
endif
Linus Torvalds's avatar
Linus Torvalds committed
118 119 120

obj-$(CONFIG_VT) += vt.o vc_screen.o consolemap.o consolemap_deftbl.o $(CONSOLE) selection.o
obj-$(CONFIG_SERIAL) += $(SERIAL)
Linus Torvalds's avatar
Linus Torvalds committed
121
obj-$(CONFIG_SERIAL_ACPI) += acpi_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
obj-$(CONFIG_SERIAL_21285) += serial_21285.o
obj-$(CONFIG_SERIAL_SA1100) += serial_sa1100.o
obj-$(CONFIG_SERIAL_AMBA) += serial_amba.o

ifndef CONFIG_SUN_KEYBOARD
  obj-$(CONFIG_VT) += keyboard.o $(KEYMAP) $(KEYBD)
else
  obj-$(CONFIG_PCI) += keyboard.o $(KEYMAP)
endif

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
147
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
Linus Torvalds's avatar
Linus Torvalds committed
148 149 150
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
151
obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
152
obj-$(CONFIG_SX) += sx.o generic_serial.o
153
obj-$(CONFIG_RIO) += rio/ generic_serial.o
Linus Torvalds's avatar
Linus Torvalds committed
154 155 156 157 158
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
159
obj-$(CONFIG_SERIAL_TX3912) += generic_serial.o serial_tx3912.o
Linus Torvalds's avatar
Linus Torvalds committed
160 161 162 163 164 165 166 167 168

obj-$(CONFIG_ATIXL_BUSMOUSE) += atixlmouse.o
obj-$(CONFIG_LOGIBUSMOUSE) += logibusmouse.o
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
169
obj-$(CONFIG_SONYPI) += sonypi.o
Linus Torvalds's avatar
Linus Torvalds committed
170 171 172 173 174 175 176 177 178 179 180 181
obj-$(CONFIG_MS_BUSMOUSE) += msbusmouse.o
obj-$(CONFIG_82C710_MOUSE) += qpmouse.o
obj-$(CONFIG_AMIGAMOUSE) += amigamouse.o
obj-$(CONFIG_ATARIMOUSE) += atarimouse.o
obj-$(CONFIG_ADBMOUSE) += adbmouse.o
obj-$(CONFIG_PC110_PAD) += pc110pad.o
obj-$(CONFIG_RTC) += rtc.o
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
182
obj-$(CONFIG_I8K) += i8k.o
Linus Torvalds's avatar
Linus Torvalds committed
183 184 185 186 187 188 189
obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_INTEL_RNG) += i810_rng.o

obj-$(CONFIG_QIC02_TAPE) += tpqic02.o

subdir-$(CONFIG_FTAPE) += ftape
ifeq ($(CONFIG_FTAPE),y)
190
  obj-y       += ftape/ftape.o
Linus Torvalds's avatar
Linus Torvalds committed
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
endif

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
206
obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
207
obj-$(CONFIG_IB700_WDT) += ib700wdt.o
Linus Torvalds's avatar
Linus Torvalds committed
208 209 210 211 212 213 214
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
215
obj-$(CONFIG_MACHZ_WDT) += machzwd.o
Linus Torvalds's avatar
Linus Torvalds committed
216
obj-$(CONFIG_SH_WDT) += shwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
217
obj-$(CONFIG_EUROTECH_WDT) += eurotechwdt.o
Linus Torvalds's avatar
Linus Torvalds committed
218 219
obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o

220
obj-$(CONFIG_MWAVE) += mwave/
Linus Torvalds's avatar
Linus Torvalds committed
221

222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
subdir-$(CONFIG_AGP) += agp
ifeq ($(CONFIG_AGP),y)
  obj-y += agp/agp.o
endif

subdir-$(CONFIG_DRM) += drm
ifeq ($(CONFIG_DRM),y)
  obj-y += drm/drm.o
endif

subdir-$(CONFIG_PCMCIA) += pcmcia
ifeq ($(CONFIG_PCMCIA),y)
  obj-y += pcmcia/pcmcia_char.o
endif

Linus Torvalds's avatar
Linus Torvalds committed
237 238 239 240 241 242 243 244 245 246 247 248
include $(TOPDIR)/Rules.make

fastdep:

conmakehash: conmakehash.c
	$(HOSTCC) $(HOSTCFLAGS) -o conmakehash conmakehash.c

consolemap_deftbl.c: $(FONTMAPFILE) conmakehash
	./conmakehash $(FONTMAPFILE) > consolemap_deftbl.c

consolemap_deftbl.o: consolemap_deftbl.c $(TOPDIR)/include/linux/types.h

Linus Torvalds's avatar
Linus Torvalds committed
249 250
.DELETE_ON_ERROR:

Linus Torvalds's avatar
Linus Torvalds committed
251
defkeymap.c: defkeymap.map
Linus Torvalds's avatar
Linus Torvalds committed
252
	set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
Linus Torvalds's avatar
Linus Torvalds committed
253 254 255

qtronixmap.c: qtronixmap.map
	set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@