diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2017-02-06 20:33:36 -0700 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 14:59:27 +0100 |
commit | f69d73f1b2f934c53003bc49ce3cc062e89bb5ae (patch) | |
tree | 546b16fab80cb9c6c8cdbb28d8073b369dfe86f3 | |
parent | 91821c8c0b183337c5b93d5bf915cef314164c2b (diff) | |
download | upstream-f69d73f1b2f934c53003bc49ce3cc062e89bb5ae.tar.gz upstream-f69d73f1b2f934c53003bc49ce3cc062e89bb5ae.tar.bz2 upstream-f69d73f1b2f934c53003bc49ce3cc062e89bb5ae.zip |
build: allow specifying flow-control to grub on serial console
On the more sophisticated (i.e. deeper FIFO) serial controllers,
flow-control might be needed to avoid dropping output.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
(cherry picked from commit 7fe5963be023fd59a11652ecfb065d3405a91c48)
-rw-r--r-- | config/Config-images.in | 5 | ||||
-rw-r--r-- | target/linux/x86/image/Makefile | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/Config-images.in b/config/Config-images.in index f59a33613d..95752f737a 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -203,6 +203,11 @@ menu "Target Images" default 38400 if TARGET_x86_generic default 115200 + config GRUB_FLOWCONTROL + bool "Use RTE/CTS on serial console" + depends on GRUB_SERIAL != "" + default n + config GRUB_BOOTOPTS string "Extra kernel boot options" depends on GRUB_IMAGES diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index f34788d67b..ca5d0123c7 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -32,8 +32,8 @@ endif GRUB_SERIAL:=$(call qstrip,$(CONFIG_GRUB_SERIAL)) ifneq ($(GRUB_SERIAL),) - GRUB_CONSOLE_CMDLINE += console=$(GRUB_SERIAL),$(CONFIG_GRUB_BAUDRATE)n8 - GRUB_SERIAL_CONFIG := serial --unit=0 --speed=$(CONFIG_GRUB_BAUDRATE) --word=8 --parity=no --stop=1 --rtscts=off + GRUB_CONSOLE_CMDLINE += console=$(GRUB_SERIAL),$(CONFIG_GRUB_BAUDRATE)n8$(if $(CONFIG_GRUB_FLOWCONTROL),r,) + GRUB_SERIAL_CONFIG := serial --unit=0 --speed=$(CONFIG_GRUB_BAUDRATE) --word=8 --parity=no --stop=1 --rtscts=$(if $(CONFIG_GRUB_FLOWCONTROL),on,off) GRUB_TERMINALS += serial endif |