aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /console-tools
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2
busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip
build system overhaul
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/Config.in26
-rw-r--r--console-tools/Kbuild18
-rw-r--r--console-tools/Makefile23
-rw-r--r--console-tools/Makefile.in38
4 files changed, 31 insertions, 74 deletions
diff --git a/console-tools/Config.in b/console-tools/Config.in
index ec2273c35..f1dbac531 100644
--- a/console-tools/Config.in
+++ b/console-tools/Config.in
@@ -5,81 +5,81 @@
5 5
6menu "Console Utilities" 6menu "Console Utilities"
7 7
8config CONFIG_CHVT 8config CHVT
9 bool "chvt" 9 bool "chvt"
10 default n 10 default n
11 help 11 help
12 This program is used to change to another terminal. 12 This program is used to change to another terminal.
13 Example: chvt 4 (change to terminal /dev/tty4) 13 Example: chvt 4 (change to terminal /dev/tty4)
14 14
15config CONFIG_CLEAR 15config CLEAR
16 bool "clear" 16 bool "clear"
17 default n 17 default n
18 help 18 help
19 This program clears the terminal screen. 19 This program clears the terminal screen.
20 20
21config CONFIG_DEALLOCVT 21config DEALLOCVT
22 bool "deallocvt" 22 bool "deallocvt"
23 default n 23 default n
24 help 24 help
25 This program deallocates unused virtual consoles. 25 This program deallocates unused virtual consoles.
26 26
27config CONFIG_DUMPKMAP 27config DUMPKMAP
28 bool "dumpkmap" 28 bool "dumpkmap"
29 default n 29 default n
30 help 30 help
31 This program dumps the kernel's keyboard translation table to 31 This program dumps the kernel's keyboard translation table to
32 stdout, in binary format. You can then use loadkmap to load it. 32 stdout, in binary format. You can then use loadkmap to load it.
33 33
34config CONFIG_LOADFONT 34config LOADFONT
35 bool "loadfont" 35 bool "loadfont"
36 default n 36 default n
37 help 37 help
38 This program loads a console font from standard input. 38 This program loads a console font from standard input.
39 39
40config CONFIG_LOADKMAP 40config LOADKMAP
41 bool "loadkmap" 41 bool "loadkmap"
42 default n 42 default n
43 help 43 help
44 This program loads a keyboard translation table from 44 This program loads a keyboard translation table from
45 standard input. 45 standard input.
46 46
47config CONFIG_OPENVT 47config OPENVT
48 bool "openvt" 48 bool "openvt"
49 default n 49 default n
50 help 50 help
51 This program is used to start a command on an unused 51 This program is used to start a command on an unused
52 virtual terminal. 52 virtual terminal.
53 53
54config CONFIG_RESET 54config RESET
55 bool "reset" 55 bool "reset"
56 default n 56 default n
57 help 57 help
58 This program is used to reset the terminal screen, if it 58 This program is used to reset the terminal screen, if it
59 gets messed up. 59 gets messed up.
60 60
61config CONFIG_SETCONSOLE 61config SETCONSOLE
62 bool "setconsole" 62 bool "setconsole"
63 default n 63 default n
64 help 64 help
65 This program redirects the system console to another device, 65 This program redirects the system console to another device,
66 like the current tty while logged in via telnet. 66 like the current tty while logged in via telnet.
67 67
68config CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS 68config FEATURE_SETCONSOLE_LONG_OPTIONS
69 bool "Enable long options" 69 bool "Enable long options"
70 default n 70 default n
71 depends on CONFIG_SET_CONSOLE && CONFIG_GETOPT_LONG 71 depends on SET_CONSOLE && GETOPT_LONG
72 help 72 help
73 Support long options for the setconsole applet. 73 Support long options for the setconsole applet.
74 74
75config CONFIG_SETKEYCODES 75config SETKEYCODES
76 bool "setkeycodes" 76 bool "setkeycodes"
77 default n 77 default n
78 help 78 help
79 This program loads entries into the kernel's scancode-to-keycode 79 This program loads entries into the kernel's scancode-to-keycode
80 map, allowing unusual keyboards to generate usable keycodes. 80 map, allowing unusual keyboards to generate usable keycodes.
81 81
82config CONFIG_SETLOGCONS 82config SETLOGCONS
83 bool "setlogcons" 83 bool "setlogcons"
84 default n 84 default n
85 help 85 help
diff --git a/console-tools/Kbuild b/console-tools/Kbuild
new file mode 100644
index 000000000..8e377c559
--- /dev/null
+++ b/console-tools/Kbuild
@@ -0,0 +1,18 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7lib-y:=
8lib-$(CONFIG_CHVT) += chvt.o
9lib-$(CONFIG_CLEAR) += clear.o
10lib-$(CONFIG_DEALLOCVT) += deallocvt.o
11lib-$(CONFIG_DUMPKMAP) += dumpkmap.o
12lib-$(CONFIG_SETCONSOLE) += setconsole.o
13lib-$(CONFIG_LOADFONT) += loadfont.o
14lib-$(CONFIG_LOADKMAP) += loadkmap.o
15lib-$(CONFIG_OPENVT) += openvt.o
16lib-$(CONFIG_RESET) += reset.o
17lib-$(CONFIG_SETKEYCODES) += setkeycodes.o
18lib-$(CONFIG_SETLOGCONS) += setlogcons.o
diff --git a/console-tools/Makefile b/console-tools/Makefile
deleted file mode 100644
index 87a242b51..000000000
--- a/console-tools/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/console/tools
14CONSOLETOOLS_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include $(srcdir)/Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/console-tools/Makefile.in b/console-tools/Makefile.in
deleted file mode 100644
index 437bcd0ec..000000000
--- a/console-tools/Makefile.in
+++ /dev/null
@@ -1,38 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7CONSOLETOOLS_AR:=console-tools.a
8ifndef $(CONSOLETOOLS_DIR)
9CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/
10endif
11srcdir=$(top_srcdir)/console-tools
12
13CONSOLETOOLS-y:=
14CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o
15CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o
16CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o
17CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o
18CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o
19CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o
20CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o
21CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o
22CONSOLETOOLS-$(CONFIG_RESET) += reset.o
23CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o
24CONSOLETOOLS-$(CONFIG_SETLOGCONS) += setlogcons.o
25
26ifneq ($(strip $(CONSOLETOOLS-y)),)
27libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR)
28endif
29CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y))
30CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c)
31APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y)
32APPLET_SRC-a+=$(CONSOLETOOLS_SRC-a)
33
34$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR): $(patsubst %,$(CONSOLETOOLS_DIR)%, $(CONSOLETOOLS-y))
35 $(do_ar)
36
37$(CONSOLETOOLS_DIR)%.o: $(srcdir)/%.c
38 $(compile.c)