[serial] Allow platform to specify mechanism for identifying console

Allow the platform configuration to provide a mechanism for
identifying the serial console UART.  Provide two globally available
mechanisms: "null" (i.e. no serial console), and "fixed" (i.e. use
whatever is specified by COMCONSOLE in config/serial.h).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-06-23 16:19:07 +01:00
parent 5d9f20bbd6
commit 2ce1b185b2
7 changed files with 82 additions and 5 deletions

View File

@@ -13,6 +13,8 @@
FILE_LICENCE ( GPL2_OR_LATER );
#include <config/defaults.h>
#define COMCONSOLE COM1 /* I/O port address */
/* Keep settings from a previous user of the serial port (e.g. lilo or