diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
commit | 7d219aab70e6951ab82c27c202cac05016696723 (patch) | |
tree | 4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /console-tools | |
parent | 8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff) | |
download | busybox-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.in | 26 | ||||
-rw-r--r-- | console-tools/Kbuild | 18 | ||||
-rw-r--r-- | console-tools/Makefile | 23 | ||||
-rw-r--r-- | console-tools/Makefile.in | 38 |
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 | ||
6 | menu "Console Utilities" | 6 | menu "Console Utilities" |
7 | 7 | ||
8 | config CONFIG_CHVT | 8 | config 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 | ||
15 | config CONFIG_CLEAR | 15 | config 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 | ||
21 | config CONFIG_DEALLOCVT | 21 | config 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 | ||
27 | config CONFIG_DUMPKMAP | 27 | config 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 | ||
34 | config CONFIG_LOADFONT | 34 | config 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 | ||
40 | config CONFIG_LOADKMAP | 40 | config 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 | ||
47 | config CONFIG_OPENVT | 47 | config 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 | ||
54 | config CONFIG_RESET | 54 | config 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 | ||
61 | config CONFIG_SETCONSOLE | 61 | config 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 | ||
68 | config CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS | 68 | config 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 | ||
75 | config CONFIG_SETKEYCODES | 75 | config 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 | ||
82 | config CONFIG_SETLOGCONS | 82 | config 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 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_CHVT) += chvt.o | ||
9 | lib-$(CONFIG_CLEAR) += clear.o | ||
10 | lib-$(CONFIG_DEALLOCVT) += deallocvt.o | ||
11 | lib-$(CONFIG_DUMPKMAP) += dumpkmap.o | ||
12 | lib-$(CONFIG_SETCONSOLE) += setconsole.o | ||
13 | lib-$(CONFIG_LOADFONT) += loadfont.o | ||
14 | lib-$(CONFIG_LOADKMAP) += loadkmap.o | ||
15 | lib-$(CONFIG_OPENVT) += openvt.o | ||
16 | lib-$(CONFIG_RESET) += reset.o | ||
17 | lib-$(CONFIG_SETKEYCODES) += setkeycodes.o | ||
18 | lib-$(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 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/console/tools | ||
14 | CONSOLETOOLS_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include $(srcdir)/Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
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 | |||
7 | CONSOLETOOLS_AR:=console-tools.a | ||
8 | ifndef $(CONSOLETOOLS_DIR) | ||
9 | CONSOLETOOLS_DIR:=$(top_builddir)/console-tools/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/console-tools | ||
12 | |||
13 | CONSOLETOOLS-y:= | ||
14 | CONSOLETOOLS-$(CONFIG_CHVT) += chvt.o | ||
15 | CONSOLETOOLS-$(CONFIG_CLEAR) += clear.o | ||
16 | CONSOLETOOLS-$(CONFIG_DEALLOCVT) += deallocvt.o | ||
17 | CONSOLETOOLS-$(CONFIG_DUMPKMAP) += dumpkmap.o | ||
18 | CONSOLETOOLS-$(CONFIG_SETCONSOLE) += setconsole.o | ||
19 | CONSOLETOOLS-$(CONFIG_LOADFONT) += loadfont.o | ||
20 | CONSOLETOOLS-$(CONFIG_LOADKMAP) += loadkmap.o | ||
21 | CONSOLETOOLS-$(CONFIG_OPENVT) += openvt.o | ||
22 | CONSOLETOOLS-$(CONFIG_RESET) += reset.o | ||
23 | CONSOLETOOLS-$(CONFIG_SETKEYCODES) += setkeycodes.o | ||
24 | CONSOLETOOLS-$(CONFIG_SETLOGCONS) += setlogcons.o | ||
25 | |||
26 | ifneq ($(strip $(CONSOLETOOLS-y)),) | ||
27 | libraries-y+=$(CONSOLETOOLS_DIR)$(CONSOLETOOLS_AR) | ||
28 | endif | ||
29 | CONSOLETOOLS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(CONSOLETOOLS-y)) | ||
30 | CONSOLETOOLS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
31 | APPLET_SRC-y+=$(CONSOLETOOLS_SRC-y) | ||
32 | APPLET_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) | ||