浏览代码

Moved DOWNLOAD_PROTO_XXX options to config.h

tags/v0.9.3
Michael Brown 20 年前
父节点
当前提交
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
 #			Support for sending multicast packets
194
 #			Support for sending multicast packets
195
 #	-DMULTICAST_LEVEL2
195
 #	-DMULTICAST_LEVEL2
196
 #			Support for receiving multicast packets
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
 #	Interface export options:
198
 #	Interface export options:
215
 #
199
 #
348
 # CFLAGS+=	-DCOFF_IMAGE 
332
 # CFLAGS+=	-DCOFF_IMAGE 
349
 # CFLAGS+=	-DRAW_IMAGE
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
 # Multicast Support
335
 # Multicast Support
363
-# CFLAGS+=	-DALLMULTI -DMULTICAST_LEVEL1 -DMULTICAST_LEVEL2 -DDOWNLOAD_PROTO_TFTM
336
+# CFLAGS+=	-DALLMULTI -DMULTICAST_LEVEL1 -DMULTICAST_LEVEL2
364
 
337
 
365
 # Etherboot as a PXE network protocol ROM
338
 # Etherboot as a PXE network protocol ROM
366
 CFLAGS+=	-DPXE_IMAGE -DPXE_EXPORT
339
 CFLAGS+=	-DPXE_IMAGE -DPXE_EXPORT

+ 20
- 0
src/core/config.c 查看文件

170
 REQUIRE_OBJECT ( relocate );
170
 REQUIRE_OBJECT ( relocate );
171
 #endif
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
  * Drag in any required resolvers
194
  * Drag in any required resolvers
175
  *
195
  *

+ 0
- 4
src/include/etherboot.h 查看文件

49
 #define DEFAULT_BOOTFILE	PXENFSROOTPATH "/boot/pxeboot"
49
 #define DEFAULT_BOOTFILE	PXENFSROOTPATH "/boot/pxeboot"
50
 #endif
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
 #ifndef	MAX_TFTP_RETRIES
52
 #ifndef	MAX_TFTP_RETRIES
57
 #define MAX_TFTP_RETRIES	20
53
 #define MAX_TFTP_RETRIES	20
58
 #endif
54
 #endif

正在加载...
取消
保存