summaryrefslogtreecommitdiffstats
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorMichael Brown2015-03-04 18:22:07 +0100
committerMichael Brown2015-03-05 01:57:44 +0100
commit86ae6e6c1836e43993a14db278398fc54e5419bd (patch)
tree92758900be8ba37c36448094747ace0c2f97e13e /src/net/ethernet.c
parent[build] Remove obsolete and unused portions of config.c (diff)
downloadipxe-86ae6e6c1836e43993a14db278398fc54e5419bd.tar.gz
ipxe-86ae6e6c1836e43993a14db278398fc54e5419bd.tar.xz
ipxe-86ae6e6c1836e43993a14db278398fc54e5419bd.zip
[build] Use REQUIRE_OBJECT() to drag in per-object configuration
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index 1ca92a20..a4bdfd4e 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -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 );