xref: /openbmc/linux/drivers/char/Makefile (revision 24b4b67d)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the kernel character device drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
51da177e4SLinus Torvalds#
61da177e4SLinus Torvalds# This file contains the font map for the default (hardware) font
71da177e4SLinus Torvalds#
81da177e4SLinus TorvaldsFONTMAPFILE = cp437.uni
91da177e4SLinus Torvalds
109e48565dSAlan Coxobj-y	 += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o tty_buffer.o tty_port.o
111da177e4SLinus Torvalds
12b07471faSArnd Bergmannobj-y				+= tty_mutex.o
131da177e4SLinus Torvaldsobj-$(CONFIG_LEGACY_PTYS)	+= pty.o
141da177e4SLinus Torvaldsobj-$(CONFIG_UNIX98_PTYS)	+= pty.o
1524b4b67dSSamo Pogacnikobj-$(CONFIG_TTY_PRINTK)	+= ttyprintk.o
161da177e4SLinus Torvaldsobj-y				+= misc.o
17a29ccf6fSDavid Woodhouseobj-$(CONFIG_VT)		+= vt_ioctl.o vc_screen.o selection.o keyboard.o
180b914218SMike Frysingerobj-$(CONFIG_BFIN_JTAG_COMM)	+= bfin_jtag_comm.o
19a29ccf6fSDavid Woodhouseobj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
201da177e4SLinus Torvaldsobj-$(CONFIG_HW_CONSOLE)	+= vt.o defkeymap.o
21522ed776SMiloslav Trmacobj-$(CONFIG_AUDIT)		+= tty_audit.o
221da177e4SLinus Torvaldsobj-$(CONFIG_MAGIC_SYSRQ)	+= sysrq.o
231da177e4SLinus Torvaldsobj-$(CONFIG_MVME147_SCC)	+= generic_serial.o vme_scc.o
241da177e4SLinus Torvaldsobj-$(CONFIG_MVME162_SCC)	+= generic_serial.o vme_scc.o
251da177e4SLinus Torvaldsobj-$(CONFIG_BVME6000_SCC)	+= generic_serial.o vme_scc.o
261da177e4SLinus Torvaldsobj-$(CONFIG_ROCKETPORT)	+= rocket.o
271da177e4SLinus Torvaldsobj-$(CONFIG_SERIAL167)		+= serial167.o
281da177e4SLinus Torvaldsobj-$(CONFIG_CYCLADES)		+= cyclades.o
291da177e4SLinus Torvaldsobj-$(CONFIG_STALLION)		+= stallion.o
301da177e4SLinus Torvaldsobj-$(CONFIG_ISTALLION)		+= istallion.o
3120fd1e3bSFrank Seidelobj-$(CONFIG_NOZOMI)		+= nozomi.o
321da177e4SLinus Torvaldsobj-$(CONFIG_DIGIEPCA)		+= epca.o
331da177e4SLinus Torvaldsobj-$(CONFIG_SPECIALIX)		+= specialix.o
341da177e4SLinus Torvaldsobj-$(CONFIG_MOXA_INTELLIO)	+= moxa.o
351da177e4SLinus Torvaldsobj-$(CONFIG_A2232)		+= ser_a2232.o generic_serial.o
361da177e4SLinus Torvaldsobj-$(CONFIG_ATARI_DSP56K)	+= dsp56k.o
371da177e4SLinus Torvaldsobj-$(CONFIG_MOXA_SMARTIO)	+= mxser.o
389c4b562aSAdrian Bunkobj-$(CONFIG_COMPUTONE)		+= ip2/
391da177e4SLinus Torvaldsobj-$(CONFIG_RISCOM8)		+= riscom8.o
401da177e4SLinus Torvaldsobj-$(CONFIG_ISI)		+= isicom.o
411da177e4SLinus Torvaldsobj-$(CONFIG_SYNCLINK)		+= synclink.o
421da177e4SLinus Torvaldsobj-$(CONFIG_SYNCLINKMP)	+= synclinkmp.o
43705b6c7bSPaul Fulghumobj-$(CONFIG_SYNCLINK_GT)	+= synclink_gt.o
441da177e4SLinus Torvaldsobj-$(CONFIG_N_HDLC)		+= n_hdlc.o
45e1eaea46SAlan Coxobj-$(CONFIG_N_GSM)		+= n_gsm.o
461da177e4SLinus Torvaldsobj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
471da177e4SLinus Torvaldsobj-$(CONFIG_SX)		+= sx.o generic_serial.o
481da177e4SLinus Torvaldsobj-$(CONFIG_RIO)		+= rio/ generic_serial.o
4945d607edSRyan S. Arnoldobj-$(CONFIG_HVC_CONSOLE)	+= hvc_vio.o hvsi.o
508bff05b0SStephen Rothwellobj-$(CONFIG_HVC_ISERIES)	+= hvc_iseries.o
51f4d1749eSArnd Bergmannobj-$(CONFIG_HVC_RTAS)		+= hvc_rtas.o
52867e359bSChris Metcalfobj-$(CONFIG_HVC_TILE)		+= hvc_tile.o
533cdc20e5SIshizaki Kouobj-$(CONFIG_HVC_BEAT)		+= hvc_beat.o
54938473b2SMilton Millerobj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
55611e097dSChristian Borntraegerobj-$(CONFIG_HVC_IRQ)		+= hvc_irq.o
56b536b4b9SJeremy Fitzhardingeobj-$(CONFIG_HVC_XEN)		+= hvc_xen.o
5744a01d5bSHendrik Bruecknerobj-$(CONFIG_HVC_IUCV)		+= hvc_iucv.o
58d5e54913SDavid Gibsonobj-$(CONFIG_HVC_UDBG)		+= hvc_udbg.o
5931610434SRusty Russellobj-$(CONFIG_VIRTIO_CONSOLE)	+= virtio_console.o
601da177e4SLinus Torvaldsobj-$(CONFIG_RAW_DRIVER)	+= raw.o
6167639debSGreg Howardobj-$(CONFIG_SGI_SNSC)		+= snsc.o snsc_event.o
6217a3b050SJes Sorensenobj-$(CONFIG_MSPEC)		+= mspec.o
631da177e4SLinus Torvaldsobj-$(CONFIG_MMTIMER)		+= mmtimer.o
64fbd8ae10SDimitri Sivanichobj-$(CONFIG_UV_MMTIMER)	+= uv_mmtimer.o
651da177e4SLinus Torvaldsobj-$(CONFIG_VIOTAPE)		+= viotape.o
661da177e4SLinus Torvaldsobj-$(CONFIG_HVCS)		+= hvcs.o
67fe9e8d53SSonny Raoobj-$(CONFIG_IBM_BSR)		+= bsr.o
68e1e19747SBruce Losureobj-$(CONFIG_SGI_MBCS)		+= mbcs.o
69a45b8395SBenjamin Herrenschmidtobj-$(CONFIG_BRIQ_PANEL)	+= briq_panel.o
702dc63a84SMike Frysingerobj-$(CONFIG_BFIN_OTP)		+= bfin-otp.o
711da177e4SLinus Torvalds
721da177e4SLinus Torvaldsobj-$(CONFIG_PRINTER)		+= lp.o
731da177e4SLinus Torvalds
747726942fSRalf Baechleobj-$(CONFIG_APM_EMULATION)	+= apm-emulation.o
757726942fSRalf Baechle
761da177e4SLinus Torvaldsobj-$(CONFIG_DTLK)		+= dtlk.o
771da177e4SLinus Torvaldsobj-$(CONFIG_R3964)		+= n_r3964.o
781da177e4SLinus Torvaldsobj-$(CONFIG_APPLICOM)		+= applicom.o
791da177e4SLinus Torvaldsobj-$(CONFIG_SONYPI)		+= sonypi.o
801da177e4SLinus Torvaldsobj-$(CONFIG_RTC)		+= rtc.o
811da177e4SLinus Torvaldsobj-$(CONFIG_HPET)		+= hpet.o
821da177e4SLinus Torvaldsobj-$(CONFIG_GEN_RTC)		+= genrtc.o
831da177e4SLinus Torvaldsobj-$(CONFIG_EFI_RTC)		+= efirtc.o
841da177e4SLinus Torvaldsobj-$(CONFIG_DS1302)		+= ds1302.o
85ef141a0bSStephen Neuendorfferobj-$(CONFIG_XILINX_HWICAP)	+= xilinx_hwicap/
861da177e4SLinus Torvaldsifeq ($(CONFIG_GENERIC_NVRAM),y)
871da177e4SLinus Torvalds  obj-$(CONFIG_NVRAM)	+= generic_nvram.o
881da177e4SLinus Torvaldselse
891da177e4SLinus Torvalds  obj-$(CONFIG_NVRAM)	+= nvram.o
901da177e4SLinus Torvaldsendif
911da177e4SLinus Torvaldsobj-$(CONFIG_TOSHIBA)		+= toshiba.o
921da177e4SLinus Torvaldsobj-$(CONFIG_I8K)		+= i8k.o
931da177e4SLinus Torvaldsobj-$(CONFIG_DS1620)		+= ds1620.o
94844dd05fSMichael Bueschobj-$(CONFIG_HW_RANDOM)		+= hw_random/
951da177e4SLinus Torvaldsobj-$(CONFIG_PPDEV)		+= ppdev.o
961da177e4SLinus Torvaldsobj-$(CONFIG_NWBUTTON)		+= nwbutton.o
971da177e4SLinus Torvaldsobj-$(CONFIG_NWFLASH)		+= nwflash.o
987a8e2a5eSJim Cromieobj-$(CONFIG_SCx200_GPIO)	+= scx200_gpio.o
997a8e2a5eSJim Cromieobj-$(CONFIG_PC8736x_GPIO)	+= pc8736x_gpio.o
1007a8e2a5eSJim Cromieobj-$(CONFIG_NSC_GPIO)		+= nsc_gpio.o
101e329113cSBen Gardnerobj-$(CONFIG_CS5535_GPIO)	+= cs5535_gpio.o
10209762516SYoichi Yuasaobj-$(CONFIG_GPIO_TB0219)	+= tb0219.o
1031a80ba88SMark Grossobj-$(CONFIG_TELCLOCK)		+= tlclk.o
1041da177e4SLinus Torvalds
1051da177e4SLinus Torvaldsobj-$(CONFIG_MWAVE)		+= mwave/
1061da177e4SLinus Torvaldsobj-$(CONFIG_AGP)		+= agp/
1071da177e4SLinus Torvaldsobj-$(CONFIG_PCMCIA)		+= pcmcia/
1081da177e4SLinus Torvaldsobj-$(CONFIG_IPMI_HANDLER)	+= ipmi/
1091da177e4SLinus Torvalds
1101da177e4SLinus Torvaldsobj-$(CONFIG_HANGCHECK_TIMER)	+= hangcheck-timer.o
1111da177e4SLinus Torvaldsobj-$(CONFIG_TCG_TPM)		+= tpm/
11253813158SJim Cromie
113f9652635SGeert Uytterhoevenobj-$(CONFIG_PS3_FLASH)		+= ps3flash.o
11456d611a0SMarco Stornelliobj-$(CONFIG_RAMOOPS)		+= ramoops.o
115f9652635SGeert Uytterhoeven
1162240598cSAl Viroobj-$(CONFIG_JS_RTC)		+= js-rtc.o
1172240598cSAl Virojs-rtc-y = rtc.o
1182240598cSAl Viro
1191da177e4SLinus Torvalds# Files generated that shall be removed upon make clean
120af8b1287SYoichi Yuasaclean-files := consolemap_deftbl.c defkeymap.c
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvaldsquiet_cmd_conmk = CONMK   $@
1231da177e4SLinus Torvalds      cmd_conmk = scripts/conmakehash $< > $@
1241da177e4SLinus Torvalds
1251da177e4SLinus Torvalds$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
1261da177e4SLinus Torvalds	$(call cmd,conmk)
1271da177e4SLinus Torvalds
1281da177e4SLinus Torvalds$(obj)/defkeymap.o:  $(obj)/defkeymap.c
1291da177e4SLinus Torvalds
1301da177e4SLinus Torvalds# Uncomment if you're changing the keymap and have an appropriate
1311da177e4SLinus Torvalds# loadkeys version for the map. By default, we'll use the shipped
1321da177e4SLinus Torvalds# versions.
1331da177e4SLinus Torvalds# GENERATE_KEYMAP := 1
1341da177e4SLinus Torvalds
1351da177e4SLinus Torvaldsifdef GENERATE_KEYMAP
1361da177e4SLinus Torvalds
137e2a57a81SMaarten Bressers$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
1381da177e4SLinus Torvalds	loadkeys --mktable $< > $@.tmp
1391da177e4SLinus Torvalds	sed -e 's/^static *//' $@.tmp > $@
1401da177e4SLinus Torvalds	rm $@.tmp
1411da177e4SLinus Torvalds
1421da177e4SLinus Torvaldsendif
143