diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2016-12-15 12:27:17 +0000 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2017-01-03 17:26:28 +0000 |
commit | 19c7205c2fdb4fb1c666b75cf186969761b3c90f (patch) | |
tree | 2624f932a63c79a88c0d2a5a1f6999bedc3e72a9 | |
parent | ffe062bd235d8b698ac94edbac3192e8b3beb760 (diff) | |
download | boot-wrapper-aarch64-19c7205c2fdb4fb1c666b75cf186969761b3c90f.tar.gz |
Xen: Select correct dom0 console
If Xen is enabled, tell Dom0 to use the 'hvc0' console, and fall back to
the usual ttyAMA0 otherwise.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index daa2a88..bbf4308 100644 --- a/configure.ac +++ b/configure.ac @@ -105,7 +105,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]) |