]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Use REQUIRE_OBJECT() to drag in per-object configuration
authorMichael Brown <mcb30@ipxe.org>
Wed, 4 Mar 2015 17:22:07 +0000 (17:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 5 Mar 2015 00:57:44 +0000 (00:57 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/romprefix.S
src/config/config_isaromprefix.c [deleted file]
src/config/config_mromprefix.c [deleted file]
src/config/config_pciromprefix.c [deleted file]
src/drivers/bus/usb.c
src/include/compiler.h
src/net/80211/net80211.c
src/net/ethernet.c
src/net/fc.c
src/net/infiniband.c
src/usr/route.c

index 0ad6e16d8f5e0a48ac653da43a899e2f6fa47926..08fcf73b19cf17626a8c3491a54527dffd0b844c 100644 (file)
@@ -874,3 +874,6 @@ wait_for_tick:
        popl    %eax
        ret
        .size wait_for_tick, . - wait_for_tick
+
+/* Drag in ROM configuration */
+REQUIRE_OBJECT ( config_romprefix )
diff --git a/src/config/config_isaromprefix.c b/src/config/config_isaromprefix.c
deleted file mode 100644 (file)
index d5a2b03..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA.
- *
- * You can also choose to distribute this program under the terms of
- * the Unmodified Binary Distribution Licence (as given in the file
- * COPYING.UBDL), provided that you have satisfied its requirements.
- */
-
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
-
-#include "config_romprefix.c"
diff --git a/src/config/config_mromprefix.c b/src/config/config_mromprefix.c
deleted file mode 100644 (file)
index d5a2b03..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA.
- *
- * You can also choose to distribute this program under the terms of
- * the Unmodified Binary Distribution Licence (as given in the file
- * COPYING.UBDL), provided that you have satisfied its requirements.
- */
-
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
-
-#include "config_romprefix.c"
diff --git a/src/config/config_pciromprefix.c b/src/config/config_pciromprefix.c
deleted file mode 100644 (file)
index d5a2b03..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA.
- *
- * You can also choose to distribute this program under the terms of
- * the Unmodified Binary Distribution Licence (as given in the file
- * COPYING.UBDL), provided that you have satisfied its requirements.
- */
-
-FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
-
-#include "config_romprefix.c"
index af3663eb0bdbc5d748ab5b6f3179ff0b01d8991d..91d52b0cc3b0c42eff5507aab4b499eba168021f 100644 (file)
@@ -1903,5 +1903,8 @@ struct usb_port * usb_root_hub_port ( struct usb_device *usb ) {
        return usb->port;
 }
 
+/* Drag in USB configuration */
+REQUIRE_OBJECT ( config_usb );
+
 /* Drag in hub driver */
 REQUIRE_OBJECT ( usbhub );
index 0b6f61a3f745faec6e2df96f2bfd0c5be8de4100..f877ebcec95eee05e0e7bbb5c239a34f202a2db6 100644 (file)
 
 #define PREFIX_OBJECT( _prefix ) _C2 ( _prefix, OBJECT )
 #define OBJECT_SYMBOL PREFIX_OBJECT ( obj_ )
-#define REQUEST_EXPANDED( _sym ) REQUEST_SYMBOL ( _sym )
-#define CONFIG_SYMBOL PREFIX_OBJECT ( obj_config_ )
 
 /** Always provide the symbol for the current object (defined by -DOBJECT) */
 PROVIDE_SYMBOL ( OBJECT_SYMBOL );
 
-/** Pull in an object-specific configuration file if available */
-REQUEST_EXPANDED ( CONFIG_SYMBOL );
-
 /** Explicitly require another object */
 #define REQUIRE_OBJECT( _obj ) REQUIRE_SYMBOL ( obj_ ## _obj )
 
index 4349445238a2b09b4012c985d15129bd1892014a..d2051f6429126c9e30f43aebca22a856aae0abf7 100644 (file)
@@ -2826,3 +2826,6 @@ struct errortab common_wireless_errors[] __errortab = {
        __einfo_errortab ( EINFO_ECONNREFUSED_ASSOC_DENIED ),
        __einfo_errortab ( EINFO_ECONNREFUSED_AUTH_ALGO_UNSUPP ),
 };
+
+/* Drag in 802.11 configuration */
+REQUIRE_OBJECT ( config_net80211 );
index 1ca92a20fe9c8d74b007382ceecba47bf2740f5d..a4bdfd4eed728aab94183155c3dafe9e1c59ae78 100644 (file)
@@ -239,5 +239,8 @@ struct net_device * alloc_etherdev ( size_t priv_size ) {
        return netdev;
 }
 
+/* Drag in Ethernet configuration */
+REQUIRE_OBJECT ( config_ethernet );
+
 /* Drag in Ethernet slow protocols */
 REQUIRE_OBJECT ( eth_slow );
index d37e81eb9b7f64ebfc7bd697e311666d7eed7f2d..459f6fc36bed9b53175805e69b2719224f0a2590 100644 (file)
@@ -1939,3 +1939,6 @@ struct fc_ulp * fc_ulp_get_port_id_type ( struct fc_port *port,
  err_peer_get_wwn:
        return NULL;
 }
+
+/* Drag in Fibre Channel configuration */
+REQUIRE_OBJECT ( config_fc );
index fcc8a639680ff8aa553006510ca97ef20e011332..7e545f74b7811a6c4c0a1987716d771cffe67406 100644 (file)
@@ -999,5 +999,8 @@ struct ib_device * last_opened_ibdev ( void ) {
        return ibdev;
 }
 
+/* Drag in Infiniband configuration */
+REQUIRE_OBJECT ( config_infiniband );
+
 /* Drag in IPoIB */
 REQUIRE_OBJECT ( ipoib );
index 49871e2a3538b3dbdaf1cedab44b35c6d700770d..eb50b5bb190198522a2ff53064a244c2995ad3ea 100644 (file)
@@ -46,3 +46,6 @@ void route ( void ) {
                }
        }
 }
+
+/* Drag in routing management configuration */
+REQUIRE_OBJECT ( config_route );