system: TARGET_GENERIC_GETTY: allow it to be disabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Jan 2013 20:39:05 +0000 (21:39 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Jan 2013 20:39:05 +0000 (21:39 +0100)
For some systems, you don't want to run any getty, so allow the option
to be disabled when the empty string is used.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
system/Config.in
system/system.mk

index f1c260a95ef90bd388e1846e867d59f66f9b3ab0..5b66ac0fb0cdc0fd1ba2b66fbdd3e685641c98bb 100644 (file)
@@ -145,6 +145,7 @@ config BR2_TARGET_GENERIC_GETTY_PORT
        default "ttyS0"
        help
          Specify a port to run a getty (login prompt) on.
+         Set to the empty string to not run a getty.
 
 choice
        prompt "Baudrate to use"
index 7536ce649e69c71ae8d0c580c22e7a1b64de8c5c..3c4d06e69ca39c3cda8dc2ad78424c4b3f74ba07 100644 (file)
@@ -49,12 +49,15 @@ endif
 
 TARGETS += target-root-passwd
 
+ifneq ($(TARGET_GENERIC_GETTY),)
 ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
 ifeq ($(BR2_PACKAGE_SYSVINIT),y)
 TARGETS += target-generic-getty-sysvinit
 else
 TARGETS += target-generic-getty-busybox
 endif
+endif
+
 ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)
 TARGETS += target-generic-do-remount-rw
 else