mirror of https://github.com/ipxe/ipxe.git
[config] Split console configuration out to config/console.h
parent
aef6d0df5c
commit
8c7deba349
|
@ -0,0 +1,21 @@
|
||||||
|
#ifndef CONFIG_CONSOLE_H
|
||||||
|
#define CONFIG_CONSOLE_H
|
||||||
|
|
||||||
|
/** @file
|
||||||
|
*
|
||||||
|
* Console configuration
|
||||||
|
*
|
||||||
|
* These options specify the console types that Etherboot will use for
|
||||||
|
* interaction with the user.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config/defaults.h>
|
||||||
|
|
||||||
|
//#define CONSOLE_PCBIOS /* Default BIOS console */
|
||||||
|
//#define CONSOLE_SERIAL /* Serial port */
|
||||||
|
//#define CONSOLE_DIRECT_VGA /* Direct access to VGA card */
|
||||||
|
//#define CONSOLE_BTEXT /* Who knows what this does? */
|
||||||
|
//#define CONSOLE_PC_KBD /* Direct access to PC keyboard */
|
||||||
|
|
||||||
|
#endif /* CONFIG_CONSOLE_H */
|
|
@ -9,4 +9,6 @@
|
||||||
|
|
||||||
#define IOAPI_X86
|
#define IOAPI_X86
|
||||||
|
|
||||||
|
#define CONSOLE_PCBIOS
|
||||||
|
|
||||||
#endif /* CONFIG_DEFAULTS_PCBIOS_H */
|
#endif /* CONFIG_DEFAULTS_PCBIOS_H */
|
||||||
|
|
|
@ -7,20 +7,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Console configuration
|
|
||||||
*
|
|
||||||
* These options specify the console types that Etherboot will use for
|
|
||||||
* interaction with the user.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define CONSOLE_FIRMWARE /* Default BIOS console */
|
|
||||||
#undef CONSOLE_SERIAL /* Serial port */
|
|
||||||
#undef CONSOLE_DIRECT_VGA /* Direct access to VGA card */
|
|
||||||
#undef CONSOLE_BTEXT /* Who knows what this does? */
|
|
||||||
#undef CONSOLE_PC_KBD /* Direct access to PC keyboard */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Timer configuration
|
* Timer configuration
|
||||||
*
|
*
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
* your option) any later version.
|
* your option) any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config/general.h"
|
#include <config/general.h>
|
||||||
|
#include <config/console.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Build ID string calculations
|
* Build ID string calculations
|
||||||
|
@ -38,19 +39,9 @@
|
||||||
/*
|
/*
|
||||||
* Drag in all requested console types
|
* Drag in all requested console types
|
||||||
*
|
*
|
||||||
* CONSOLE_DUAL sets both CONSOLE_FIRMWARE and CONSOLE_SERIAL for
|
|
||||||
* legacy compatibility.
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONSOLE_DUAL
|
#ifdef CONSOLE_PCBIOS
|
||||||
#undef CONSOLE_FIRMWARE
|
|
||||||
#define CONSOLE_FIRMWARE 1
|
|
||||||
#undef CONSOLE_SERIAL
|
|
||||||
#define CONSOLE_SERIAL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONSOLE_FIRMWARE
|
|
||||||
REQUIRE_OBJECT ( bios_console );
|
REQUIRE_OBJECT ( bios_console );
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONSOLE_SERIAL
|
#ifdef CONSOLE_SERIAL
|
||||||
|
|
Loading…
Reference in New Issue