Selaa lähdekoodia

[infiniband] Include SRP by default, but only for Infiniband builds

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 vuotta sitten
vanhempi
commit
50da1122e6
3 muutettua tiedostoa jossa 24 lisäystä ja 3 poistoa
  1. 0
    3
      src/config/config.c
  2. 23
    0
      src/config/config_infiniband.c
  3. 1
    0
      src/config/defaults/pcbios.h

+ 0
- 3
src/config/config.c Näytä tiedosto

@@ -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_IB_SRP
139
-REQUIRE_OBJECT ( ib_srpboot );
140
-#endif
141 138
 
142 139
 /*
143 140
  * Drag in all requested resolvers

+ 23
- 0
src/config/config_infiniband.c Näytä tiedosto

@@ -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
+ * Infiniband configuration options
15
+ *
16
+ */
17
+
18
+/*
19
+ * Drag in Infiniband-specific protocols
20
+ */
21
+#ifdef SANBOOT_PROTO_IB_SRP
22
+REQUIRE_OBJECT ( ib_srpboot );
23
+#endif

+ 1
- 0
src/config/defaults/pcbios.h Näytä tiedosto

@@ -31,5 +31,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
31 31
 
32 32
 #define	SANBOOT_PROTO_ISCSI	/* iSCSI protocol */
33 33
 #define	SANBOOT_PROTO_AOE	/* AoE protocol */
34
+#define	SANBOOT_PROTO_IB_SRP	/* Infiniband SCSI RDMA protocol */
34 35
 
35 36
 #endif /* CONFIG_DEFAULTS_PCBIOS_H */

Loading…
Peruuta
Tallenna