Browse Source

[build] Use REQUIRE_OBJECT() to drag in per-object configuration

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
86ae6e6c18

+ 3
- 0
src/arch/i386/prefix/romprefix.S View File

@@ -874,3 +874,6 @@ wait_for_tick:
874 874
 	popl	%eax
875 875
 	ret
876 876
 	.size wait_for_tick, . - wait_for_tick
877
+
878
+/* Drag in ROM configuration */
879
+REQUIRE_OBJECT ( config_romprefix )

+ 0
- 24
src/config/config_isaromprefix.c View File

@@ -1,24 +0,0 @@
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 of the
5
- * License, or (at your option) any later version.
6
- *
7
- * This program is distributed in the hope that it will be useful, but
8
- * WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10
- * General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program; if not, write to the Free Software
14
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
- * 02110-1301, USA.
16
- *
17
- * You can also choose to distribute this program under the terms of
18
- * the Unmodified Binary Distribution Licence (as given in the file
19
- * COPYING.UBDL), provided that you have satisfied its requirements.
20
- */
21
-
22
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
23
-
24
-#include "config_romprefix.c"

+ 0
- 24
src/config/config_mromprefix.c View File

@@ -1,24 +0,0 @@
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 of the
5
- * License, or (at your option) any later version.
6
- *
7
- * This program is distributed in the hope that it will be useful, but
8
- * WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10
- * General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program; if not, write to the Free Software
14
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
- * 02110-1301, USA.
16
- *
17
- * You can also choose to distribute this program under the terms of
18
- * the Unmodified Binary Distribution Licence (as given in the file
19
- * COPYING.UBDL), provided that you have satisfied its requirements.
20
- */
21
-
22
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
23
-
24
-#include "config_romprefix.c"

+ 0
- 24
src/config/config_pciromprefix.c View File

@@ -1,24 +0,0 @@
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 of the
5
- * License, or (at your option) any later version.
6
- *
7
- * This program is distributed in the hope that it will be useful, but
8
- * WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10
- * General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program; if not, write to the Free Software
14
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
- * 02110-1301, USA.
16
- *
17
- * You can also choose to distribute this program under the terms of
18
- * the Unmodified Binary Distribution Licence (as given in the file
19
- * COPYING.UBDL), provided that you have satisfied its requirements.
20
- */
21
-
22
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
23
-
24
-#include "config_romprefix.c"

+ 3
- 0
src/drivers/bus/usb.c View File

@@ -1903,5 +1903,8 @@ struct usb_port * usb_root_hub_port ( struct usb_device *usb ) {
1903 1903
 	return usb->port;
1904 1904
 }
1905 1905
 
1906
+/* Drag in USB configuration */
1907
+REQUIRE_OBJECT ( config_usb );
1908
+
1906 1909
 /* Drag in hub driver */
1907 1910
 REQUIRE_OBJECT ( usbhub );

+ 0
- 5
src/include/compiler.h View File

@@ -115,15 +115,10 @@
115 115
 
116 116
 #define PREFIX_OBJECT( _prefix ) _C2 ( _prefix, OBJECT )
117 117
 #define OBJECT_SYMBOL PREFIX_OBJECT ( obj_ )
118
-#define REQUEST_EXPANDED( _sym ) REQUEST_SYMBOL ( _sym )
119
-#define CONFIG_SYMBOL PREFIX_OBJECT ( obj_config_ )
120 118
 
121 119
 /** Always provide the symbol for the current object (defined by -DOBJECT) */
122 120
 PROVIDE_SYMBOL ( OBJECT_SYMBOL );
123 121
 
124
-/** Pull in an object-specific configuration file if available */
125
-REQUEST_EXPANDED ( CONFIG_SYMBOL );
126
-
127 122
 /** Explicitly require another object */
128 123
 #define REQUIRE_OBJECT( _obj ) REQUIRE_SYMBOL ( obj_ ## _obj )
129 124
 

+ 3
- 0
src/net/80211/net80211.c View File

@@ -2826,3 +2826,6 @@ struct errortab common_wireless_errors[] __errortab = {
2826 2826
 	__einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
2827 2827
 	__einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
2828 2828
 };
2829
+
2830
+/* Drag in 802.11 configuration */
2831
+REQUIRE_OBJECT ( config_net80211 );

+ 3
- 0
src/net/ethernet.c View File

@@ -239,5 +239,8 @@ struct net_device * alloc_etherdev ( size_t priv_size ) {
239 239
 	return netdev;
240 240
 }
241 241
 
242
+/* Drag in Ethernet configuration */
243
+REQUIRE_OBJECT ( config_ethernet );
244
+
242 245
 /* Drag in Ethernet slow protocols */
243 246
 REQUIRE_OBJECT ( eth_slow );

+ 3
- 0
src/net/fc.c View File

@@ -1939,3 +1939,6 @@ struct fc_ulp * fc_ulp_get_port_id_type ( struct fc_port *port,
1939 1939
  err_peer_get_wwn:
1940 1940
 	return NULL;
1941 1941
 }
1942
+
1943
+/* Drag in Fibre Channel configuration */
1944
+REQUIRE_OBJECT ( config_fc );

+ 3
- 0
src/net/infiniband.c View File

@@ -999,5 +999,8 @@ struct ib_device * last_opened_ibdev ( void ) {
999 999
 	return ibdev;
1000 1000
 }
1001 1001
 
1002
+/* Drag in Infiniband configuration */
1003
+REQUIRE_OBJECT ( config_infiniband );
1004
+
1002 1005
 /* Drag in IPoIB */
1003 1006
 REQUIRE_OBJECT ( ipoib );

+ 3
- 0
src/usr/route.c View File

@@ -46,3 +46,6 @@ void route ( void ) {
46 46
 		}
47 47
 	}
48 48
 }
49
+
50
+/* Drag in routing management configuration */
51
+REQUIRE_OBJECT ( config_route );

Loading…
Cancel
Save