Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Assaf Inbal <shmuelzon@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/2] getty: add the ability to pass options to getty
Date: Sun, 25 Aug 2013 14:13:39 +0300	[thread overview]
Message-ID: <1377429219-25140-2-git-send-email-shmuelzon@gmail.com> (raw)
In-Reply-To: <1377429219-25140-1-git-send-email-shmuelzon@gmail.com>

Signed-off-by: Assaf Inbal <shmuelzon@gmail.com>
---
 system/Config.in |    7 +++++++
 system/system.mk |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/system/Config.in b/system/Config.in
index 403b229..1a1c34c 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -239,6 +239,13 @@ config BR2_TARGET_GENERIC_GETTY_TERM
 	default "vt100"
 	help
 	  Specify a TERM type.
+
+config BR2_TARGET_GENERIC_GETTY_OPTIONS
+	string "other options to pass to getty"
+	default ""
+	help
+	  Any other flags you want to pass to getty,
+	  Refer to getty --help for details.
 endif
 
 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
diff --git a/system/system.mk b/system/system.mk
index c9e7cf7..01a6c3a 100644
--- a/system/system.mk
+++ b/system/system.mk
@@ -30,13 +30,13 @@ target-root-passwd:
 	$(SED) "s,^root:[^:]*:,root:$$TARGET_GENERIC_ROOT_PASSWD_HASH:," $(TARGET_DIR)/etc/shadow
 
 target-generic-getty-busybox:
-	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY_PORT)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \
+	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY_PORT)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_OPTIONS) $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \
 		$(TARGET_DIR)/etc/inittab
 
 # In sysvinit inittab, the "id" must not be longer than 4 bytes, so we
 # skip the "tty" part and keep only the remaining.
 target-generic-getty-sysvinit:
-	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(shell echo $(TARGET_GENERIC_GETTY_PORT) | tail -c+4)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \
+	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(shell echo $(TARGET_GENERIC_GETTY_PORT) | tail -c+4)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY_OPTIONS) $(TARGET_GENERIC_GETTY_PORT) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERM) #~' \
 		$(TARGET_DIR)/etc/inittab
 
 # Find commented line, if any, and remove leading '#'s
-- 
1.7.9.5

  reply	other threads:[~2013-08-25 11:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <[Buildroot] [PATCH] getty: add the ability to pass options to getty>
2013-08-25 11:13 ` [Buildroot] [PATCH v2 1/2] getty: Create specific getty config + cleanups Assaf Inbal
2013-08-25 11:13   ` Assaf Inbal [this message]
2013-08-27 10:34     ` [Buildroot] [PATCH v2 2/2] getty: add the ability to pass options to getty Thomas De Schampheleire
2013-08-27 10:33   ` [Buildroot] [PATCH v2 1/2] getty: Create specific getty config + cleanups Thomas De Schampheleire
2013-08-27 12:27     ` Arnout Vandecappelle
2013-08-28  4:41     ` Assaf Inbal
2013-08-28  6:36       ` Thomas De Schampheleire
     [not found]         ` <CADwac6A7kn8sXLiQERrmk4iUbtob8oVqeTMcSYTd8rJW3d9wZg@mail.gmail.com>
2013-09-04  9:31           ` Thomas De Schampheleire
2013-09-06  6:59             ` Assaf Inbal
2013-09-06  8:18               ` Thomas De Schampheleire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377429219-25140-2-git-send-email-shmuelzon@gmail.com \
    --to=shmuelzon@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox