mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +03:00
[build] Generalise CONSOLE_VESAFB to CONSOLE_FRAMEBUFFER
The name "vesafb" is intrinsically specific to a BIOS environment. Generalise the build configuration option CONSOLE_VESAFB to CONSOLE_FRAMEBUFFER, in preparation for adding EFI framebuffer support. Existing configurations using CONSOLE_VESAFB will continue to work. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -51,9 +51,6 @@ PROVIDE_REQUIRING_SYMBOL();
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONSOLE_PCBIOS
|
||||
REQUIRE_OBJECT ( bios_console );
|
||||
#endif
|
||||
#ifdef CONSOLE_SERIAL
|
||||
REQUIRE_OBJECT ( serial );
|
||||
#endif
|
||||
@@ -81,12 +78,6 @@ REQUIRE_OBJECT ( vmconsole );
|
||||
#ifdef CONSOLE_DEBUGCON
|
||||
REQUIRE_OBJECT ( debugcon );
|
||||
#endif
|
||||
#ifdef CONSOLE_VESAFB
|
||||
REQUIRE_OBJECT ( vesafb );
|
||||
#endif
|
||||
#ifdef CONSOLE_INT13
|
||||
REQUIRE_OBJECT ( int13con );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Drag in all requested network protocols
|
||||
|
||||
41
src/config/config_efi.c
Normal file
41
src/config/config_efi.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*
|
||||
* You can also choose to distribute this program under the terms of
|
||||
* the Unmodified Binary Distribution Licence (as given in the file
|
||||
* COPYING.UBDL), provided that you have satisfied its requirements.
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <config/console.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
* EFI-specific configuration options
|
||||
*
|
||||
*/
|
||||
|
||||
PROVIDE_REQUIRING_SYMBOL();
|
||||
|
||||
/*
|
||||
* Drag in all requested console types
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONSOLE_EFI
|
||||
REQUIRE_OBJECT ( efi_console );
|
||||
#endif
|
||||
41
src/config/config_linux.c
Normal file
41
src/config/config_linux.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*
|
||||
* You can also choose to distribute this program under the terms of
|
||||
* the Unmodified Binary Distribution Licence (as given in the file
|
||||
* COPYING.UBDL), provided that you have satisfied its requirements.
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <config/console.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Linux-specific configuration options
|
||||
*
|
||||
*/
|
||||
|
||||
PROVIDE_REQUIRING_SYMBOL();
|
||||
|
||||
/*
|
||||
* Drag in all requested console types
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONSOLE_LINUX
|
||||
REQUIRE_OBJECT ( linux_console );
|
||||
#endif
|
||||
50
src/config/config_pcbios.c
Normal file
50
src/config/config_pcbios.c
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*
|
||||
* You can also choose to distribute this program under the terms of
|
||||
* the Unmodified Binary Distribution Licence (as given in the file
|
||||
* COPYING.UBDL), provided that you have satisfied its requirements.
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <config/console.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
* BIOS-specific configuration options
|
||||
*
|
||||
*/
|
||||
|
||||
PROVIDE_REQUIRING_SYMBOL();
|
||||
|
||||
/*
|
||||
* Drag in all requested console types
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONSOLE_PCBIOS
|
||||
REQUIRE_OBJECT ( bios_console );
|
||||
#endif
|
||||
#ifdef CONSOLE_VESAFB
|
||||
REQUIRE_OBJECT ( vesafb );
|
||||
#endif
|
||||
#ifdef CONSOLE_FRAMEBUFFER
|
||||
REQUIRE_OBJECT ( vesafb );
|
||||
#endif
|
||||
#ifdef CONSOLE_INT13
|
||||
REQUIRE_OBJECT ( int13con );
|
||||
#endif
|
||||
@@ -35,7 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
*/
|
||||
|
||||
//#define CONSOLE_SERIAL /* Serial port console */
|
||||
//#define CONSOLE_VESAFB /* VESA framebuffer console */
|
||||
//#define CONSOLE_FRAMEBUFFER /* Graphical framebuffer console */
|
||||
//#define CONSOLE_SYSLOG /* Syslog console */
|
||||
//#define CONSOLE_SYSLOGS /* Encrypted syslog console */
|
||||
//#define CONSOLE_VMWARE /* VMware logfile console */
|
||||
|
||||
Reference in New Issue
Block a user