mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 01:28:02 +03:00
The current usage model for iPXE is that the default configuration is relatively minimal to reduce code size, with users encouraged to build from source if necessary to enable additional features. This approach is somewhat incompatible with the Secure Boot model, which by design makes it prohibitively difficult for users to use their own compiled binaries. For published Secure Boot signed binaries to be useful, they will have to already include all features that the majority of users will need. Extend the default configuration for EFI (and other non-BIOS platforms) to include HTTPS support, framebuffer support, and a selection of commands and features that are reasonably expected to be used by large numbers of users. The default configuration for BIOS platforms is deliberately left unchanged, since BIOS binaries are typically subject to severe size constraints. Signed-off-by: Michael Brown <mcb30@ipxe.org>
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
#ifndef CONFIG_SETTINGS_H
|
|
#define CONFIG_SETTINGS_H
|
|
|
|
/** @file
|
|
*
|
|
* Configuration settings sources
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|
FILE_SECBOOT ( PERMITTED );
|
|
|
|
#include <config/defaults.h>
|
|
|
|
/* Settings sources supported on all platforms */
|
|
#define ACPI_SETTINGS /* ACPI settings */
|
|
#define PCI_SETTINGS /* PCI device settings */
|
|
#define USB_SETTINGS /* USB device settings */
|
|
|
|
/* Settings sources supported only on EFI platforms */
|
|
#if defined ( PLATFORM_efi )
|
|
#define EFI_SETTINGS /* EFI variable settings */
|
|
#endif
|
|
|
|
/* Settings sources supported only when memory maps are available */
|
|
#if ! defined ( MEMMAP_NULL )
|
|
//#define MEMMAP_SETTINGS /* Memory map settings */
|
|
#endif
|
|
|
|
/* Settings sources supported only on x86 CPUs */
|
|
#if defined ( __i386__ ) || defined ( __x86_64__ )
|
|
#define CPUID_SETTINGS /* CPUID settings */
|
|
//#define VMWARE_SETTINGS /* VMware GuestInfo settings */
|
|
//#define VRAM_SETTINGS /* Video RAM dump settings */
|
|
#endif
|
|
|
|
/* Disable settings sources not historically included in BIOS builds */
|
|
#if defined ( PLATFORM_pcbios )
|
|
#undef ACPI_SETTINGS
|
|
#undef CPUID_SETTINGS
|
|
#endif
|
|
|
|
#include <config/named.h>
|
|
#include NAMED_CONFIG(settings.h)
|
|
#include <config/local/settings.h>
|
|
#include LOCAL_NAMED_CONFIG(settings.h)
|
|
|
|
#endif /* CONFIG_SETTINGS_H */
|