Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCHv2 2/4] Enable terminal type configuration for /etc/inittab
@ 2010-09-29  8:21 Yegor Yefremov
  0 siblings, 0 replies; only message in thread
From: Yegor Yefremov @ 2010-09-29  8:21 UTC (permalink / raw)
  To: buildroot

String value BR2_TARGET_GENERIC_GETTY_TERMINAL_TYPE will be used
to store a terminal type like vt100, ansi, linux etc.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: b/target/generic/Config.in
===================================================================
--- a/target/generic/Config.in	2010-09-29 10:00:30.000000000 +0200
+++ b/target/generic/Config.in	2010-09-29 10:02:34.000000000 +0200
@@ -155,6 +155,12 @@
 	bool "115200"
 endchoice
 
+config BR2_TARGET_GENERIC_GETTY_TERMINAL_TYPE
+	string "Terminal type"
+	default "vt100"
+	help
+	  Specify a terminal type like vt100, linux etc.
+
 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
 	string
 	default "0"		if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
Index: b/target/generic/Makefile.in
===================================================================
--- a/target/generic/Makefile.in	2010-09-29 10:00:30.000000000 +0200
+++ b/target/generic/Makefile.in	2010-09-29 10:01:41.000000000 +0200
@@ -2,6 +2,7 @@
 TARGET_GENERIC_ISSUE:=$(call qstrip,$(BR2_TARGET_GENERIC_ISSUE))
 TARGET_GENERIC_GETTY:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT))
 TARGET_GENERIC_GETTY_BAUDRATE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE))
+TARGET_GENERIC_GETTY_TERMINAL_TYPE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_TERMINAL_TYPE))
 
 target-generic-hostname:
 	mkdir -p $(TARGET_DIR)/etc
@@ -12,7 +13,7 @@
 	echo "$(TARGET_GENERIC_ISSUE)" > $(TARGET_DIR)/etc/issue
 
 target-generic-getty:
-	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY) $(TARGET_GENERIC_GETTY_BAUDRATE) vt100 #~' \
+	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY) $(TARGET_GENERIC_GETTY_BAUDRATE) $(TARGET_GENERIC_GETTY_TERMINAL_TYPE) #~' \
 		$(TARGET_DIR)/etc/inittab
 
 ifneq ($(TARGET_GENERIC_HOSTNAME),)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-29  8:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29  8:21 [Buildroot] [PATCHv2 2/4] Enable terminal type configuration for /etc/inittab Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox