Skip to content

Commit 5398a64

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: TTY: move .gitignore from drivers/char/ to drivers/tty/vt/ TTY: create drivers/tty/vt and move the vt code there TTY: create drivers/tty and move the tty core files there
2 parents 764e028 + 1db0113 commit 5398a64

27 files changed

+47
-43
lines changed

drivers/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ obj-$(CONFIG_REGULATOR) += regulator/
2626

2727
# char/ comes before serial/ etc so that the VT console is the boot-time
2828
# default.
29+
obj-y += tty/
2930
obj-y += char/
3031

3132
# gpu/ comes after char for AGP vs DRM startup

drivers/char/Makefile

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,10 @@
22
# Makefile for the kernel character device drivers.
33
#
44

5-
#
6-
# This file contains the font map for the default (hardware) font
7-
#
8-
FONTMAPFILE = cp437.uni
9-
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
11-
12-
obj-y += tty_mutex.o
13-
obj-$(CONFIG_LEGACY_PTYS) += pty.o
14-
obj-$(CONFIG_UNIX98_PTYS) += pty.o
5+
obj-y += mem.o random.o
156
obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o
167
obj-y += misc.o
17-
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o
188
obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o
19-
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
20-
obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
21-
obj-$(CONFIG_AUDIT) += tty_audit.o
22-
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
239
obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o
2410
obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o
2511
obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o
@@ -41,8 +27,6 @@ obj-$(CONFIG_ISI) += isicom.o
4127
obj-$(CONFIG_SYNCLINK) += synclink.o
4228
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
4329
obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o
44-
obj-$(CONFIG_N_HDLC) += n_hdlc.o
45-
obj-$(CONFIG_N_GSM) += n_gsm.o
4630
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
4731
obj-$(CONFIG_SX) += sx.o generic_serial.o
4832
obj-$(CONFIG_RIO) += rio/ generic_serial.o
@@ -74,7 +58,6 @@ obj-$(CONFIG_PRINTER) += lp.o
7458
obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
7559

7660
obj-$(CONFIG_DTLK) += dtlk.o
77-
obj-$(CONFIG_R3964) += n_r3964.o
7861
obj-$(CONFIG_APPLICOM) += applicom.o
7962
obj-$(CONFIG_SONYPI) += sonypi.o
8063
obj-$(CONFIG_RTC) += rtc.o
@@ -115,28 +98,3 @@ obj-$(CONFIG_RAMOOPS) += ramoops.o
11598

11699
obj-$(CONFIG_JS_RTC) += js-rtc.o
117100
js-rtc-y = rtc.o
118-
119-
# Files generated that shall be removed upon make clean
120-
clean-files := consolemap_deftbl.c defkeymap.c
121-
122-
quiet_cmd_conmk = CONMK $@
123-
cmd_conmk = scripts/conmakehash $< > $@
124-
125-
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
126-
$(call cmd,conmk)
127-
128-
$(obj)/defkeymap.o: $(obj)/defkeymap.c
129-
130-
# Uncomment if you're changing the keymap and have an appropriate
131-
# loadkeys version for the map. By default, we'll use the shipped
132-
# versions.
133-
# GENERATE_KEYMAP := 1
134-
135-
ifdef GENERATE_KEYMAP
136-
137-
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
138-
loadkeys --mktable $< > $@.tmp
139-
sed -e 's/^static *//' $@.tmp > $@
140-
rm $@.tmp
141-
142-
endif

drivers/tty/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
obj-y += tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o \
2+
tty_buffer.o tty_port.o tty_mutex.o
3+
obj-$(CONFIG_LEGACY_PTYS) += pty.o
4+
obj-$(CONFIG_UNIX98_PTYS) += pty.o
5+
obj-$(CONFIG_AUDIT) += tty_audit.o
6+
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
7+
obj-$(CONFIG_N_HDLC) += n_hdlc.o
8+
obj-$(CONFIG_N_GSM) += n_gsm.o
9+
obj-$(CONFIG_R3964) += n_r3964.o
10+
11+
obj-y += vt/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

drivers/tty/vt/Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# This file contains the font map for the default (hardware) font
3+
#
4+
FONTMAPFILE = cp437.uni
5+
6+
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o \
7+
selection.o keyboard.o
8+
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
9+
obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
10+
11+
# Files generated that shall be removed upon make clean
12+
clean-files := consolemap_deftbl.c defkeymap.c
13+
14+
quiet_cmd_conmk = CONMK $@
15+
cmd_conmk = scripts/conmakehash $< > $@
16+
17+
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
18+
$(call cmd,conmk)
19+
20+
$(obj)/defkeymap.o: $(obj)/defkeymap.c
21+
22+
# Uncomment if you're changing the keymap and have an appropriate
23+
# loadkeys version for the map. By default, we'll use the shipped
24+
# versions.
25+
# GENERATE_KEYMAP := 1
26+
27+
ifdef GENERATE_KEYMAP
28+
29+
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
30+
loadkeys --mktable $< > $@.tmp
31+
sed -e 's/^static *//' $@.tmp > $@
32+
rm $@.tmp
33+
34+
endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)