Переглянути джерело

[ethernet] Include AoE only for Ethernet builds

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 роки тому
джерело
коміт
588ba3ee9a
2 змінених файлів з 23 додано та 3 видалено
  1. 0
    3
      src/config/config.c
  2. 23
    0
      src/config/config_ethernet.c

+ 0
- 3
src/config/config.c Переглянути файл

@@ -135,9 +135,6 @@ REQUIRE_OBJECT ( slam );
135 135
 #ifdef SANBOOT_PROTO_ISCSI
136 136
 REQUIRE_OBJECT ( iscsiboot );
137 137
 #endif
138
-#ifdef SANBOOT_PROTO_AOE
139
-REQUIRE_OBJECT ( aoeboot );
140
-#endif
141 138
 #ifdef SANBOOT_PROTO_IB_SRP
142 139
 REQUIRE_OBJECT ( ib_srpboot );
143 140
 #endif

+ 23
- 0
src/config/config_ethernet.c Переглянути файл

@@ -0,0 +1,23 @@
1
+/*
2
+ * This program is free software; you can redistribute it and/or
3
+ * modify it under the terms of the GNU General Public License as
4
+ * published by the Free Software Foundation; either version 2, or (at
5
+ * your option) any later version.
6
+ */
7
+
8
+FILE_LICENCE ( GPL2_OR_LATER );
9
+
10
+#include <config/general.h>
11
+
12
+/** @file
13
+ *
14
+ * Ethernet configuration options
15
+ *
16
+ */
17
+
18
+/*
19
+ * Drag in Ethernet-specific protocols
20
+ */
21
+#ifdef SANBOOT_PROTO_AOE
22
+REQUIRE_OBJECT ( aoeboot );
23
+#endif

Завантаження…
Відмінити
Зберегти