@@ -106,30 +106,58 @@ FILE_SECBOOT ( PERMITTED );
106106
107107#define DNS_RESOLVER /* DNS resolver */
108108
109- /*
109+ /*****************************************************************************
110+ *
110111 * Image types
111112 *
112- * Etherboot supports various image formats. Select whichever ones
113- * you want to use.
114- *
115- */
116- //#define IMAGE_NBI /* NBI image support */
117- //#define IMAGE_ELF /* ELF image support */
118- //#define IMAGE_MULTIBOOT /* MultiBoot image support */
119- //#define IMAGE_PXE /* PXE image support */
120- //#define IMAGE_SCRIPT /* iPXE script image support */
121- //#define IMAGE_LKRN /* Linux kernel image support */
122- //#define IMAGE_COMBOOT /* SYSLINUX COMBOOT image support */
123- //#define IMAGE_EFI /* EFI image support */
124- //#define IMAGE_SDI /* SDI image support */
125- //#define IMAGE_PNM /* PNM image support */
126- #define IMAGE_PNG /* PNG image support */
127- #define IMAGE_DER /* DER image support */
128- #define IMAGE_PEM /* PEM image support */
129- //#define IMAGE_EFISIG /* EFI signature list image support */
130- //#define IMAGE_ZLIB /* ZLIB image support */
131- //#define IMAGE_GZIP /* GZIP image support */
132- //#define IMAGE_UCODE /* Microcode update image support */
113+ * iPXE supports various image formats. Select whichever ones you
114+ * want to use.
115+ *
116+ */
117+
118+ /* Image types supported on all platforms */
119+ #define IMAGE_DER /* ASN.1 DER-encoded image support */
120+ //#define IMAGE_GZIP /* GZIP compressed image support */
121+ #define IMAGE_PEM /* ASN.1 PEM-encoded image support */
122+ //#define IMAGE_PNM /* PNM graphical image support */
123+ #define IMAGE_PNG /* PNG graphical image support */
124+ #define IMAGE_SCRIPT /* iPXE script image support */
125+ //#define IMAGE_ZLIB /* ZLIB compressed image support */
126+
127+ /* Image types supported only on BIOS platforms */
128+ #if defined ( PLATFORM_pcbios )
129+ #define IMAGE_BZIMAGE /* Linux bzImage image support */
130+ //#define IMAGE_COMBOOT /* SYSLINUX COMBOOT image support */
131+ #define IMAGE_ELF /* ELF image support */
132+ #define IMAGE_MULTIBOOT /* MultiBoot image support */
133+ //#define IMAGE_NBI /* NBI image support */
134+ #define IMAGE_PXE /* PXE image support */
135+ //#define IMAGE_SDI /* SDI image support */
136+ #endif
137+
138+ /* Image types supported only on EFI platforms */
139+ #if defined ( PLATFORM_efi )
140+ #define IMAGE_EFI /* EFI image support */
141+ #define IMAGE_EFISIG /* EFI signature list image support */
142+ #endif
143+
144+ /* Image types supported only on RISC-V SBI platforms */
145+ #if defined ( PLATFORM_sbi )
146+ #define IMAGE_LKRN /* Linux kernel image support */
147+ #endif
148+
149+ /* Image types supported only on x86 CPUs */
150+ #if defined ( __i386__ ) || defined ( __x86_64__ )
151+ //#define IMAGE_UCODE /* Microcode update image support */
152+ #endif
153+
154+ /* Enable commonly encountered compressed versions of some image types */
155+ #if defined ( IMAGE_EFI ) && defined ( __aarch64__ )
156+ #define IMAGE_GZIP
157+ #endif
158+ #if defined ( IMAGE_LKRN ) && defined ( __riscv )
159+ #define IMAGE_GZIP
160+ #endif
133161
134162/*
135163 * Command-line commands to include
0 commit comments