]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
arm64, armhf: Use dtuart for console by default
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 26 May 2017 10:41:52 +0000 (11:41 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 1 Jun 2017 10:26:50 +0000 (11:26 +0100)
We don't want to have to set a host property for each ARM host.

Julien writes:

 This command line should always work for arm64.  If the device-tree
 does not provide the property `stdout-path' then it is a bug.  We
 want the command line to be as agnostic as possible from the
 platform.

Reported-by: Julien Grall <julien.grall@arm.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ts-xen-install

index 9eb2131caa36e8c33ea63f150b593d9c4ba77e9d..3ab60909fd76cafe5d25eaaef689a3d4262b282c 100755 (executable)
@@ -145,7 +145,9 @@ sub adjustconfig () {
 sub setupboot () {
     my $xenhopt= "conswitch=x watchdog noreboot";
 
-    my $cons= get_host_property($ho, 'XenSerialConsole', 'com1');
+    my $cons= get_host_property($ho, 'XenSerialConsole',
+                               $r{arch} =~ m/^arm/ ? 'dtuart'
+                               : 'com1');
 
     if ( $cons eq "com1" ) {
        $xenhopt .= " com1=$c{Baud},8n1 console=com1,vga gdb=com1";