diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-23 21:05:46 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-23 21:05:46 +0100 |
commit | 8eb8b85f894eae8a7dcd85a1d821e875b8875ce5 (patch) | |
tree | 2f1c260ca4efbe313f3f557e31cb18d8aad94172 | |
parent | 0221cc4264b0516f055efcdd2455ba880b53aa8c (diff) |
add runtime option for inittab configuration
-rw-r--r-- | Config.in | 21 | ||||
-rw-r--r-- | package/base-files/Makefile | 10 | ||||
-rw-r--r-- | package/base-files/files/inittab.serial | 1 | ||||
-rw-r--r-- | package/base-files/files/inittab.vga | 7 | ||||
-rw-r--r-- | package/base-files/src/etc/inittab | 2 | ||||
-rw-r--r-- | target/x86/files/etc/inittab | 4 | ||||
-rw-r--r-- | target/x86_64/files/etc/inittab | 4 |
7 files changed, 38 insertions, 11 deletions
@@ -215,6 +215,27 @@ config ADK_RUNTIME_KBD_LAYOUT help Predefine the keyboard layout for the embedded system. +choice +prompt "Console output on embedded system" +default ADK_RUNTIME_CONSOLE_VGA if ADK_HARDWARE_IBMX40 +default ADK_RUNTIME_CONSOLE_SERIAL + +config ADK_RUNTIME_CONSOLE_VGA + bool "console output on VGA" + help + Start getty on VGA console. (tty1-tty6) + +config ADK_RUNTIME_CONSOLE_SERIAL + bool "console output on serial" + help + Start getty on serial console. (ttyS0) + +config ADK_RUNTIME_CONSOLE_BOTH + bool "console output on console and serial" + help + Start getty on VGA console and serial device. + +endchoice endmenu menu "Package selection" diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 7786cdf83..af8b2165f 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.0 -PKG_RELEASE:= 32 +PKG_RELEASE:= 33 PKG_SECTION:= base PKG_DESCR:= basic files and scripts @@ -62,6 +62,14 @@ endif ln -sf ../proc/mounts $(IDIR_BASE_FILES)/etc/mtab rm -rf $(IDIR_BASE_FILES)/var ln -sf tmp $(IDIR_BASE_FILES)/var + test -z $(ADK_RUNTIME_CONSOLE_VGA) || \ + cat ./files/inittab.vga >> $(IDIR_BASE_FILES)/etc/inittab + test -z $(ADK_RUNTIME_CONSOLE_SERIAL) || \ + cat ./files/inittab.serial >> $(IDIR_BASE_FILES)/etc/inittab + test -z $(ADK_RUNTIME_CONSOLE_BOTH) || \ + cat ./files/inittab.serial >> $(IDIR_BASE_FILES)/etc/inittab + test -z $(ADK_RUNTIME_CONSOLE_BOTH) || \ + cat ./files/inittab.vga >> $(IDIR_BASE_FILES)/etc/inittab test -z $(ADK_RUNTIME_HOSTNAME) || \ echo $(ADK_RUNTIME_HOSTNAME) > \ $(IDIR_BASE_FILES)/etc/hostname diff --git a/package/base-files/files/inittab.serial b/package/base-files/files/inittab.serial new file mode 100644 index 000000000..b50bddb0c --- /dev/null +++ b/package/base-files/files/inittab.serial @@ -0,0 +1 @@ +ttyS0::respawn:/sbin/getty -i -L ttyS0 115200 vt100 diff --git a/package/base-files/files/inittab.vga b/package/base-files/files/inittab.vga new file mode 100644 index 000000000..1e9cb01bf --- /dev/null +++ b/package/base-files/files/inittab.vga @@ -0,0 +1,7 @@ +tty1::respawn:/sbin/getty -i -L tty1 115200 vt100 +tty2::respawn:/sbin/getty -i -L tty2 115200 vt100 +tty3::respawn:/sbin/getty -i -L tty3 115200 vt100 +tty4::respawn:/sbin/getty -i -L tty4 115200 vt100 +tty5::respawn:/sbin/getty -i -L tty5 115200 vt100 +tty6::respawn:/sbin/getty -i -L tty6 115200 vt100 +tty11::respawn:/sbin/logread -f diff --git a/package/base-files/src/etc/inittab b/package/base-files/src/etc/inittab index 960ea77d8..79e69d931 100644 --- a/package/base-files/src/etc/inittab +++ b/package/base-files/src/etc/inittab @@ -1,4 +1,2 @@ ::sysinit:/etc/init.d/rcS ::shutdown:/etc/init.d/rcK -ttyS0::respawn:/sbin/getty -i -L ttyS0 115200 vt100 - diff --git a/target/x86/files/etc/inittab b/target/x86/files/etc/inittab deleted file mode 100644 index 84fc3ec02..000000000 --- a/target/x86/files/etc/inittab +++ /dev/null @@ -1,4 +0,0 @@ -::sysinit:/etc/init.d/rcS -::shutdown:/etc/init.d/rcK -ttyS0::respawn:/sbin/getty -i -L ttyS0 115200 vt100 -tty1::askfirst:/sbin/getty -i -L tty1 115200 vt100 diff --git a/target/x86_64/files/etc/inittab b/target/x86_64/files/etc/inittab deleted file mode 100644 index 84fc3ec02..000000000 --- a/target/x86_64/files/etc/inittab +++ /dev/null @@ -1,4 +0,0 @@ -::sysinit:/etc/init.d/rcS -::shutdown:/etc/init.d/rcK -ttyS0::respawn:/sbin/getty -i -L ttyS0 115200 vt100 -tty1::askfirst:/sbin/getty -i -L tty1 115200 vt100 |