<div dir="auto">This looks like a great simplification! </div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 29, 2018 8:39 AM, "Sebastian Huber" <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ in the network interface driver<br>
source files to avoid some build system magic.<br>
---<br>
bsps/powerpc/motorola_powerpc/<wbr>include/bsp.h | 5 +++<br>
c/src/lib/libbsp/arm/csb336/<wbr>Makefile.am | 11 ++----<br>
c/src/lib/libbsp/arm/csb336/<wbr>network/lan91c11x.c | 3 ++<br>
c/src/lib/libbsp/arm/csb336/<wbr>network/network.c | 3 ++<br>
c/src/lib/libbsp/arm/csb337/<wbr>Makefile.am | 9 +----<br>
c/src/lib/libbsp/arm/csb337/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/arm/edb7312/<wbr>Makefile.am | 12 +------<br>
c/src/lib/libbsp/arm/edb7312/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/arm/gumstix/<wbr>Makefile.am | 13 +------<br>
c/src/lib/libbsp/arm/gumstix/<wbr>rtl8019/rtl8019.c | 2 ++<br>
c/src/lib/libbsp/arm/lpc24xx/<wbr>Makefile.am | 10 +-----<br>
c/src/lib/libbsp/arm/lpc32xx/<wbr>Makefile.am | 10 +-----<br>
c/src/lib/libbsp/arm/<wbr>raspberrypi/Makefile.am | 21 +----------<br>
c/src/lib/libbsp/arm/rtl22xx/<wbr>Makefile.am | 11 +-----<br>
c/src/lib/libbsp/arm/rtl22xx/<wbr>network/network.c | 3 ++<br>
.../libbsp/arm/shared/lpc/<wbr>network/lpc-ethernet.c | 3 +-<br>
c/src/lib/libbsp/bfin/<wbr>bf537Stamp/Makefile.am | 7 +---<br>
.../libbsp/bfin/bf537Stamp/<wbr>network/networkconfig.c | 2 +-<br>
c/src/lib/libbsp/i386/pc386/<wbr>3c509/3c509.c | 2 ++<br>
c/src/lib/libbsp/i386/pc386/<wbr>3c509/elink.c | 2 ++<br>
c/src/lib/libbsp/i386/pc386/<wbr>Makefile.am | 42 ++++------------------<br>
c/src/lib/libbsp/i386/pc386/<wbr>ne2000/ne2000.c | 2 ++<br>
c/src/lib/libbsp/i386/pc386/<wbr>wd8003/wd8003.c | 2 ++<br>
c/src/lib/libbsp/lm32/lm32_<wbr>evr/Makefile.am | 6 +---<br>
c/src/lib/libbsp/lm32/<wbr>milkymist/Makefile.am | 6 +---<br>
.../lm32/shared/milkymist_<wbr>networking/network.c | 1 +<br>
c/src/lib/libbsp/lm32/shared/<wbr>tsmac/tsmac.c | 1 +<br>
c/src/lib/libbsp/m68k/av5282/<wbr>Makefile.am | 9 +----<br>
c/src/lib/libbsp/m68k/av5282/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/m68k/csb360/<wbr>network/network.c | 3 ++<br>
c/src/lib/libbsp/m68k/<wbr>gen68360/Makefile.am | 9 +----<br>
c/src/lib/libbsp/m68k/<wbr>gen68360/network/network.c | 3 ++<br>
c/src/lib/libbsp/m68k/<wbr>genmcf548x/Makefile.am | 11 +-----<br>
c/src/lib/libbsp/m68k/<wbr>genmcf548x/network/network.c | 2 ++<br>
c/src/lib/libbsp/m68k/mcf5235/<wbr>Makefile.am | 10 +-----<br>
c/src/lib/libbsp/m68k/mcf5235/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/m68k/mcf5329/<wbr>Makefile.am | 11 +-----<br>
c/src/lib/libbsp/m68k/mcf5329/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/m68k/mvme162/<wbr>Makefile.am | 9 +----<br>
c/src/lib/libbsp/m68k/mvme167/<wbr>Makefile.am | 9 +----<br>
c/src/lib/libbsp/m68k/mvme167/<wbr>network/network.c | 1 +<br>
c/src/lib/libbsp/m68k/uC5282/<wbr>Makefile.am | 9 +----<br>
c/src/lib/libbsp/m68k/uC5282/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/mips/csb350/<wbr>Makefile.am | 10 +-----<br>
c/src/lib/libbsp/mips/csb350/<wbr>network/network.c | 2 ++<br>
c/src/lib/libbsp/powerpc/<wbr>gen83xx/Makefile.am | 12 ++-----<br>
c/src/lib/libbsp/powerpc/<wbr>gen83xx/network/network.c | 1 +<br>
c/src/lib/libbsp/powerpc/<wbr>haleakala/Makefile.am | 10 +-----<br>
.../lib/libbsp/powerpc/<wbr>haleakala/network/network.c | 2 ++<br>
.../libbsp/powerpc/motorola_<wbr>powerpc/Makefile.am | 13 +------<br>
c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/Makefile.am | 11 ++----<br>
.../powerpc/mpc8260ads/<wbr>network/if_hdlcsubr.c | 2 ++<br>
.../libbsp/powerpc/mpc8260ads/<wbr>network/network.c | 3 ++<br>
c/src/lib/libbsp/powerpc/<wbr>mvme3100/network/tsec.c | 2 ++<br>
c/src/lib/libbsp/powerpc/<wbr>tqm8xx/Makefile.am | 11 ++----<br>
.../libbsp/powerpc/tqm8xx/<wbr>network/network_fec.c | 3 ++<br>
.../libbsp/powerpc/tqm8xx/<wbr>network/network_scc.c | 3 ++<br>
c/src/lib/libbsp/powerpc/<wbr>virtex/Makefile.am | 11 +-----<br>
c/src/lib/libbsp/powerpc/<wbr>virtex/network/xiltemac.c | 8 +----<br>
c/src/lib/libbsp/sparc/erc32/<wbr>Makefile.am | 9 +----<br>
.../lib/libbsp/sparc/erc32/<wbr>erc32sonic/erc32sonic.c | 2 ++<br>
c/src/lib/libbsp/sparc/leon2/<wbr>Makefile.am | 32 ++---------------<br>
.../sparc/leon2/leon_open_eth/<wbr>leon_open_eth.c | 2 ++<br>
.../sparc/leon2/leon_smc91111/<wbr>leon_smc91111.c | 2 ++<br>
c/src/lib/libbsp/sparc/leon3/<wbr>Makefile.am | 36 +++----------------<br>
.../lib/libbsp/sparc/leon3/<wbr>leon_greth/leon_greth.c | 1 +<br>
.../sparc/leon3/leon_open_eth/<wbr>leon_open_eth.c | 1 +<br>
.../sparc/leon3/leon_smc91111/<wbr>leon_smc91111.c | 2 ++<br>
c/src/lib/libbsp/sparc/shared/<wbr>net/greth.c | 3 ++<br>
c/src/lib/libcpu/bfin/<wbr>Makefile.am | 3 +-<br>
c/src/lib/libcpu/bfin/network/<wbr>ethernet.c | 2 ++<br>
c/src/lib/libcpu/powerpc/<wbr>Makefile.am | 2 --<br>
c/src/lib/libcpu/powerpc/<wbr>mpc83xx/network/tsec.c | 2 ++<br>
c/src/libchip/Makefile.am | 2 --<br>
c/src/libchip/network/cs8900.c | 2 ++<br>
c/src/libchip/network/<wbr>dec21140.c | 2 ++<br>
c/src/libchip/network/elnk.c | 2 ++<br>
c/src/libchip/network/greth.c | 2 ++<br>
c/src/libchip/network/i82586.c | 2 ++<br>
c/src/libchip/network/if_dc.c | 2 ++<br>
c/src/libchip/network/if_fxp.c | 2 ++<br>
c/src/libchip/network/open_<wbr>eth.c | 2 ++<br>
c/src/libchip/network/<wbr>smc91111.c | 2 ++<br>
c/src/libchip/network/sonic.c | 2 ++<br>
84 files changed, 150 insertions(+), 362 deletions(-)<br>
<br>
diff --git a/bsps/powerpc/motorola_<wbr>powerpc/include/bsp.h b/bsps/powerpc/motorola_<wbr>powerpc/include/bsp.h<br>
index 675796becf..f641b4885b 100644<br>
--- a/bsps/powerpc/motorola_<wbr>powerpc/include/bsp.h<br>
+++ b/bsps/powerpc/motorola_<wbr>powerpc/include/bsp.h<br>
@@ -140,6 +140,11 @@ extern int rtems_dec21140_driver_attach()<wbr>;<br>
#define RTEMS_BSP_NETWORK_DRIVER_NAME "ne1"<br>
#define RTEMS_BSP_NETWORK_DRIVER_<wbr>ATTACH rtems_ne_driver_attach<br>
extern int rtems_ne_driver_attach();<br>
+<br>
+RTEMS_INLINE_ROUTINE const char* bsp_cmdline_arg(const char* arg)<br>
+{<br>
+ return rtems_bsp_cmdline_get_param_<wbr>raw(arg);<br>
+}<br>
#endif<br>
<br>
#ifdef qemu<br>
diff --git a/c/src/lib/libbsp/arm/csb336/<wbr>Makefile.am b/c/src/lib/libbsp/arm/csb336/<wbr>Makefile.am<br>
index 0dc5c54fa0..9ec214921c 100644<br>
--- a/c/src/lib/libbsp/arm/csb336/<wbr>Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/csb336/<wbr>Makefile.am<br>
@@ -51,18 +51,11 @@ libbsp_a_SOURCES += ../shared/armv467ar-basic-<wbr>cache/cache_.h<br>
libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/<wbr>armv467ar-basic-cache<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c network/lan91c11x.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/lan91c11x.c<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/arm920.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/arm/csb336/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/arm/csb336/<wbr>network/lan91c11x.c b/c/src/lib/libbsp/arm/csb336/<wbr>network/lan91c11x.c<br>
index d11f6515bb..37594776d1 100644<br>
--- a/c/src/lib/libbsp/arm/csb336/<wbr>network/lan91c11x.c<br>
+++ b/c/src/lib/libbsp/arm/csb336/<wbr>network/lan91c11x.c<br>
@@ -16,6 +16,9 @@<br>
* found in the file LICENSE in this distribution or at<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include "lan91c11x.h"<br>
<br>
diff --git a/c/src/lib/libbsp/arm/csb336/<wbr>network/network.c b/c/src/lib/libbsp/arm/csb336/<wbr>network/network.c<br>
index 18428c0519..be3d3f7b3d 100644<br>
--- a/c/src/lib/libbsp/arm/csb336/<wbr>network/network.c<br>
+++ b/c/src/lib/libbsp/arm/csb336/<wbr>network/network.c<br>
@@ -8,6 +8,9 @@<br>
* found in the file LICENSE in this distribution or at<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
#include <mc9328mxl.h><br>
diff --git a/c/src/lib/libbsp/arm/csb337/<wbr>Makefile.am b/c/src/lib/libbsp/arm/csb337/<wbr>Makefile.am<br>
index a2d448c3e9..1870f9fba9 100644<br>
--- a/c/src/lib/libbsp/arm/csb337/<wbr>Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/csb337/<wbr>Makefile.am<br>
@@ -82,17 +82,10 @@ libbsp_a_SOURCES += ../shared/armv467ar-basic-<wbr>cache/cache_.h<br>
libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/<wbr>armv467ar-basic-cache<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/arm920.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/arm/csb337/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/arm/csb337/<wbr>network/network.c b/c/src/lib/libbsp/arm/csb337/<wbr>network/network.c<br>
index 9272eab32f..af7150122d 100644<br>
--- a/c/src/lib/libbsp/arm/csb337/<wbr>network/network.c<br>
+++ b/c/src/lib/libbsp/arm/csb337/<wbr>network/network.c<br>
@@ -10,6 +10,8 @@<br>
* MicroMonitor 1.17.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
#include <rtems/bspIo.h><br>
diff --git a/c/src/lib/libbsp/arm/<wbr>edb7312/Makefile.am b/c/src/lib/libbsp/arm/<wbr>edb7312/Makefile.am<br>
index 74e235cfeb..bbf555a616 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>edb7312/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>edb7312/Makefile.am<br>
@@ -55,17 +55,7 @@ libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/<wbr>include<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-# libcpu libraries could go here<br>
-libbsp_a_LIBADD =<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/arm/<wbr>edb7312/network/network.c b/c/src/lib/libbsp/arm/<wbr>edb7312/network/network.c<br>
index 05e7bdcebd..480808aeaa 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>edb7312/network/network.c<br>
+++ b/c/src/lib/libbsp/arm/<wbr>edb7312/network/network.c<br>
@@ -1,3 +1,5 @@<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <sys/param.h><br>
#include <sys/mbuf.h><br>
diff --git a/c/src/lib/libbsp/arm/<wbr>gumstix/Makefile.am b/c/src/lib/libbsp/arm/<wbr>gumstix/Makefile.am<br>
index d4793d6acd..842c5c0f8c 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>gumstix/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>gumstix/Makefile.am<br>
@@ -50,25 +50,14 @@ libbsp_a_SOURCES += ../../../libcpu/shared/src/<wbr>cache_manager.c<br>
libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/<wbr>include<br>
<br>
-#framebuffer<br>
if ON_SKYEYE<br>
libbsp_a_SOURCES += fb/fb.c<br>
if HAS_NETWORKING<br>
-rtl8019_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += rtl8019.rel<br>
-rtl8019_rel_SOURCES = rtl8019/rtl8019.c rtl8019/wd80x3.h<br>
-rtl8019_rel_CPPFLAGS = $(AM_CPPFLAGS) $(rtl8019_CPPFLAGS)<br>
-rtl8019_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += rtl8019/rtl8019.c rtl8019/wd80x3.h<br>
endif<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/arm920.rel<br>
<br>
-if ON_SKYEYE<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += rtl8019.rel<br>
-endif<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/arm/gumstix/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/arm/<wbr>gumstix/rtl8019/rtl8019.c b/c/src/lib/libbsp/arm/<wbr>gumstix/rtl8019/rtl8019.c<br>
index b8684f8456..995835c689 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>gumstix/rtl8019/rtl8019.c<br>
+++ b/c/src/lib/libbsp/arm/<wbr>gumstix/rtl8019/rtl8019.c<br>
@@ -8,6 +8,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <bsp/irq.h><br>
#include "wd80x3.h"<br>
diff --git a/c/src/lib/libbsp/arm/<wbr>lpc24xx/Makefile.am b/c/src/lib/libbsp/arm/<wbr>lpc24xx/Makefile.am<br>
index f47733279c..d64806b62a 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>lpc24xx/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>lpc24xx/Makefile.am<br>
@@ -137,15 +137,7 @@ libbsp_a_SOURCES += startup/start-config-pinsel.c<br>
##############################<wbr>##############################<wbr>###################<br>
<br>
if HAS_NETWORKING<br>
-<br>
-noinst_PROGRAMS = network.rel<br>
-<br>
-network_rel_SOURCES = ../shared/lpc/network/lpc-<wbr>ethernet.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-<br>
-libbsp_a_LIBADD += network.rel<br>
-<br>
+libbsp_a_SOURCES += ../shared/lpc/network/lpc-<wbr>ethernet.c<br>
endif<br>
<br>
##############################<wbr>##############################<wbr>###################<br>
diff --git a/c/src/lib/libbsp/arm/<wbr>lpc32xx/Makefile.am b/c/src/lib/libbsp/arm/<wbr>lpc32xx/Makefile.am<br>
index d92bccceac..08ff91eb91 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>lpc32xx/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>lpc32xx/Makefile.am<br>
@@ -117,15 +117,7 @@ libbsp_a_SOURCES += startup/bspstarthooks.c<br>
##############################<wbr>##############################<wbr>###################<br>
<br>
if HAS_NETWORKING<br>
-<br>
-noinst_PROGRAMS = network.rel<br>
-<br>
-network_rel_SOURCES = ../shared/lpc/network/lpc-<wbr>ethernet.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-<br>
-libbsp_a_LIBADD += network.rel<br>
-<br>
+libbsp_a_SOURCES += ../shared/lpc/network/lpc-<wbr>ethernet.c<br>
endif<br>
<br>
##############################<wbr>##############################<wbr>###################<br>
diff --git a/c/src/lib/libbsp/arm/<wbr>raspberrypi/Makefile.am b/c/src/lib/libbsp/arm/<wbr>raspberrypi/Makefile.am<br>
index 9404677c07..1fbe34350c 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>raspberrypi/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>raspberrypi/Makefile.am<br>
@@ -37,8 +37,6 @@ project_lib_DATA += linkcmds<br>
noinst_LIBRARIES = libbsp.a<br>
<br>
libbsp_a_SOURCES =<br>
-libbsp_a_CPPFLAGS = $(AM_CPPFLAGS)<br>
-libbsp_a_LIBADD =<br>
<br>
# Shared<br>
libbsp_a_SOURCES += ../../shared/bootcard.c<br>
@@ -119,7 +117,7 @@ libbsp_a_SOURCES += spi/spi.c<br>
libbsp_a_SOURCES += ../../../libcpu/shared/src/<wbr>cache_manager.c<br>
libbsp_a_SOURCES += ../shared/include/arm-cache-<wbr>l1.h<br>
libbsp_a_SOURCES += ../shared/armv467ar-basic-<wbr>cache/cache_.h<br>
-libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/<wbr>armv467ar-basic-cache<br>
+libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../shared/<wbr>armv467ar-basic-cache<br>
<br>
# Start hooks<br>
libbsp_a_SOURCES += startup/bspstarthooks.c<br>
@@ -129,23 +127,6 @@ libbsp_a_SOURCES += startup/mm_config_table.c<br>
libbsp_a_SOURCES += ../shared/mminit.c<br>
<br>
##############################<wbr>##############################<wbr>###################<br>
-# Network #<br>
-#############################<wbr>##############################<wbr>####################<br>
-<br>
-#if HAS_NETWORKING<br>
-#<br>
-#noinst_PROGRAMS = network.rel<br>
-#<br>
-#network_rel_SOURCES = ../shared/lpc/network/lpc-<wbr>ethernet.c<br>
-#network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
-#network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-#<br>
-#<br>
-#libbsp_a_LIBADD += network.rel<br>
-#<br>
-#endif<br>
-<br>
-#############################<wbr>##############################<wbr>####################<br>
# Special Rules #<br>
##############################<wbr>##############################<wbr>###################<br>
<br>
diff --git a/c/src/lib/libbsp/arm/<wbr>rtl22xx/Makefile.am b/c/src/lib/libbsp/arm/<wbr>rtl22xx/Makefile.am<br>
index f4b164364d..33db14cf0b 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>rtl22xx/Makefile.am<br>
+++ b/c/src/lib/libbsp/arm/<wbr>rtl22xx/Makefile.am<br>
@@ -54,16 +54,7 @@ libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/<wbr>include<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-libbsp_a_LIBADD =<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/arm/<wbr>rtl22xx/network/network.c b/c/src/lib/libbsp/arm/<wbr>rtl22xx/network/network.c<br>
index b4dff95438..b269a6ddfc 100644<br>
--- a/c/src/lib/libbsp/arm/<wbr>rtl22xx/network/network.c<br>
+++ b/c/src/lib/libbsp/arm/<wbr>rtl22xx/network/network.c<br>
@@ -1,4 +1,7 @@<br>
/*Note: this file is copy from 7312 BSP, and untested yet*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <sys/param.h><br>
#include <sys/mbuf.h><br>
diff --git a/c/src/lib/libbsp/arm/shared/<wbr>lpc/network/lpc-ethernet.c b/c/src/lib/libbsp/arm/shared/<wbr>lpc/network/lpc-ethernet.c<br>
index 170de7fcaa..fb8f014963 100644<br>
--- a/c/src/lib/libbsp/arm/shared/<wbr>lpc/network/lpc-ethernet.c<br>
+++ b/c/src/lib/libbsp/arm/shared/<wbr>lpc/network/lpc-ethernet.c<br>
@@ -20,8 +20,7 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
-#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ 1<br>
-#define __BSD_VISIBLE 1<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
<br>
#include <errno.h><br>
#include <inttypes.h><br>
diff --git a/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/Makefile.am b/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/Makefile.am<br>
index afa5c9cd20..ffe4ff8a51 100644<br>
--- a/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/Makefile.am<br>
+++ b/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/Makefile.am<br>
@@ -32,11 +32,7 @@ libbsp_a_SOURCES += ../../shared/bspreset.c<br>
libbsp_a_SOURCES += console/console.c<br>
<br>
if HAS_NETWORKING<br>
-networkconfig_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += networkconfig.rel<br>
-networkconfig_rel_SOURCES = network/networkconfig.c<br>
-networkconfig_rel_CPPFLAGS = $(AM_CPPFLAGS) $(networkconfig_CPPFLAGS)<br>
-networkconfig_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/networkconfig.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>mmu.rel<br>
@@ -48,7 +44,6 @@ libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/<wbr>rtc.rel<br>
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/<wbr>timer.rel<br>
<br>
if HAS_NETWORKING<br>
-libbsp_a_LIBADD += networkconfig.rel<br>
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/<wbr>network.rel<br>
endif<br>
<br>
diff --git a/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/network/<wbr>networkconfig.c b/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/network/<wbr>networkconfig.c<br>
index 891bce8661..9737530340 100644<br>
--- a/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/network/<wbr>networkconfig.c<br>
+++ b/c/src/lib/libbsp/bfin/<wbr>bf537Stamp/network/<wbr>networkconfig.c<br>
@@ -11,7 +11,7 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
-<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
<br>
#include <bsp.h><br>
#include <rtems/rtems_bsdnet.h><br>
diff --git a/c/src/lib/libbsp/i386/pc386/<wbr>3c509/3c509.c b/c/src/lib/libbsp/i386/pc386/<wbr>3c509/3c509.c<br>
index 41c1de1572..3cf7ec5226 100644<br>
--- a/c/src/lib/libbsp/i386/pc386/<wbr>3c509/3c509.c<br>
+++ b/c/src/lib/libbsp/i386/pc386/<wbr>3c509/3c509.c<br>
@@ -53,6 +53,8 @@<br>
* <a href="mailto:eric@skatter.usask.ca">eric@skatter.usask.ca</a><br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
<br>
#include <stdio.h><br>
diff --git a/c/src/lib/libbsp/i386/pc386/<wbr>3c509/elink.c b/c/src/lib/libbsp/i386/pc386/<wbr>3c509/elink.c<br>
index 2132ad29ba..ca637fb0a8 100644<br>
--- a/c/src/lib/libbsp/i386/pc386/<wbr>3c509/elink.c<br>
+++ b/c/src/lib/libbsp/i386/pc386/<wbr>3c509/elink.c<br>
@@ -31,6 +31,8 @@<br>
* Common code for dealing with 3COM ethernet cards.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <sys/types.h><br>
<br>
#include "elink.h"<br>
diff --git a/c/src/lib/libbsp/i386/pc386/<wbr>Makefile.am b/c/src/lib/libbsp/i386/pc386/<wbr>Makefile.am<br>
index 0fc36a6cb9..157d7a6017 100644<br>
--- a/c/src/lib/libbsp/i386/pc386/<wbr>Makefile.am<br>
+++ b/c/src/lib/libbsp/i386/pc386/<wbr>Makefile.am<br>
@@ -162,34 +162,12 @@ appstart.$(OBJEXT): appcpustart.$(OBJEXT)<br>
endif<br>
<br>
if HAS_NETWORKING<br>
-ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += ne2000.rel<br>
-ne2000_rel_SOURCES = ne2000/ne2000.c<br>
-ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)<br>
-ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-ne2000_rel_LDFLAGS += -Wl,--undefined=rtems_ne_<wbr>driver_attach<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += wd8003.rel<br>
-wd8003_rel_SOURCES = wd8003/wd8003.c<br>
-wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)<br>
-wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-wd8003_rel_LDFLAGS += -Wl,--undefined=rtems_wd_<wbr>driver_attach<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-3c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += 3c509.rel<br>
-3c509_rel_SOURCES = 3c509/3c509.c<br>
-3c509_rel_SOURCES += 3c509/3c509.h<br>
-3c509_rel_SOURCES += 3c509/elink.c<br>
-3c509_rel_SOURCES += 3c509/elink.h<br>
-3c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)<br>
-3c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-3c509_rel_LDFLAGS += -Wl,--undefined=rtems_3c509_<wbr>driver_attach<br>
-3c509_rel_LDFLAGS += -Wl,--undefined=ep_board<br>
+libbsp_a_SOURCES += 3c509/3c509.c<br>
+libbsp_a_SOURCES += 3c509/3c509.h<br>
+libbsp_a_SOURCES += 3c509/elink.c<br>
+libbsp_a_SOURCES += 3c509/elink.h<br>
+libbsp_a_SOURCES += ne2000/ne2000.c<br>
+libbsp_a_SOURCES += wd8003/wd8003.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>cache.rel<br>
@@ -200,14 +178,6 @@ if HAS_SMP<br>
libbsp_a_LIBADD += appstart.$(OBJEXT)<br>
endif<br>
<br>
-# We only build the Network library if HAS_NETWORKING was defined<br>
-# dec21140 is supported via libchip<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += ne2000.rel<br>
-libbsp_a_LIBADD += wd8003.rel<br>
-libbsp_a_LIBADD += 3c509.rel<br>
-endif<br>
-<br>
EXTRA_DIST += HOWTO<br>
EXTRA_DIST += README.dec21140<br>
EXTRA_DIST += STATUS<br>
diff --git a/c/src/lib/libbsp/i386/pc386/<wbr>ne2000/ne2000.c b/c/src/lib/libbsp/i386/pc386/<wbr>ne2000/ne2000.c<br>
index 0b9bdba7ee..17861405a6 100644<br>
--- a/c/src/lib/libbsp/i386/pc386/<wbr>ne2000/ne2000.c<br>
+++ b/c/src/lib/libbsp/i386/pc386/<wbr>ne2000/ne2000.c<br>
@@ -27,6 +27,8 @@<br>
* that.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <libchip/wd80x3.h><br>
<br>
diff --git a/c/src/lib/libbsp/i386/pc386/<wbr>wd8003/wd8003.c b/c/src/lib/libbsp/i386/pc386/<wbr>wd8003/wd8003.c<br>
index 1d37f38377..d10361bf2c 100644<br>
--- a/c/src/lib/libbsp/i386/pc386/<wbr>wd8003/wd8003.c<br>
+++ b/c/src/lib/libbsp/i386/pc386/<wbr>wd8003/wd8003.c<br>
@@ -9,6 +9,8 @@<br>
* <a href="mailto:eric@skatter.usask.ca">eric@skatter.usask.ca</a><br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <libchip/wd80x3.h><br>
<br>
diff --git a/c/src/lib/libbsp/lm32/lm32_<wbr>evr/Makefile.am b/c/src/lib/libbsp/lm32/lm32_<wbr>evr/Makefile.am<br>
index 1cc202819a..7f0cf77cad 100644<br>
--- a/c/src/lib/libbsp/lm32/lm32_<wbr>evr/Makefile.am<br>
+++ b/c/src/lib/libbsp/lm32/lm32_<wbr>evr/Makefile.am<br>
@@ -46,11 +46,7 @@ libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/<wbr>include<br>
<br>
if HAS_NETWORKING<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = ../../lm32/shared/tsmac/tsmac.<wbr>c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-libbsp_a_LIBADD += network.rel<br>
+libbsp_a_SOURCES += ../../lm32/shared/tsmac/tsmac.<wbr>c<br>
endif<br>
<br>
<br>
diff --git a/c/src/lib/libbsp/lm32/<wbr>milkymist/Makefile.am b/c/src/lib/libbsp/lm32/<wbr>milkymist/Makefile.am<br>
index ee3161a86d..79f6aa8fa6 100644<br>
--- a/c/src/lib/libbsp/lm32/<wbr>milkymist/Makefile.am<br>
+++ b/c/src/lib/libbsp/lm32/<wbr>milkymist/Makefile.am<br>
@@ -93,11 +93,7 @@ libbsp_a_SOURCES += ../../shared/include/cache_.h<br>
libbsp_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/../../shared/<wbr>include<br>
<br>
if HAS_NETWORKING<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = ../../lm32/shared/milkymist_<wbr>networking/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-libbsp_a_LIBADD += network.rel<br>
+libbsp_a_SOURCES += ../../lm32/shared/milkymist_<wbr>networking/network.c<br>
endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/lm32/<wbr>shared/milkymist_networking/<wbr>network.c b/c/src/lib/libbsp/lm32/<wbr>shared/milkymist_networking/<wbr>network.c<br>
index d1b3b04593..2bc518ef25 100644<br>
--- a/c/src/lib/libbsp/lm32/<wbr>shared/milkymist_networking/<wbr>network.c<br>
+++ b/c/src/lib/libbsp/lm32/<wbr>shared/milkymist_networking/<wbr>network.c<br>
@@ -10,6 +10,7 @@<br>
* Copyright (C) 2011 Sebastien Bourdeauducq<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
#define RTEMS_STATUS_CHECKS_USE_PRINTK<br>
<br>
#include <bsp.h><br>
diff --git a/c/src/lib/libbsp/lm32/<wbr>shared/tsmac/tsmac.c b/c/src/lib/libbsp/lm32/<wbr>shared/tsmac/tsmac.c<br>
index 6849ae78ae..6779f336d4 100644<br>
--- a/c/src/lib/libbsp/lm32/<wbr>shared/tsmac/tsmac.c<br>
+++ b/c/src/lib/libbsp/lm32/<wbr>shared/tsmac/tsmac.c<br>
@@ -12,6 +12,7 @@<br>
* Micro-Research Finland Oy<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
#define _KERNEL<br>
<br>
#include <rtems.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>av5282/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>av5282/Makefile.am<br>
index a3d051a365..d9842e1ca2 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>av5282/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>av5282/Makefile.am<br>
@@ -37,20 +37,13 @@ libbsp_a_SOURCES += console/console.c<br>
libbsp_a_SOURCES += timer/timer.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mcf5282/cachepd.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/m68k/av5282/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>av5282/network/network.c b/c/src/lib/libbsp/m68k/<wbr>av5282/network/network.c<br>
index 90c0b4a377..457b43c5d6 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>av5282/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>av5282/network/network.c<br>
@@ -1,3 +1,5 @@<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>csb360/network/network.c b/c/src/lib/libbsp/m68k/<wbr>csb360/network/network.c<br>
index 8abba2a1d8..47e0adb44d 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>csb360/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>csb360/network/network.c<br>
@@ -21,6 +21,9 @@<br>
* and Charles-Antoine Gauthier <<a href="mailto:charles.gauthier@iit.nrc.ca">charles.gauthier@iit.nrc.ca</a>><br>
* Copyright (c) 1999, National Research Council of Canada<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <rtems/error.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>gen68360/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>gen68360/Makefile.am<br>
index 9bb4369caa..1701c1b83d 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>gen68360/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>gen68360/Makefile.am<br>
@@ -39,19 +39,12 @@ libbsp_a_SOURCES += console/console.c ../../shared/dummy_printk_<wbr>support.c<br>
libbsp_a_SOURCES += timer/timer.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
if HAS_FPSP<br>
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/@<wbr>RTEMS_CPU_MODEL@/fpsp.rel<br>
endif<br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>gen68360/network/network.c b/c/src/lib/libbsp/m68k/<wbr>gen68360/network/network.c<br>
index 3ed3bf5590..0a038d3348 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>gen68360/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>gen68360/network/network.c<br>
@@ -7,6 +7,9 @@<br>
* Saskatoon, Saskatchewan, CANADA<br>
* <a href="mailto:eric@skatter.usask.ca">eric@skatter.usask.ca</a><br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <rtems/m68k/m68360.h><br>
#include <stdio.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>genmcf548x/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>genmcf548x/Makefile.am<br>
index fd9eac00f3..fba06369c9 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>genmcf548x/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>genmcf548x/Makefile.am<br>
@@ -54,20 +54,11 @@ libbsp_a_SOURCES += ../include/cache_.h<br>
libbsp_a_CPPFLAGS += -I$(srcdir)/include<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) \<br>
- $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mcf548x/mcdma.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/m68k/genmcf548x/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.<wbr>am</a><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>genmcf548x/network/network.c b/c/src/lib/libbsp/m68k/<wbr>genmcf548x/network/network.c<br>
index 62acda5990..13cb5fbdce 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>genmcf548x/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>genmcf548x/network/network.c<br>
@@ -37,6 +37,8 @@<br>
*<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/error.h><br>
#include <rtems/rtems_bsdnet.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mcf5235/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>mcf5235/Makefile.am<br>
index 8a9027883a..adb474f65e 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mcf5235/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mcf5235/Makefile.am<br>
@@ -39,21 +39,13 @@ libbsp_a_SOURCES += console/console.c<br>
libbsp_a_SOURCES += timer/timer.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) \<br>
- $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mcf5235/cachepd.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/m68k/mcf5235/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mcf5235/network/network.c b/c/src/lib/libbsp/m68k/<wbr>mcf5235/network/network.c<br>
index 7ce20e0400..6c8fa88be2 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mcf5235/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mcf5235/network/network.c<br>
@@ -4,6 +4,8 @@<br>
* TO DO: Check network stack code -- force longword alignment of all tx mbufs?<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mcf5329/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>mcf5329/Makefile.am<br>
index b6527dbe77..b844e949d6 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mcf5329/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mcf5329/Makefile.am<br>
@@ -38,12 +38,7 @@ libbsp_a_SOURCES += console/console.c<br>
libbsp_a_SOURCES += timer/timer.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) \<br>
- $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
@@ -51,9 +46,5 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mcf532x/cachepd.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/m68k/mcf5329/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mcf5329/network/network.c b/c/src/lib/libbsp/m68k/<wbr>mcf5329/network/network.c<br>
index 62d90f1219..c752f8d669 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mcf5329/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mcf5329/network/network.c<br>
@@ -4,6 +4,8 @@<br>
* TO DO: Check network stack code -- force longword alignment of all tx mbufs?<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mvme162/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>mvme162/Makefile.am<br>
index 9ecf9f56e0..c5e3b92f99 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mvme162/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mvme162/Makefile.am<br>
@@ -41,19 +41,12 @@ libbsp_a_SOURCES += timer/timer.c timer/timerisr.S<br>
libbsp_a_SOURCES += tod/tod.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = ../mvme167/network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += ../mvme167/network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
if HAS_FPSP<br>
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/@<wbr>RTEMS_CPU_MODEL@/fpsp.rel<br>
endif<br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mvme167/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>mvme167/Makefile.am<br>
index fdea7cb506..84a227008a 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mvme167/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mvme167/Makefile.am<br>
@@ -38,20 +38,13 @@ libbsp_a_SOURCES += console/console.c console/console-recording.h<br>
libbsp_a_SOURCES += timer/timer.c timer/timerisr.S<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel \<br>
../../../libcpu/@RTEMS_CPU@/@<wbr>RTEMS_CPU_MODEL@/fpsp.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
EXTRA_DIST += times<br>
<br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>mvme167/network/network.c b/c/src/lib/libbsp/m68k/<wbr>mvme167/network/network.c<br>
index 822db56730..06bcbfa84a 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>mvme167/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>mvme167/network/network.c<br>
@@ -1,6 +1,7 @@<br>
/* network.c: An 82596 ethernet driver for rtems-bsd.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
#define KERNEL<br>
<br>
/*<br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>uC5282/Makefile.am b/c/src/lib/libbsp/m68k/<wbr>uC5282/Makefile.am<br>
index 5572d3f3dc..870ff61a20 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>uC5282/Makefile.am<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>uC5282/Makefile.am<br>
@@ -36,19 +36,12 @@ libbsp_a_SOURCES += console/console.c<br>
libbsp_a_SOURCES += timer/timer.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mcf5282/cachepd.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/misc.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/m68k/uC5282/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/m68k/<wbr>uC5282/network/network.c b/c/src/lib/libbsp/m68k/<wbr>uC5282/network/network.c<br>
index 86a2a50bd1..b8afa0b968 100644<br>
--- a/c/src/lib/libbsp/m68k/<wbr>uC5282/network/network.c<br>
+++ b/c/src/lib/libbsp/m68k/<wbr>uC5282/network/network.c<br>
@@ -11,6 +11,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/mips/<wbr>csb350/Makefile.am b/c/src/lib/libbsp/mips/<wbr>csb350/Makefile.am<br>
index fba96dc185..aa58666dcf 100644<br>
--- a/c/src/lib/libbsp/mips/<wbr>csb350/Makefile.am<br>
+++ b/c/src/lib/libbsp/mips/<wbr>csb350/Makefile.am<br>
@@ -50,19 +50,11 @@ libbsp_a_SOURCES += irq/vectorisrs.c<br>
libbsp_a_SOURCES += ../shared/irq/interruptmask.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/mips/shared/<wbr>cache.rel<br>
libbsp_a_LIBADD += ../../../libcpu/mips/shared/<wbr>interrupts.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/mips/csb350/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/mips/<wbr>csb350/network/network.c b/c/src/lib/libbsp/mips/<wbr>csb350/network/network.c<br>
index a9dc5df281..15a1c320df 100644<br>
--- a/c/src/lib/libbsp/mips/<wbr>csb350/network/network.c<br>
+++ b/c/src/lib/libbsp/mips/<wbr>csb350/network/network.c<br>
@@ -13,6 +13,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
#include <bsp.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>gen83xx/Makefile.am<br>
index 5f9bad706e..e5d681153c 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>gen83xx/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>gen83xx/Makefile.am<br>
@@ -74,11 +74,8 @@ libbsp_a_SOURCES += i2c/i2c_init.c<br>
libbsp_a_SOURCES += spi/spi_init.c<br>
<br>
if HAS_NETWORKING<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
+libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/<wbr>mpc83xx/tsec.rel<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/cpuIdent.rel \<br>
@@ -91,11 +88,6 @@ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/cpuIdent.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc83xx/spi.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc83xx/gtm.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/<wbr>mpc83xx/tsec.rel<br>
-endif<br>
-<br>
EXTRA_DIST += README.mpc8349eamds<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>gen83xx/network/network.c b/c/src/lib/libbsp/powerpc/<wbr>gen83xx/network/network.c<br>
index 316467feaf..b870673cd3 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>gen83xx/network/network.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>gen83xx/network/network.c<br>
@@ -18,6 +18,7 @@<br>
| of the network interface driver |<br>
\*============================<wbr>==============================<wbr>=====*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>haleakala/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>haleakala/Makefile.am<br>
index 24b30661a1..022728651a 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>haleakala/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>haleakala/Makefile.am<br>
@@ -39,11 +39,7 @@ libbsp_a_SOURCES += ../../powerpc/shared/console/<wbr>uart.c \<br>
libbsp_a_SOURCES += irq/irq_init.c irq/irq.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS = network.rel<br>
-network_rel_SOURCES = network/network.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/@<wbr>exceptions@/rtems-cpu.rel \<br>
@@ -54,9 +50,5 @@ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/@<wbr>exceptions@/rtems-cpu.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>ppc403/clock.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>ppc403/timer.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/powerpc/haleakala/<a href="http://headers.am" rel="noreferrer" target="_blank">headers<wbr>.am</a><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>haleakala/network/network.c b/c/src/lib/libbsp/powerpc/<wbr>haleakala/network/network.c<br>
index e8731cb954..f77b03648f 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>haleakala/network/network.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>haleakala/network/network.c<br>
@@ -12,6 +12,8 @@<br>
*<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>motorola_powerpc/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>motorola_powerpc/Makefile.am<br>
index 96ec40e15f..bbc0a8e8b6 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>motorola_powerpc/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>motorola_powerpc/Makefile.am<br>
@@ -110,12 +110,7 @@ libbsp_a_SOURCES += ../../powerpc/shared/vme/vme_<wbr>universe.c<br>
<br>
if QEMU<br>
if HAS_NETWORKING<br>
-ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-ne2000_CPPFLAGS += '-Dbsp_cmdline_arg=rtems_bsp_<wbr>cmdline_get_param_raw'<br>
-noinst_PROGRAMS += ne2000.rel<br>
-ne2000_rel_SOURCES = ../../i386/pc386/ne2000/<wbr>ne2000.c<br>
-ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)<br>
-ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += ../../i386/pc386/ne2000/<wbr>ne2000.c<br>
endif<br>
endif<br>
<br>
@@ -132,12 +127,6 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc6xx/timer.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc6xx/altivec.rel<br>
<br>
-if QEMU<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD+=ne2000.rel<br>
-endif<br>
-endif<br>
-<br>
EXTRA_DIST += BOOTING README.mtx603e README.MVME2100 README.MVME2300 \<br>
README.MVME2400 \<br>
README.OTHERBOARDS<br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/Makefile.am<br>
index bd84c6c0cc..1f9d2f189d 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/Makefile.am<br>
@@ -50,12 +50,8 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \<br>
libbsp_a_SOURCES += ../../shared/bspreset.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-network_CPPFLAGS += -D__BSD_VISIBLE<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network.c network/if_hdlcsubr.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/if_hdlcsubr.c<br>
+libbsp_a_SOURCES += network/network.c<br>
endif<br>
<br>
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/cpuIdent.rel \<br>
@@ -66,9 +62,6 @@ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/<wbr>shared/cpuIdent.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc8260/cpm.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc8260/mmu.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc8260/timer.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
<br>
EXTRA_DIST += times<br>
<br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/if_<wbr>hdlcsubr.c b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/if_<wbr>hdlcsubr.c<br>
index a083b3978b..350efdbc22 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/if_<wbr>hdlcsubr.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/if_<wbr>hdlcsubr.c<br>
@@ -47,6 +47,8 @@<br>
* @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems/rtems_bsdnet.h><br>
<br>
#include <sys/param.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/network.c b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/network.c<br>
index 5e628963a6..fb87fc0e64 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/network.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>mpc8260ads/network/network.c<br>
@@ -23,6 +23,9 @@<br>
* Saskatoon, Saskatchewan, CANADA<br>
* <a href="mailto:eric@skatter.usask.ca">eric@skatter.usask.ca</a><br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <bsp/irq.h><br>
#include <mpc8260.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>mvme3100/network/tsec.c b/c/src/lib/libbsp/powerpc/<wbr>mvme3100/network/tsec.c<br>
index e2bea25477..37a24099c0 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>mvme3100/network/tsec.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>mvme3100/network/tsec.c<br>
@@ -44,6 +44,8 @@<br>
* ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/error.h><br>
#include <bsp/irq.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/Makefile.am<br>
index 5531021385..9173d6b527 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/Makefile.am<br>
@@ -58,11 +58,8 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \<br>
libbsp_a_SOURCES += ../../shared/bspreset.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/network_scc.c network/network_fec.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += network/network_fec.c<br>
+libbsp_a_SOURCES += network/network_scc.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
@@ -76,9 +73,5 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc8xx/mmu.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>mpc8xx/timer.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/powerpc/tqm8xx/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_fec.c b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_fec.c<br>
index 11018ea632..71da617d8c 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_fec.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_fec.c<br>
@@ -47,6 +47,9 @@<br>
* and Charles-Antoine Gauthier <<a href="mailto:charles.gauthier@iit.nrc.ca">charles.gauthier@iit.nrc.ca</a>><br>
* Copyright (c) 1999, National Research Council of Canada<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_scc.c b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_scc.c<br>
index 133dc0f4a2..98acbb3e7a 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_scc.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>tqm8xx/network/network_scc.c<br>
@@ -44,6 +44,9 @@<br>
* and Charles-Antoine Gauthier <<a href="mailto:charles.gauthier@iit.nrc.ca">charles.gauthier@iit.nrc.ca</a>><br>
* Copyright (c) 1999, National Research Council of Canada<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <stdio.h><br>
#include <errno.h><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>virtex/Makefile.am b/c/src/lib/libbsp/powerpc/<wbr>virtex/Makefile.am<br>
index 232ec7b190..0c0e1081e0 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>virtex/Makefile.am<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>virtex/Makefile.am<br>
@@ -59,12 +59,7 @@ libbsp_a_SOURCES += irq/irq_init.c<br>
libbsp_a_SOURCES += ../shared/clock/clock.c<br>
<br>
if HAS_NETWORKING<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-network_CPPFLAGS += -D__BSD_VISIBLE<br>
-noinst_PROGRAMS += network.rel<br>
-network_rel_SOURCES = network/xiltemac.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += = network/xiltemac.c<br>
endif<br>
<br>
# timer<br>
@@ -77,9 +72,5 @@ libbsp_a_LIBADD += \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>shared/cpuIdent.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += network.rel<br>
-endif<br>
-<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
include $(srcdir)/../../../../../../<wbr>bsps/powerpc/virtex/<a href="http://headers.am" rel="noreferrer" target="_blank">headers.am</a><br>
diff --git a/c/src/lib/libbsp/powerpc/<wbr>virtex/network/xiltemac.c b/c/src/lib/libbsp/powerpc/<wbr>virtex/network/xiltemac.c<br>
index 0deef00288..1c3a461466 100644<br>
--- a/c/src/lib/libbsp/powerpc/<wbr>virtex/network/xiltemac.c<br>
+++ b/c/src/lib/libbsp/powerpc/<wbr>virtex/network/xiltemac.c<br>
@@ -9,15 +9,9 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*<br>
*/<br>
-#define PPC_HAS_CLASSIC_EXCEPTIONS FALSE<br>
<br>
-#ifndef __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-#endif<br>
-<br>
-#ifndef __BSD_VISIBLE<br>
-#define __BSD_VISIBLE<br>
-#endif<br>
+#define PPC_HAS_CLASSIC_EXCEPTIONS FALSE<br>
<br>
#include <bsp.h><br>
#include <rtems/bspIo.h><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>erc32/Makefile.am b/c/src/lib/libbsp/sparc/<wbr>erc32/Makefile.am<br>
index cf499de0d5..cb7ee0a34e 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>erc32/Makefile.am<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>erc32/Makefile.am<br>
@@ -73,11 +73,7 @@ libbsp_a_SOURCES += ../../shared/<wbr>bspsmpgetcurrentprocessor.c<br>
endif<br>
<br>
if HAS_NETWORKING<br>
-erc32sonic_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-noinst_PROGRAMS += erc32sonic.rel<br>
-erc32sonic_rel_SOURCES = erc32sonic/erc32sonic.c<br>
-erc32sonic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(erc32sonic_CPPFLAGS)<br>
-erc32sonic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
+libbsp_a_SOURCES += erc32sonic/erc32sonic.c<br>
endif<br>
<br>
libbsp_a_LIBADD = \<br>
@@ -85,9 +81,6 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>cache.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>reg_win.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>syscall.rel<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += erc32sonic.rel<br>
-endif<br>
<br>
EXTRA_DIST += times<br>
<br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>erc32/erc32sonic/erc32sonic.c b/c/src/lib/libbsp/sparc/<wbr>erc32/erc32sonic/erc32sonic.c<br>
index f7d7b61f5d..ce108bd825 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>erc32/erc32sonic/erc32sonic.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>erc32/erc32sonic/erc32sonic.c<br>
@@ -20,6 +20,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <libchip/sonic.h><br>
#if (SONIC_DEBUG & SONIC_DEBUG_PRINT_REGISTERS)<br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon2/Makefile.am b/c/src/lib/libbsp/sparc/<wbr>leon2/Makefile.am<br>
index 1914c6956f..f7f2fd6937 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon2/Makefile.am<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon2/Makefile.am<br>
@@ -169,29 +169,9 @@ libbsp_a_SOURCES += ../../shared/<wbr>bspsmpgetcurrentprocessor.c<br>
endif<br>
<br>
if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_smc91111.rel<br>
-leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c<br>
-leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_open_eth.rel<br>
-leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c<br>
-leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_greth.rel<br>
-leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c<br>
-leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-<br>
-# BSP Network configuration<br>
+libbsp_a_SOURCES += leon_smc91111/leon_smc91111.c<br>
+libbsp_a_SOURCES += leon_open_eth/leon_open_eth.c<br>
+libbsp_a_SOURCES += ../../sparc/shared/net/greth.c<br>
libbsp_a_SOURCES += ../../sparc/shared/net/<wbr>network_interface_add.c<br>
endif<br>
<br>
@@ -201,12 +181,6 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>reg_win.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>syscall.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += leon_greth.rel<br>
-libbsp_a_LIBADD += leon_open_eth.rel<br>
-libbsp_a_LIBADD += leon_smc91111.rel<br>
-endif<br>
-<br>
EXTRA_DIST += times<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon2/leon_open_eth/leon_open_<wbr>eth.c b/c/src/lib/libbsp/sparc/<wbr>leon2/leon_open_eth/leon_open_<wbr>eth.c<br>
index ae0e8052f7..27b04cd386 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon2/leon_open_eth/leon_open_<wbr>eth.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon2/leon_open_eth/leon_open_<wbr>eth.c<br>
@@ -13,6 +13,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <libchip/open_eth.h><br>
#if (OPEN_ETH_DEBUG & OPEN_ETH_DEBUG_PRINT_<wbr>REGISTERS)<br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon2/leon_smc91111/leon_<wbr>smc91111.c b/c/src/lib/libbsp/sparc/<wbr>leon2/leon_smc91111/leon_<wbr>smc91111.c<br>
index 45b9a4aab7..748ca35491 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon2/leon_smc91111/leon_<wbr>smc91111.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon2/leon_smc91111/leon_<wbr>smc91111.c<br>
@@ -13,6 +13,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
<br>
#include <bsp.h><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon3/Makefile.am b/c/src/lib/libbsp/sparc/<wbr>leon3/Makefile.am<br>
index 60e2a9044a..2f8480ae97 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon3/Makefile.am<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon3/Makefile.am<br>
@@ -189,35 +189,13 @@ libbsp_a_SOURCES += startup/bspsmp.c<br>
endif<br>
<br>
if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_smc91111.rel<br>
-leon_smc91111_rel_SOURCES = leon_smc91111/leon_smc91111.c<br>
-leon_smc91111_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_smc91111_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_open_eth.rel<br>
-leon_open_eth_rel_SOURCES = leon_open_eth/leon_open_eth.c<br>
-leon_open_eth_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_open_eth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_open_eth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-if HAS_NETWORKING<br>
-noinst_PROGRAMS += leon_greth.rel<br>
+libbsp_a_SOURCES += leon_smc91111/leon_smc91111.c<br>
+libbsp_a_SOURCES += leon_open_eth/leon_open_eth.c<br>
+libbsp_a_SOURCES += ../../sparc/shared/net/greth.c<br>
+libbsp_a_SOURCES += ../../sparc/shared/net/<wbr>network_interface_add.c<br>
if !HAS_SMP<br>
libbsp_a_SOURCES += leon_greth/leon_greth.c<br>
endif<br>
-leon_greth_rel_SOURCES = ../../sparc/shared/net/greth.c<br>
-leon_greth_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
-leon_greth_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
-leon_greth_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
-endif<br>
-<br>
-# BSP Network configuration<br>
-if HAS_NETWORKING<br>
-libbsp_a_SOURCES += ../../sparc/shared/net/<wbr>network_interface_add.c<br>
endif<br>
<br>
EXTRA_DIST += shmsupp/README<br>
@@ -232,12 +210,6 @@ libbsp_a_LIBADD = \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>reg_win.rel \<br>
../../../libcpu/@RTEMS_CPU@/<wbr>syscall.rel<br>
<br>
-if HAS_NETWORKING<br>
-libbsp_a_LIBADD += leon_open_eth.rel<br>
-libbsp_a_LIBADD += leon_greth.rel<br>
-libbsp_a_LIBADD += leon_smc91111.rel<br>
-endif<br>
-<br>
EXTRA_DIST += times<br>
<br>
include $(top_srcdir)/../../../../<wbr>automake/<a href="http://local.am" rel="noreferrer" target="_blank">local.am</a><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_greth/leon_greth.c b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_greth/leon_greth.c<br>
index 77e4f497ae..d630522a5d 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_greth/leon_greth.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_greth/leon_greth.c<br>
@@ -9,6 +9,7 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
<br>
#include <bsp.h><br>
#include <libchip/greth.h><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_open_eth/leon_open_<wbr>eth.c b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_open_eth/leon_open_<wbr>eth.c<br>
index 9de03720e0..c59d613d75 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_open_eth/leon_open_<wbr>eth.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_open_eth/leon_open_<wbr>eth.c<br>
@@ -13,6 +13,7 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
<br>
#include <bsp.h><br>
#include <libchip/open_eth.h><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_smc91111/leon_<wbr>smc91111.c b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_smc91111/leon_<wbr>smc91111.c<br>
index 17218bef9f..e4adac6c2b 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>leon3/leon_smc91111/leon_<wbr>smc91111.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>leon3/leon_smc91111/leon_<wbr>smc91111.c<br>
@@ -13,6 +13,8 @@<br>
* <a href="http://www.rtems.org/license/LICENSE" rel="noreferrer" target="_blank">http://www.rtems.org/license/<wbr>LICENSE</a>.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <bsp.h><br>
#include <libchip/smc91111exp.h><br>
#include <rtems/bspIo.h><br>
diff --git a/c/src/lib/libbsp/sparc/<wbr>shared/net/greth.c b/c/src/lib/libbsp/sparc/<wbr>shared/net/greth.c<br>
index 5e2ee49087..eafcb9947a 100644<br>
--- a/c/src/lib/libbsp/sparc/<wbr>shared/net/greth.c<br>
+++ b/c/src/lib/libbsp/sparc/<wbr>shared/net/greth.c<br>
@@ -11,6 +11,9 @@<br>
* multiple GRETH cores. <<a href="mailto:daniel@gaisler.com">daniel@gaisler.com</a>><br>
* 2007-09-07, Ported GBIT support from 4.6.5<br>
*/<br>
+<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#define _KERNEL<br>
#define CPU_U32_FIX<br>
diff --git a/c/src/lib/libcpu/bfin/<wbr>Makefile.am b/c/src/lib/libcpu/bfin/<wbr>Makefile.am<br>
index 5f981657f7..9b7ee0c26e 100644<br>
--- a/c/src/lib/libcpu/bfin/<wbr>Makefile.am<br>
+++ b/c/src/lib/libcpu/bfin/<wbr>Makefile.am<br>
@@ -80,10 +80,9 @@ timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
<br>
if HAS_NETWORKING<br>
## network<br>
-network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
noinst_PROGRAMS += network.rel<br>
network_rel_SOURCES = network/ethernet.c<br>
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)<br>
+network_rel_CPPFLAGS = $(AM_CPPFLAGS)<br>
network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
endif<br>
<br>
diff --git a/c/src/lib/libcpu/bfin/<wbr>network/ethernet.c b/c/src/lib/libcpu/bfin/<wbr>network/ethernet.c<br>
index 5d7322ba0b..f08ffdd63b 100644<br>
--- a/c/src/lib/libcpu/bfin/<wbr>network/ethernet.c<br>
+++ b/c/src/lib/libcpu/bfin/<wbr>network/ethernet.c<br>
@@ -10,6 +10,8 @@<br>
*<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
#include <rtems/rtems/cache.h><br>
diff --git a/c/src/lib/libcpu/powerpc/<wbr>Makefile.am b/c/src/lib/libcpu/powerpc/<wbr>Makefile.am<br>
index b56ce691bf..514c93db37 100644<br>
--- a/c/src/lib/libcpu/powerpc/<wbr>Makefile.am<br>
+++ b/c/src/lib/libcpu/powerpc/<wbr>Makefile.am<br>
@@ -300,7 +300,6 @@ if mpc83xx<br>
if HAS_NETWORKING<br>
noinst_PROGRAMS += mpc83xx/tsec.rel<br>
mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c<br>
-mpc83xx_tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
endif<br>
<br>
@@ -388,7 +387,6 @@ if qoriq<br>
if HAS_NETWORKING<br>
noinst_PROGRAMS += tsec.rel<br>
tsec_rel_SOURCES = mpc83xx/network/tsec.c<br>
-tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__ -D__BSD_VISIBLE<br>
tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)<br>
endif<br>
<br>
diff --git a/c/src/lib/libcpu/powerpc/<wbr>mpc83xx/network/tsec.c b/c/src/lib/libcpu/powerpc/<wbr>mpc83xx/network/tsec.c<br>
index a16369f0e3..ea1c29052e 100644<br>
--- a/c/src/lib/libcpu/powerpc/<wbr>mpc83xx/network/tsec.c<br>
+++ b/c/src/lib/libcpu/powerpc/<wbr>mpc83xx/network/tsec.c<br>
@@ -17,6 +17,8 @@<br>
| this file contains the MPC83xx TSEC networking driver |<br>
\*============================<wbr>==============================<wbr>=====*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <stdlib.h><br>
#include <bsp.h><br>
#include <bsp/irq.h><br>
diff --git a/c/src/libchip/Makefile.am b/c/src/libchip/Makefile.am<br>
index 21892f1736..187773f911 100644<br>
--- a/c/src/libchip/Makefile.am<br>
+++ b/c/src/libchip/Makefile.am<br>
@@ -22,8 +22,6 @@ libide_a_CPPFLAGS = $(AM_CPPFLAGS)<br>
# network<br>
if HAS_NETWORKING<br>
noinst_LIBRARIES += libnetchip.a<br>
-libnetchip_a_CPPFLAGS = $(AM_CPPFLAGS)<br>
-libnetchip_a_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \<br>
network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c \<br>
network/if_dc.c<br>
diff --git a/c/src/libchip/network/<wbr>cs8900.c b/c/src/libchip/network/<wbr>cs8900.c<br>
index 5391a9c72e..650a0e1fef 100644<br>
--- a/c/src/libchip/network/<wbr>cs8900.c<br>
+++ b/c/src/libchip/network/<wbr>cs8900.c<br>
@@ -23,6 +23,8 @@<br>
<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <errno.h><br>
#include <string.h><br>
#include <stdio.h><br>
diff --git a/c/src/libchip/network/<wbr>dec21140.c b/c/src/libchip/network/<wbr>dec21140.c<br>
index bc3ab24782..6fd3d5b33f 100644<br>
--- a/c/src/libchip/network/<wbr>dec21140.c<br>
+++ b/c/src/libchip/network/<wbr>dec21140.c<br>
@@ -35,6 +35,8 @@<br>
*<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <inttypes.h><br>
<br>
diff --git a/c/src/libchip/network/elnk.c b/c/src/libchip/network/elnk.c<br>
index f0b0264725..29adbe9c21 100644<br>
--- a/c/src/libchip/network/elnk.c<br>
+++ b/c/src/libchip/network/elnk.c<br>
@@ -62,6 +62,8 @@<br>
* THE POSSIBILITY OF SUCH DAMAGE.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
<br>
/*<br>
diff --git a/c/src/libchip/network/greth.<wbr>c b/c/src/libchip/network/greth.<wbr>c<br>
index 244e4a28df..20be83ee48 100644<br>
--- a/c/src/libchip/network/greth.<wbr>c<br>
+++ b/c/src/libchip/network/greth.<wbr>c<br>
@@ -9,6 +9,8 @@<br>
* 2007-09-07, Ported GBIT support from 4.6.5<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <bsp.h><br>
<br>
diff --git a/c/src/libchip/network/<wbr>i82586.c b/c/src/libchip/network/<wbr>i82586.c<br>
index e25f6667fc..c79af66e0d 100644<br>
--- a/c/src/libchip/network/<wbr>i82586.c<br>
+++ b/c/src/libchip/network/<wbr>i82586.c<br>
@@ -147,6 +147,8 @@ Mode of operation:<br>
the synchronization.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/error.h><br>
#include <rtems/rtems_bsdnet.h><br>
diff --git a/c/src/libchip/network/if_dc.<wbr>c b/c/src/libchip/network/if_dc.<wbr>c<br>
index 1e138947a9..e822a7c533 100644<br>
--- a/c/src/libchip/network/if_dc.<wbr>c<br>
+++ b/c/src/libchip/network/if_dc.<wbr>c<br>
@@ -99,6 +99,8 @@<br>
* from being compiled on systems which can't support this driver.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#if defined(DRIVER_SUPPORTED)<br>
#undef DRIVER_SUPPORTED<br>
#endif<br>
diff --git a/c/src/libchip/network/if_<wbr>fxp.c b/c/src/libchip/network/if_<wbr>fxp.c<br>
index bd04533bdb..2fe9a5c403 100644<br>
--- a/c/src/libchip/network/if_<wbr>fxp.c<br>
+++ b/c/src/libchip/network/if_<wbr>fxp.c<br>
@@ -55,6 +55,8 @@<br>
* Original RTEMS modifications.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#if defined(__i386__)<br>
<br>
/*#define DEBUG_OUT 0*/<br>
diff --git a/c/src/libchip/network/open_<wbr>eth.c b/c/src/libchip/network/open_<wbr>eth.c<br>
index b574253333..88df0882cf 100644<br>
--- a/c/src/libchip/network/open_<wbr>eth.c<br>
+++ b/c/src/libchip/network/open_<wbr>eth.c<br>
@@ -19,6 +19,8 @@<br>
* that used by this driver.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#if defined(__i386__) || defined(__arm__) || defined(__PPC__)<br>
#define OPENETH_NOT_SUPPORTED<br>
#endif<br>
diff --git a/c/src/libchip/network/<wbr>smc91111.c b/c/src/libchip/network/<wbr>smc91111.c<br>
index 8c37481b9b..45c87e8245 100644<br>
--- a/c/src/libchip/network/<wbr>smc91111.c<br>
+++ b/c/src/libchip/network/<wbr>smc91111.c<br>
@@ -1,3 +1,5 @@<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <errno.h><br>
<br>
diff --git a/c/src/libchip/network/sonic.<wbr>c b/c/src/libchip/network/sonic.<wbr>c<br>
index d81c25130c..dc97008b8d 100644<br>
--- a/c/src/libchip/network/sonic.<wbr>c<br>
+++ b/c/src/libchip/network/sonic.<wbr>c<br>
@@ -31,6 +31,8 @@<br>
* interrupt-free transmission by Jiri, 22/03/1999.<br>
*/<br>
<br>
+#define __INSIDE_RTEMS_BSD_TCPIP_<wbr>STACK__<br>
+<br>
#include <rtems.h><br>
#include <rtems/rtems_bsdnet.h><br>
#include <libchip/sonic.h><br>
<font color="#888888">--<br>
2.12.3<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</font></blockquote></div><br></div>