Bläddra i källkod

Image formats moved into the new config system

tags/v0.9.3
Michael Brown 19 år sedan
förälder
incheckning
6e8f29d3cb
2 ändrade filer med 38 tillägg och 64 borttagningar
  1. 0
    30
      src/Config
  2. 38
    34
      src/core/config.c

+ 0
- 30
src/Config Visa fil

@@ -163,29 +163,6 @@
163 163
 #
164 164
 #	Boot image options:
165 165
 #
166
-#	-DTAGGED_IMAGE
167
-#			Add tagged image kernel boot support (recommended).
168
-#	-DAOUT_IMAGE
169
-#			Add a.out kernel boot support (generic).
170
-#	-DELF_IMAGE
171
-#			Add generic ELF kernel boot support (recommended).
172
-#	-DEL64F_IMAGE
173
-#			Add generic ELF64 kernel boot support (useful for > 4GB disks).
174
-#	-DWINCE_IMAGE
175
-#			Add the ability to boot WINCE.... now only sis630 OK!
176
-#	-DPXE_IMAGE
177
-#			Add the ability to boot PXE NBPs.  Requires
178
-#			PXE_EXPORT.  Currently not supported on
179
-#			anything other than i386
180
-#	-DFREEBSD_PXEEMU
181
-#			Add the ability to boot PXE images... only FreeBSD supported
182
-#	-DIMAGE_MULTIBOOT
183
-#			Add Multiboot image support (currently only
184
-#			for ELF images).
185
-#			Without this, generic ELF support is selected.
186
-#	-DIMAGE_FREEBSD
187
-#			Add FreeBSD image loading support (requires at least
188
-#			-DAOUT_IMAGE and/or -DELF_IMAGE).
189 166
 #	-DFREEBSD_KERNEL_ENV
190 167
 #			Pass in FreeBSD kernel environment
191 168
 #	-DAOUT_LYNX_KDI
@@ -324,13 +301,6 @@ CFLAGS+=	-DBACKOFF_LIMIT=7 -DCONGESTED
324 301
 # CFLAGS+=	-DTRY_FLOPPY_FIRST=4
325 302
 # CFLAGS+=	-DEXIT_IF_NO_OFFER
326 303
 
327
-# Enable tagged image, generic ELF, Multiboot ELF
328
-# or FreeBSD ELF/a.out boot image support
329
-CFLAGS+=	-DTAGGED_IMAGE -DELF_IMAGE
330
-# CFLAGS+=	-DAOUT_IMAGE -DIMAGE_MULTIBOOT -DIMAGE_FREEBSD
331
-# CFLAGS+=	-DAOUT_IMAGE -DAOUT_LYNX_KDI
332
-# CFLAGS+=	-DCOFF_IMAGE 
333
-# CFLAGS+=	-DRAW_IMAGE
334 304
 
335 305
 # Multicast Support
336 306
 # CFLAGS+=	-DALLMULTI -DMULTICAST_LEVEL1 -DMULTICAST_LEVEL2

+ 38
- 34
src/core/config.c Visa fil

@@ -8,6 +8,7 @@
8 8
 #include "etherboot.h"
9 9
 #include "dev.h"
10 10
 #include "console.h"
11
+#include "image.h"
11 12
 
12 13
 #include "config/general.h"
13 14
 
@@ -48,42 +49,13 @@ void print_config ( void ) {
48 49
 		" (GPL) http://etherboot.org\n"
49 50
 		"Drivers: " );
50 51
 	print_drivers();
51
-	printf( "  Images: " 
52
-#ifdef	TAGGED_IMAGE
53
-		"NBI "
54
-#endif
55
-#ifdef	ELF64_IMAGE
56
-		"ELF64 "
57
-#endif
58
-#ifdef	ELF_IMAGE
59
-		"ELF "
60
-#endif
61
-#ifdef	COFF_IMAGE
62
-		"COFF "
63
-#endif
64
-#ifdef	IMAGE_FREEBSD
65
-		"FreeBSD "
66
-#endif
67
-#ifdef	IMAGE_MULTIBOOT
68
-		"Multiboot "
69
-#endif
70
-#ifdef	AOUT_IMAGE
71
-		"a.out "
72
-#endif
73
-#ifdef	WINCE_IMAGE
74
-		"WINCE "
75
-#endif
76
-#ifdef	PXE_IMAGE
77
-		"PXE "
78
-#endif
52
+	printf( "  Images: " );
53
+	print_images();
54
+
79 55
 #ifdef PXE_EXPORT /* All possible exports */
80
-		"  Exports: "
81
-#ifdef PXE_EXPORT
82
-		"PXE "
83
-#endif
56
+	printf ( "  Exports: PXE  " );
84 57
 #endif /* All possible exports */
85
-		"  "
86
-		);
58
+
87 59
 #if	(BOOTP_SERVER != 67) || (BOOTP_CLIENT != 68)
88 60
 	printf( "[DHCP ports %d and %d] ",
89 61
 		BOOTP_SERVER, BOOTP_CLIENT);
@@ -201,3 +173,35 @@ REQUIRE_OBJECT ( dns );
201 173
 #ifdef NMB_RESOLVER
202 174
 REQUIRE_OBJECT ( nmb );
203 175
 #endif
176
+
177
+/*
178
+ * Drag in all requested image formats
179
+ *
180
+ */
181
+#ifdef TAGGED_IMAGE
182
+REQUIRE_OBJECT ( nbi );
183
+#endif
184
+#ifdef ELF64_IMAGE
185
+REQUIRE_OBJECT ( elf64 );
186
+#endif
187
+#ifdef ELF_IMAGE
188
+REQUIRE_OBJECT ( elf );
189
+#endif
190
+#ifdef COFF_IMAGE
191
+REQUIRE_OBJECT ( coff );
192
+#endif
193
+#ifdef IMAGE_FREEBSD
194
+REQUIRE_OBJECT ( freebsd );
195
+#endif
196
+#ifdef	IMAGE_MULTIBOOT
197
+REQUIRE_OBJECT ( multiboot );
198
+#endif
199
+#ifdef	AOUT_IMAGE
200
+REQUIRE_OBJECT ( aout );
201
+#endif
202
+#ifdef	WINCE_IMAGE
203
+REQUIRE_OBJECT ( wince );
204
+#endif
205
+#ifdef	PXE_IMAGE
206
+REQUIRE_OBJECT ( pxe );
207
+#endif

Laddar…
Avbryt
Spara