Makefile 4.3 KB
Newer Older
L
Linus Torvalds 已提交
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

A
Alan Cox 已提交
10
obj-y	 += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o tty_buffer.o tty_port.o
L
Linus Torvalds 已提交
11 12 13 14

obj-$(CONFIG_LEGACY_PTYS)	+= pty.o
obj-$(CONFIG_UNIX98_PTYS)	+= pty.o
obj-y				+= misc.o
15 16
obj-$(CONFIG_VT)		+= vt_ioctl.o vc_screen.o selection.o keyboard.o
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
L
Linus Torvalds 已提交
17
obj-$(CONFIG_HW_CONSOLE)	+= vt.o defkeymap.o
M
Miloslav Trmac 已提交
18
obj-$(CONFIG_AUDIT)		+= tty_audit.o
L
Linus Torvalds 已提交
19 20 21 22 23 24 25 26 27 28
obj-$(CONFIG_MAGIC_SYSRQ)	+= sysrq.o
obj-$(CONFIG_ESPSERIAL)		+= esp.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
obj-$(CONFIG_ROCKETPORT)	+= rocket.o
obj-$(CONFIG_SERIAL167)		+= serial167.o
obj-$(CONFIG_CYCLADES)		+= cyclades.o
obj-$(CONFIG_STALLION)		+= stallion.o
obj-$(CONFIG_ISTALLION)		+= istallion.o
F
Frank Seidel 已提交
29
obj-$(CONFIG_NOZOMI)		+= nozomi.o
L
Linus Torvalds 已提交
30 31 32 33 34 35
obj-$(CONFIG_DIGIEPCA)		+= epca.o
obj-$(CONFIG_SPECIALIX)		+= specialix.o
obj-$(CONFIG_MOXA_INTELLIO)	+= moxa.o
obj-$(CONFIG_A2232)		+= ser_a2232.o generic_serial.o
obj-$(CONFIG_ATARI_DSP56K)	+= dsp56k.o
obj-$(CONFIG_MOXA_SMARTIO)	+= mxser.o
36
obj-$(CONFIG_COMPUTONE)		+= ip2/
L
Linus Torvalds 已提交
37 38 39 40
obj-$(CONFIG_RISCOM8)		+= riscom8.o
obj-$(CONFIG_ISI)		+= isicom.o
obj-$(CONFIG_SYNCLINK)		+= synclink.o
obj-$(CONFIG_SYNCLINKMP)	+= synclinkmp.o
P
Paul Fulghum 已提交
41
obj-$(CONFIG_SYNCLINK_GT)	+= synclink_gt.o
L
Linus Torvalds 已提交
42 43 44 45
obj-$(CONFIG_N_HDLC)		+= n_hdlc.o
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
obj-$(CONFIG_SX)		+= sx.o generic_serial.o
obj-$(CONFIG_RIO)		+= rio/ generic_serial.o
46
obj-$(CONFIG_HVC_CONSOLE)	+= hvc_vio.o hvsi.o
47
obj-$(CONFIG_HVC_ISERIES)	+= hvc_iseries.o
48
obj-$(CONFIG_HVC_RTAS)		+= hvc_rtas.o
49
obj-$(CONFIG_HVC_BEAT)		+= hvc_beat.o
50
obj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
51
obj-$(CONFIG_HVC_IRQ)		+= hvc_irq.o
52
obj-$(CONFIG_HVC_XEN)		+= hvc_xen.o
53
obj-$(CONFIG_HVC_IUCV)		+= hvc_iucv.o
R
Rusty Russell 已提交
54
obj-$(CONFIG_VIRTIO_CONSOLE)	+= virtio_console.o
L
Linus Torvalds 已提交
55
obj-$(CONFIG_RAW_DRIVER)	+= raw.o
56
obj-$(CONFIG_SGI_SNSC)		+= snsc.o snsc_event.o
J
Jes Sorensen 已提交
57
obj-$(CONFIG_MSPEC)		+= mspec.o
L
Linus Torvalds 已提交
58 59 60
obj-$(CONFIG_MMTIMER)		+= mmtimer.o
obj-$(CONFIG_VIOTAPE)		+= viotape.o
obj-$(CONFIG_HVCS)		+= hvcs.o
61
obj-$(CONFIG_IBM_BSR)		+= bsr.o
62
obj-$(CONFIG_SGI_MBCS)		+= mbcs.o
63
obj-$(CONFIG_BRIQ_PANEL)	+= briq_panel.o
64
obj-$(CONFIG_BFIN_OTP)		+= bfin-otp.o
L
Linus Torvalds 已提交
65

