diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-04 15:50:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-05 11:16:52 -0400 |
commit | 60d4ae8d436b8be6a8aedb63440203d5395e9f53 (patch) | |
tree | 2e0798d278100518634b999dc6705e9f02027d9f | |
parent | 96fd7ce58ffb5c7bf376796b5525ba3ea1c9d69f (diff) |
TTY: create drivers/tty/vt and move the vt code there
The vt and other related code is moved into the drivers/tty/vt directory.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/char/Makefile | 33 | ||||
-rw-r--r-- | drivers/tty/Makefile | 2 | ||||
-rw-r--r-- | drivers/tty/vt/Makefile | 34 | ||||
-rw-r--r-- | drivers/tty/vt/consolemap.c (renamed from drivers/char/consolemap.c) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/cp437.uni (renamed from drivers/char/cp437.uni) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/defkeymap.c_shipped (renamed from drivers/char/defkeymap.c_shipped) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/defkeymap.map (renamed from drivers/char/defkeymap.map) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/keyboard.c (renamed from drivers/char/keyboard.c) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/selection.c (renamed from drivers/char/selection.c) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/vc_screen.c (renamed from drivers/char/vc_screen.c) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/vt.c (renamed from drivers/char/vt.c) | 0 | ||||
-rw-r--r-- | drivers/tty/vt/vt_ioctl.c (renamed from drivers/char/vt_ioctl.c) | 0 |
12 files changed, 36 insertions, 33 deletions
diff --git a/drivers/char/Makefile b/drivers/char/Makefile index f308494bfc90..ba53ec956c95 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile | |||
@@ -2,18 +2,10 @@ | |||
2 | # Makefile for the kernel character device drivers. | 2 | # Makefile for the kernel character device drivers. |
3 | # | 3 | # |
4 | 4 | ||
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 | 5 | obj-y += mem.o random.o |
11 | obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o | 6 | obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o |
12 | obj-y += misc.o | 7 | obj-y += misc.o |
13 | obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o | ||
14 | obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o | 8 | obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o |
15 | obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o | ||
16 | obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o | ||
17 | obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o | 9 | obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o |
18 | obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o | 10 | obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o |
19 | obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o | 11 | obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o |
@@ -106,28 +98,3 @@ obj-$(CONFIG_RAMOOPS) += ramoops.o | |||
106 | 98 | ||
107 | obj-$(CONFIG_JS_RTC) += js-rtc.o | 99 | obj-$(CONFIG_JS_RTC) += js-rtc.o |
108 | js-rtc-y = rtc.o | 100 | js-rtc-y = rtc.o |
109 | |||
110 | # Files generated that shall be removed upon make clean | ||
111 | clean-files := consolemap_deftbl.c defkeymap.c | ||
112 | |||
113 | quiet_cmd_conmk = CONMK $@ | ||
114 | cmd_conmk = scripts/conmakehash $< > $@ | ||
115 | |||
116 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) | ||
117 | $(call cmd,conmk) | ||
118 | |||
119 | $(obj)/defkeymap.o: $(obj)/defkeymap.c | ||
120 | |||
121 | # Uncomment if you're changing the keymap and have an appropriate | ||
122 | # loadkeys version for the map. By default, we'll use the shipped | ||
123 | # versions. | ||
124 | # GENERATE_KEYMAP := 1 | ||
125 | |||
126 | ifdef GENERATE_KEYMAP | ||
127 | |||
128 | $(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map | ||
129 | loadkeys --mktable $< > $@.tmp | ||
130 | sed -e 's/^static *//' $@.tmp > $@ | ||
131 | rm $@.tmp | ||
132 | |||
133 | endif | ||
diff --git a/drivers/tty/Makefile b/drivers/tty/Makefile index 7f63b3315e82..c43ef48b1a0f 100644 --- a/drivers/tty/Makefile +++ b/drivers/tty/Makefile | |||
@@ -7,3 +7,5 @@ obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o | |||
7 | obj-$(CONFIG_N_HDLC) += n_hdlc.o | 7 | obj-$(CONFIG_N_HDLC) += n_hdlc.o |
8 | obj-$(CONFIG_N_GSM) += n_gsm.o | 8 | obj-$(CONFIG_N_GSM) += n_gsm.o |
9 | obj-$(CONFIG_R3964) += n_r3964.o | 9 | obj-$(CONFIG_R3964) += n_r3964.o |
10 | |||
11 | obj-y += vt/ | ||
diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile new file mode 100644 index 000000000000..14a51c9960df --- /dev/null +++ b/drivers/tty/vt/Makefile | |||
@@ -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 | ||
diff --git a/drivers/char/consolemap.c b/drivers/tty/vt/consolemap.c index 45d3e80156d4..45d3e80156d4 100644 --- a/drivers/char/consolemap.c +++ b/drivers/tty/vt/consolemap.c | |||
diff --git a/drivers/char/cp437.uni b/drivers/tty/vt/cp437.uni index bc6163484f62..bc6163484f62 100644 --- a/drivers/char/cp437.uni +++ b/drivers/tty/vt/cp437.uni | |||
diff --git a/drivers/char/defkeymap.c_shipped b/drivers/tty/vt/defkeymap.c_shipped index d2208dfe3f67..d2208dfe3f67 100644 --- a/drivers/char/defkeymap.c_shipped +++ b/drivers/tty/vt/defkeymap.c_shipped | |||
diff --git a/drivers/char/defkeymap.map b/drivers/tty/vt/defkeymap.map index 50b30cace261..50b30cace261 100644 --- a/drivers/char/defkeymap.map +++ b/drivers/tty/vt/defkeymap.map | |||
diff --git a/drivers/char/keyboard.c b/drivers/tty/vt/keyboard.c index e95d7876ca6b..e95d7876ca6b 100644 --- a/drivers/char/keyboard.c +++ b/drivers/tty/vt/keyboard.c | |||
diff --git a/drivers/char/selection.c b/drivers/tty/vt/selection.c index ebae344ce910..ebae344ce910 100644 --- a/drivers/char/selection.c +++ b/drivers/tty/vt/selection.c | |||
diff --git a/drivers/char/vc_screen.c b/drivers/tty/vt/vc_screen.c index 273ab44cc91d..273ab44cc91d 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/tty/vt/vc_screen.c | |||
diff --git a/drivers/char/vt.c b/drivers/tty/vt/vt.c index a8ec48ed14d9..a8ec48ed14d9 100644 --- a/drivers/char/vt.c +++ b/drivers/tty/vt/vt.c | |||
diff --git a/drivers/char/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 6b68a0fb4611..6b68a0fb4611 100644 --- a/drivers/char/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c | |||