소스 검색

Moved DOWNLOAD_PROTO_XXX options to config.h

tags/v0.9.3
Michael Brown 19 년 전
부모
커밋
cc980d1c94
3개의 변경된 파일21개의 추가작업 그리고 32개의 파일을 삭제
  1. 1
    28
      src/Config
  2. 20
    0
      src/core/config.c
  3. 0
    4
      src/include/etherboot.h

+ 1
- 28
src/Config 파일 보기

@@ -194,22 +194,6 @@
194 194
 #			Support for sending multicast packets
195 195
 #	-DMULTICAST_LEVEL2
196 196
 #			Support for receiving multicast packets
197
-#	-DDNS_RESOLVER
198
-#			Support for resolving hostnames in bootfile name (experimental)
199
-#	-DDOWNLOAD_PROTO_TFTP
200
-#			If defined, includes TFTP support (recommended).
201
-#	-DDOWNLOAD_PROTO_NFS
202
-#			If defined, includes NFS support.
203
-#	-DDEFAULT_PROTO_NFS
204
-#			If defined, makes NFS the default protocol instead
205
-#			of TFTP. Requires DOWNLOAD_PROTO_NFS.
206
-#	-DDOWNLOAD_PROTO_SLAM
207
-#			If defined, includes Scalable Local Area Multicast
208
-#			support.
209
-#	-DDOWNLOAD_PROTO_TFTM
210
-#			If defined, includes TFTP Multicast mode support.
211
-#	-DDOWNLOAD_PROTO_HTTP
212
-#			If defined, includes HTTP support.
213 197
 #
214 198
 #	Interface export options:
215 199
 #
@@ -348,19 +332,8 @@ CFLAGS+=	-DTAGGED_IMAGE -DELF_IMAGE
348 332
 # CFLAGS+=	-DCOFF_IMAGE 
349 333
 # CFLAGS+=	-DRAW_IMAGE
350 334
 
351
-# Download files via TFTP
352
-CFLAGS+=	-DDOWNLOAD_PROTO_TFTP
353
-# Change download protocol to NFS, default is TFTP
354
-# CFLAGS+=	-DDOWNLOAD_PROTO_NFS
355
-# Change download protocol to HTTP, default is TFTP
356
-# CFLAGS+=	-DDOWNLOAD_PROTO_HTTP
357
-# Change default protocol to NFS
358
-# CFLAGS+=	-DDEFAULT_PROTO_NFS
359
-# Support to resolve hostnames in boot filename
360
-# CFLAGS+=	-DDNS_RESOLVER
361
-
362 335
 # Multicast Support
363
-# CFLAGS+=	-DALLMULTI -DMULTICAST_LEVEL1 -DMULTICAST_LEVEL2 -DDOWNLOAD_PROTO_TFTM
336
+# CFLAGS+=	-DALLMULTI -DMULTICAST_LEVEL1 -DMULTICAST_LEVEL2
364 337
 
365 338
 # Etherboot as a PXE network protocol ROM
366 339
 CFLAGS+=	-DPXE_IMAGE -DPXE_EXPORT

+ 20
- 0
src/core/config.c 파일 보기

@@ -170,6 +170,26 @@ REQUIRE_OBJECT ( pc_kbd );
170 170
 REQUIRE_OBJECT ( relocate );
171 171
 #endif
172 172
 
173
+/*
174
+ * Drag in all requested protocols
175
+ *
176
+ */
177
+#ifdef DOWNLOAD_PROTO_TFTP
178
+REQUIRE_OBJECT ( tftp );
179
+#endif
180
+#ifdef DOWNLOAD_PROTO_NFS
181
+REQUIRE_OBJECT ( nfs );
182
+#endif
183
+#ifdef DOWNLOAD_PROTO_HTTP
184
+REQUIRE_OBJECT ( http );
185
+#endif
186
+#ifdef DOWNLOAD_PROTO_TFTM
187
+REQUIRE_OBJECT ( tftm );
188
+#endif
189
+#ifdef DOWNLOAD_PROTO_SLAM
190
+REQUIRE_OBJECT ( slam );
191
+#endif
192
+
173 193
 /*
174 194
  * Drag in any required resolvers
175 195
  *

+ 0
- 4
src/include/etherboot.h 파일 보기

@@ -49,10 +49,6 @@
49 49
 #define DEFAULT_BOOTFILE	PXENFSROOTPATH "/boot/pxeboot"
50 50
 #endif
51 51
 
52
-#if	!defined(DOWNLOAD_PROTO_TFTP) && !defined(DOWNLOAD_PROTO_NFS) && !defined(DOWNLOAD_PROTO_SLAM) && !defined(DOWNLOAD_PROTO_TFTM) && !defined(DOWNLOAD_PROTO_DISK) && !defined(DOWNLOAD_PROTO_HTTP)
53
-#error No download protocol defined!
54
-#endif
55
-
56 52
 #ifndef	MAX_TFTP_RETRIES
57 53
 #define MAX_TFTP_RETRIES	20
58 54
 #endif

Loading…
취소
저장