xref: /openbmc/linux/drivers/char/Makefile (revision 7a8e2a5e)
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
101da177e4SLinus Torvaldsobj-y	 += mem.o random.o tty_io.o n_tty.o tty_ioctl.o
111da177e4SLinus Torvalds
121da177e4SLinus Torvaldsobj-$(CONFIG_LEGACY_PTYS)	+= pty.o
131da177e4SLinus Torvaldsobj-$(CONFIG_UNIX98_PTYS)	+= pty.o
141da177e4SLinus Torvaldsobj-y				+= misc.o
151da177e4SLinus Torvaldsobj-$(CONFIG_VT)		+= vt_ioctl.o vc_screen.o consolemap.o \
161da177e4SLinus Torvalds				   consolemap_deftbl.o selection.o keyboard.o
171da177e4SLinus Torvaldsobj-$(CONFIG_HW_CONSOLE)	+= vt.o defkeymap.o
181da177e4SLinus Torvaldsobj-$(CONFIG_MAGIC_SYSRQ)	+= sysrq.o
191da177e4SLinus Torvaldsobj-$(CONFIG_ESPSERIAL)		+= esp.o
201da177e4SLinus Torvaldsobj-$(CONFIG_MVME147_SCC)	+= generic_serial.o vme_scc.o
211da177e4SLinus Torvaldsobj-$(CONFIG_MVME162_SCC)	+= generic_serial.o vme_scc.o
221da177e4SLinus Torvaldsobj-$(CONFIG_BVME6000_SCC)	+= generic_serial.o vme_scc.o
231da177e4SLinus Torvaldsobj-$(CONFIG_ROCKETPORT)	+= rocket.o
241da177e4SLinus Torvaldsobj-$(CONFIG_SERIAL167)		+= serial167.o
251da177e4SLinus Torvaldsobj-$(CONFIG_CYCLADES)		+= cyclades.o
261da177e4SLinus Torvaldsobj-$(CONFIG_STALLION)		+= stallion.o
271da177e4SLinus Torvaldsobj-$(CONFIG_ISTALLION)		+= istallion.o
281da177e4SLinus Torvaldsobj-$(CONFIG_DIGIEPCA)		+= epca.o
291da177e4SLinus Torvaldsobj-$(CONFIG_SPECIALIX)		+= specialix.o
301da177e4SLinus Torvaldsobj-$(CONFIG_MOXA_INTELLIO)	+= moxa.o
311da177e4SLinus Torvaldsobj-$(CONFIG_A2232)		+= ser_a2232.o generic_serial.o
321da177e4SLinus Torvaldsobj-$(CONFIG_ATARI_DSP56K)	+= dsp56k.o
331da177e4SLinus Torvaldsobj-$(CONFIG_MOXA_SMARTIO)	+= mxser.o
349c4b562aSAdrian Bunkobj-$(CONFIG_COMPUTONE)		+= ip2/
351da177e4SLinus Torvaldsobj-$(CONFIG_RISCOM8)		+= riscom8.o
361da177e4SLinus Torvaldsobj-$(CONFIG_ISI)		+= isicom.o
371da177e4SLinus Torvaldsobj-$(CONFIG_SYNCLINK)		+= synclink.o
381da177e4SLinus Torvaldsobj-$(CONFIG_SYNCLINKMP)	+= synclinkmp.o
39705b6c7bSPaul Fulghumobj-$(CONFIG_SYNCLINK_GT)	+= synclink_gt.o
401da177e4SLinus Torvaldsobj-$(CONFIG_N_HDLC)		+= n_hdlc.o
411da177e4SLinus Torvaldsobj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
421da177e4SLinus Torvaldsobj-$(CONFIG_SX)		+= sx.o generic_serial.o
431da177e4SLinus Torvaldsobj-$(CONFIG_RIO)		+= rio/ generic_serial.o
4445d607edSRyan S. Arnoldobj-$(CONFIG_HVC_CONSOLE)	+= hvc_vio.o hvsi.o
45f4d1749eSArnd Bergmannobj-$(CONFIG_HVC_RTAS)		+= hvc_rtas.o
46938473b2SMilton Millerobj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
471da177e4SLinus Torvaldsobj-$(CONFIG_RAW_DRIVER)	+= raw.o
4867639debSGreg Howardobj-$(CONFIG_SGI_SNSC)		+= snsc.o snsc_event.o
491da177e4SLinus Torvaldsobj-$(CONFIG_MMTIMER)		+= mmtimer.o
501da177e4SLinus Torvaldsobj-$(CONFIG_VIOCONS)		+= viocons.o
511da177e4SLinus Torvaldsobj-$(CONFIG_VIOTAPE)		+= viotape.o
521da177e4SLinus Torvaldsobj-$(CONFIG_HVCS)		+= hvcs.o
53e1e19747SBruce Losureobj-$(CONFIG_SGI_MBCS)		+= mbcs.o
541da177e4SLinus Torvalds
551da177e4SLinus Torvaldsobj-$(CONFIG_PRINTER)		+= lp.o
561da177e4SLinus Torvaldsobj-$(CONFIG_TIPAR)		+= tipar.o
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldsobj-$(CONFIG_DTLK)		+= dtlk.o
591da177e4SLinus Torvaldsobj-$(CONFIG_R3964)		+= n_r3964.o
601da177e4SLinus Torvaldsobj-$(CONFIG_APPLICOM)		+= applicom.o
611da177e4SLinus Torvaldsobj-$(CONFIG_SONYPI)		+= sonypi.o
621da177e4SLinus Torvaldsobj-$(CONFIG_RTC)		+= rtc.o
631da177e4SLinus Torvaldsobj-$(CONFIG_HPET)		+= hpet.o
641da177e4SLinus Torvaldsobj-$(CONFIG_GEN_RTC)		+= genrtc.o
651da177e4SLinus Torvaldsobj-$(CONFIG_EFI_RTC)		+= efirtc.o
661da177e4SLinus Torvaldsobj-$(CONFIG_SGI_DS1286)	+= ds1286.o
671da177e4SLinus Torvaldsobj-$(CONFIG_SGI_IP27_RTC)	+= ip27-rtc.o
681da177e4SLinus Torvaldsobj-$(CONFIG_DS1302)		+= ds1302.o
691da177e4SLinus Torvaldsobj-$(CONFIG_S3C2410_RTC)	+= s3c2410-rtc.o
701da177e4SLinus Torvaldsifeq ($(CONFIG_GENERIC_NVRAM),y)
711da177e4SLinus Torvalds  obj-$(CONFIG_NVRAM)	+= generic_nvram.o
721da177e4SLinus Torvaldselse
731da177e4SLinus Torvalds  obj-$(CONFIG_NVRAM)	+= nvram.o
741da177e4SLinus Torvaldsendif
751da177e4SLinus Torvaldsobj-$(CONFIG_TOSHIBA)		+= toshiba.o
761da177e4SLinus Torvaldsobj-$(CONFIG_I8K)		+= i8k.o
771da177e4SLinus Torvaldsobj-$(CONFIG_DS1620)		+= ds1620.o
78844dd05fSMichael Bueschobj-$(CONFIG_HW_RANDOM)		+= hw_random/
791da177e4SLinus Torvaldsobj-$(CONFIG_FTAPE)		+= ftape/
801da177e4SLinus Torvaldsobj-$(CONFIG_COBALT_LCD)	+= lcd.o
811da177e4SLinus Torvaldsobj-$(CONFIG_PPDEV)		+= ppdev.o
821da177e4SLinus Torvaldsobj-$(CONFIG_NWBUTTON)		+= nwbutton.o
831da177e4SLinus Torvaldsobj-$(CONFIG_NWFLASH)		+= nwflash.o
847a8e2a5eSJim Cromieobj-$(CONFIG_SCx200_GPIO)	+= scx200_gpio.o
857a8e2a5eSJim Cromieobj-$(CONFIG_PC8736x_GPIO)	+= pc8736x_gpio.o
867a8e2a5eSJim Cromieobj-$(CONFIG_NSC_GPIO)		+= nsc_gpio.o
87e329113cSBen Gardnerobj-$(CONFIG_CS5535_GPIO)	+= cs5535_gpio.o
88e400bae9SYoichi Yuasaobj-$(CONFIG_GPIO_VR41XX)	+= vr41xx_giu.o
891da177e4SLinus Torvaldsobj-$(CONFIG_TANBAC_TB0219)	+= tb0219.o
901a80ba88SMark Grossobj-$(CONFIG_TELCLOCK)		+= tlclk.o
911da177e4SLinus Torvalds
921da177e4SLinus Torvaldsobj-$(CONFIG_WATCHDOG)		+= watchdog/
931da177e4SLinus Torvaldsobj-$(CONFIG_MWAVE)		+= mwave/
941da177e4SLinus Torvaldsobj-$(CONFIG_AGP)		+= agp/
951da177e4SLinus Torvaldsobj-$(CONFIG_DRM)		+= drm/
961da177e4SLinus Torvaldsobj-$(CONFIG_PCMCIA)		+= pcmcia/
971da177e4SLinus Torvaldsobj-$(CONFIG_IPMI_HANDLER)	+= ipmi/
981da177e4SLinus Torvalds
991da177e4SLinus Torvaldsobj-$(CONFIG_HANGCHECK_TIMER)	+= hangcheck-timer.o
1001da177e4SLinus Torvaldsobj-$(CONFIG_TCG_TPM)		+= tpm/
10153813158SJim Cromie
1021da177e4SLinus Torvalds# Files generated that shall be removed upon make clean
1031da177e4SLinus Torvaldsclean-files := consolemap_deftbl.c defkeymap.c qtronixmap.c
1041da177e4SLinus Torvalds
1051da177e4SLinus Torvaldsquiet_cmd_conmk = CONMK   $@
1061da177e4SLinus Torvalds      cmd_conmk = scripts/conmakehash $< > $@
1071da177e4SLinus Torvalds
1081da177e4SLinus Torvalds$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
1091da177e4SLinus Torvalds	$(call cmd,conmk)
1101da177e4SLinus Torvalds
1111da177e4SLinus Torvalds$(obj)/defkeymap.o:  $(obj)/defkeymap.c
1121da177e4SLinus Torvalds
1131da177e4SLinus Torvalds$(obj)/qtronixmap.o: $(obj)/qtronixmap.c
1141da177e4SLinus Torvalds
1151da177e4SLinus Torvalds# Uncomment if you're changing the keymap and have an appropriate
1161da177e4SLinus Torvalds# loadkeys version for the map. By default, we'll use the shipped
1171da177e4SLinus Torvalds# versions.
1181da177e4SLinus Torvalds# GENERATE_KEYMAP := 1
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvaldsifdef GENERATE_KEYMAP
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvalds$(obj)/defkeymap.c $(obj)/qtronixmap.c: $(obj)/%.c: $(src)/%.map
1231da177e4SLinus Torvalds	loadkeys --mktable $< > $@.tmp
1241da177e4SLinus Torvalds	sed -e 's/^static *//' $@.tmp > $@
1251da177e4SLinus Torvalds	rm $@.tmp
1261da177e4SLinus Torvalds
1271da177e4SLinus Torvaldsendif
128