]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[cloud] Do not enable serial console on EFI platforms
authorMichael Brown <mcb30@ipxe.org>
Wed, 17 Feb 2021 22:37:56 +0000 (22:37 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 17 Feb 2021 22:38:38 +0000 (22:38 +0000)
Most EFI firmware builds (including those found on ARM64 instances in
AWS EC2) will already send console output to the serial port.

Do not enable direct serial console output in EFI builds using
CONFIG=cloud.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/cloud/console.h

index dae18e5564bda63ebaf3ff3bc05e65a2543a4980..83318dd30102a9f0c818dda4a9ed6bddb49062b6 100644 (file)
  * Note that the serial port output from an AWS EC2 virtual machine is
  * generally available (as the "System Log") only after the instance
  * has been stopped.
+ *
+ * Enable only for non-EFI builds, on the assumption that the standard
+ * EFI firmware is likely to already be logging to the serial port.
  */
+#ifndef PLATFORM_efi
 #define CONSOLE_SERIAL
+#endif
 
 /* Log to partition on local disk
  *