From 588ba3ee9ad4899e0933cebd05556b3e42cf4eef Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 12 Sep 2010 21:45:50 +0100 Subject: [PATCH] [ethernet] Include AoE only for Ethernet builds Signed-off-by: Michael Brown --- src/config/config.c | 3 --- src/config/config_ethernet.c | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 src/config/config_ethernet.c diff --git a/src/config/config.c b/src/config/config.c index cb66e164..e5017035 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -135,9 +135,6 @@ REQUIRE_OBJECT ( slam ); #ifdef SANBOOT_PROTO_ISCSI REQUIRE_OBJECT ( iscsiboot ); #endif -#ifdef SANBOOT_PROTO_AOE -REQUIRE_OBJECT ( aoeboot ); -#endif #ifdef SANBOOT_PROTO_IB_SRP REQUIRE_OBJECT ( ib_srpboot ); #endif diff --git a/src/config/config_ethernet.c b/src/config/config_ethernet.c new file mode 100644 index 00000000..51c197d7 --- /dev/null +++ b/src/config/config_ethernet.c @@ -0,0 +1,23 @@ +/* + * 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, or (at + * your option) any later version. + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include + +/** @file + * + * Ethernet configuration options + * + */ + +/* + * Drag in Ethernet-specific protocols + */ +#ifdef SANBOOT_PROTO_AOE +REQUIRE_OBJECT ( aoeboot ); +#endif