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
 	popl	%eax
874
 	popl	%eax
875
 	ret
875
 	ret
876
 	.size wait_for_tick, . - wait_for_tick
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
-/*
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
-/*
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
-/*
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
 	return usb->port;
1903
 	return usb->port;
1904
 }
1904
 }
1905
 
1905
 
1906
+/* Drag in USB configuration */
1907
+REQUIRE_OBJECT ( config_usb );
1908
+
1906
 /* Drag in hub driver */
1909
 /* Drag in hub driver */
1907
 REQUIRE_OBJECT ( usbhub );
1910
 REQUIRE_OBJECT ( usbhub );

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

115
 
115
 
116
 #define PREFIX_OBJECT( _prefix ) _C2 ( _prefix, OBJECT )
116
 #define PREFIX_OBJECT( _prefix ) _C2 ( _prefix, OBJECT )
117
 #define OBJECT_SYMBOL PREFIX_OBJECT ( obj_ )
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
 /** Always provide the symbol for the current object (defined by -DOBJECT) */
119
 /** Always provide the symbol for the current object (defined by -DOBJECT) */
122
 PROVIDE_SYMBOL ( OBJECT_SYMBOL );
120
 PROVIDE_SYMBOL ( OBJECT_SYMBOL );
123
 
121
 
124
-/** Pull in an object-specific configuration file if available */
125
-REQUEST_EXPANDED ( CONFIG_SYMBOL );
126
-
127
 /** Explicitly require another object */
122
 /** Explicitly require another object */
128
 #define REQUIRE_OBJECT( _obj ) REQUIRE_SYMBOL ( obj_ ## _obj )
123
 #define REQUIRE_OBJECT( _obj ) REQUIRE_SYMBOL ( obj_ ## _obj )
129
 
124
 

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

2826
 	__einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
2826
 	__einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
2827
 	__einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
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
 	return netdev;
239
 	return netdev;
240
 }
240
 }
241
 
241
 
242
+/* Drag in Ethernet configuration */
243
+REQUIRE_OBJECT ( config_ethernet );
244
+
242
 /* Drag in Ethernet slow protocols */
245
 /* Drag in Ethernet slow protocols */
243
 REQUIRE_OBJECT ( eth_slow );
246
 REQUIRE_OBJECT ( eth_slow );

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

1939
  err_peer_get_wwn:
1939
  err_peer_get_wwn:
1940
 	return NULL;
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
 	return ibdev;
999
 	return ibdev;
1000
 }
1000
 }
1001
 
1001
 
1002
+/* Drag in Infiniband configuration */
1003
+REQUIRE_OBJECT ( config_infiniband );
1004
+
1002
 /* Drag in IPoIB */
1005
 /* Drag in IPoIB */
1003
 REQUIRE_OBJECT ( ipoib );
1006
 REQUIRE_OBJECT ( ipoib );

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

46
 		}
46
 		}
47
 	}
47
 	}
48
 }
48
 }
49
+
50
+/* Drag in routing management configuration */
51
+REQUIRE_OBJECT ( config_route );

Loading…
Cancel
Save