From mboxrd@z Thu Jan 1 00:00:00 1970 From: konrad.wilk@oracle.com (Konrad Rzeszutek Wilk) Date: Mon, 12 Dec 2016 09:47:10 -0500 Subject: [Xen-devel] [PATCH v2 3/4] Xen: Select correct dom0 console In-Reply-To: <20161122150917.16524-4-andre.przywara@arm.com> References: <20161122150917.16524-1-andre.przywara@arm.com> <20161122150917.16524-4-andre.przywara@arm.com> Message-ID: <20161212144710.GC1686@char.us.oracle.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Nov 22, 2016 at 03:09:16PM +0000, Andre Przywara wrote: > From: Ian Campbell > > If Xen is enabled, tell Dom0 to use the 'hvc0' console, and fall back to > the usual ttyAMA0 otherwise. > > Signed-off-by: Ian Campbell > Signed-off-by: Christoffer Dall > Signed-off-by: Andre Przywara > Reviewed-by: Julien Grall Tested-by: Konrad Rzeszutek Wilk > --- > configure.ac | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index aff4aad..c959ab8 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -92,7 +92,8 @@ AC_ARG_WITH([initrd], > AC_SUBST([FILESYSTEM], [$USE_INITRD]) > AM_CONDITIONAL([INITRD], [test "x$USE_INITRD" != "x"]) > > -C_CMDLINE="console=ttyAMA0 earlyprintk=pl011,0x1c090000" > +AS_IF([test "x$X_IMAGE" = "x"],[C_CONSOLE="ttyAMA0"],[C_CONSOLE="hvc0"]) > +C_CMDLINE="console=$C_CONSOLE earlyprintk=pl011,0x1c090000" > AC_ARG_WITH([cmdline], > AS_HELP_STRING([--with-cmdline], [set a command line for the kernel]), > [C_CMDLINE=$withval]) > -- > 2.9.0 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel at lists.xen.org > https://lists.xen.org/xen-devel