]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
target/generic: only show getty port option if default skeleton is used
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 12 May 2011 15:15:36 +0000 (17:15 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 12 May 2011 15:21:06 +0000 (17:21 +0200)
The special marker in etc/inittab might not be present with a custom
skeleton. At the same time make the option always active, remove the
hardcoded tty1/tty2 gettys and reword the option description slightly.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/skeleton/etc/inittab
target/generic/Config.in
target/generic/Makefile.in

index 873db29c7e2953aaeb6c58b24c62b1cc3f8ad74b..b1e5c164e6ffcba8c941a9499d6edae0eec8d473 100644 (file)
@@ -22,10 +22,6 @@ null::sysinit:/bin/hostname -F /etc/hostname
 # now run any rc scripts
 ::sysinit:/etc/init.d/rcS
 
-# Set up a couple of getty's
-tty1::respawn:/sbin/getty 38400 tty1
-tty2::respawn:/sbin/getty 38400 tty2
-
 # Put a getty on the serial port
 #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
 
index c624ba87257dedc2eb478c4ebfa13a51174355b5..2d2ad4423d6ea19f43f11dee63451d575906ed38 100644 (file)
@@ -12,13 +12,10 @@ config BR2_TARGET_GENERIC_ISSUE
        help
          Select system banner (/etc/issue) to be displayed at login.
 
-menuconfig BR2_TARGET_GENERIC_GETTY
-       bool "Generic serial port config"
-
-if BR2_TARGET_GENERIC_GETTY
+if BR2_ROOTFS_SKELETON_DEFAULT
 
 config BR2_TARGET_GENERIC_GETTY_PORT
-       string "Serial port to run a getty on"
+       string "Port to run a getty (login prompt) on"
        default "ttyS0"
        help
          Specify a port to run a getty (login prompt) on.
@@ -52,6 +49,6 @@ config BR2_TARGET_GENERIC_GETTY_BAUDRATE
        default "57600"         if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
        default "115200"        if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
 
-endif # BR2_TARGET_GENERIC_GETTY
+endif # BR2_ROOTFS_SKELETON_DEFAULT
 
 endmenu
index ba6e4b06021e88cef3983c66934627a22beed03c..ce07ecfd0fcb4dd27c5488c520c59540408464c4 100644 (file)
@@ -31,7 +31,7 @@ ifneq ($(TARGET_GENERIC_ISSUE),)
 TARGETS += target-generic-issue
 endif
 
-ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
+ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
 ifeq ($(BR2_PACKAGE_SYSVINIT),y)
 TARGETS += target-generic-getty-sysvinit
 else