J
Jim Cromie 已提交
66 67
obj-$(CONFIG_PRINTER)		+= lp.o

68 69
obj-$(CONFIG_APM_EMULATION)	+= apm-emulation.o

J
Jim Cromie 已提交
70 71 72 73 74 75 76 77 78
obj-$(CONFIG_DTLK)		+= dtlk.o
obj-$(CONFIG_R3964)		+= n_r3964.o
obj-$(CONFIG_APPLICOM)		+= applicom.o
obj-$(CONFIG_SONYPI)		+= sonypi.o
obj-$(CONFIG_RTC)		+= rtc.o
obj-$(CONFIG_HPET)		+= hpet.o
obj-$(CONFIG_GEN_RTC)		+= genrtc.o
obj-$(CONFIG_EFI_RTC)		+= efirtc.o
obj-$(CONFIG_DS1302)		+= ds1302.o
79
obj-$(CONFIG_XILINX_HWICAP)	+= xilinx_hwicap/
L
Linus Torvalds 已提交
80
ifeq ($(CONFIG_GENERIC_NVRAM),y)
J
Jim Cromie 已提交
81
  obj-$(CONFIG_NVRAM)	+= generic_nvram.o
L
Linus Torvalds 已提交
82
else
J
Jim Cromie 已提交
83
  obj-$(CONFIG_NVRAM)	+= nvram.o
L
Linus Torvalds 已提交
84
endif
J
Jim Cromie 已提交
85 86 87
obj-$(CONFIG_TOSHIBA)		+= toshiba.o
obj-$(CONFIG_I8K)		+= i8k.o
obj-$(CONFIG_DS1620)		+= ds1620.o
88
obj-$(CONFIG_HW_RANDOM)		+= hw_random/
J
Jim Cromie 已提交
89 90 91
obj-$(CONFIG_PPDEV)		+= ppdev.o
obj-$(CONFIG_NWBUTTON)		+= nwbutton.o
obj-$(CONFIG_NWFLASH)		+= nwflash.o
92 93 94
obj-$(CONFIG_SCx200_GPIO)	+= scx200_gpio.o
obj-$(CONFIG_PC8736x_GPIO)	+= pc8736x_gpio.o
obj-$(CONFIG_NSC_GPIO)		+= nsc_gpio.o
J
Jim Cromie 已提交
95 96
obj-$(CONFIG_CS5535_GPIO)	+= cs5535_gpio.o
obj-$(CONFIG_GPIO_VR41XX)	+= vr41xx_giu.o
Y
Yoichi Yuasa 已提交
97
obj-$(CONFIG_GPIO_TB0219)	+= tb0219.o
J
Jim Cromie 已提交
98 99 100 101 102 103 104 105 106 107
obj-$(CONFIG_TELCLOCK)		+= tlclk.o

obj-$(CONFIG_MWAVE)		+= mwave/
obj-$(CONFIG_AGP)		+= agp/
obj-$(CONFIG_PCMCIA)		+= pcmcia/
obj-$(CONFIG_IPMI_HANDLER)	+= ipmi/

obj-$(CONFIG_HANGCHECK_TIMER)	+= hangcheck-timer.o
obj-$(CONFIG_TCG_TPM)		+= tpm/

108 109
obj-$(CONFIG_PS3_FLASH)		+= ps3flash.o

110 111 112
obj-$(CONFIG_JS_RTC)		+= js-rtc.o
js-rtc-y = rtc.o

L
Linus Torvalds 已提交
113
# Files generated that shall be removed upon make clean
114
clean-files := consolemap_deftbl.c defkeymap.c
L
Linus Torvalds 已提交
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130

quiet_cmd_conmk = CONMK   $@
      cmd_conmk = scripts/conmakehash $< > $@

$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
	$(call cmd,conmk)

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

# 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

ifdef GENERATE_KEYMAP

131
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
L
Linus Torvalds 已提交
132 133 134 135 136
	loadkeys --mktable $< > $@.tmp
	sed -e 's/^static *//' $@.tmp > $@
	rm $@.tmp

endif