summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-27 11:12:44 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-31 11:18:17 +0100
commitd8d6a08d4677e6c68fc94b7d182e3af61c3fd76e (patch)
treeb8ef1e0ecaf0792533d9b6aae95c050e83766fe2 /c/src/lib/libbsp/powerpc/gen83xx
parentepiphany: Workaround until next Newlib snapshot (diff)
downloadrtems-d8d6a08d4677e6c68fc94b7d182e3af61c3fd76e.tar.bz2
bsps: Move network define to source files
Define __INSIDE_RTEMS_BSD_TCPIP_STACK__ in the network interface driver source files to avoid some build system magic.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/Makefile.am12
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/network/network.c1
2 files changed, 3 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
index 5f9bad706e..e5d681153c 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
@@ -74,11 +74,8 @@ libbsp_a_SOURCES += i2c/i2c_init.c
libbsp_a_SOURCES += spi/spi_init.c
if HAS_NETWORKING
-noinst_PROGRAMS += network.rel
-network_rel_SOURCES = network/network.c
-network_rel_CPPFLAGS = $(AM_CPPFLAGS)
-network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
+libbsp_a_SOURCES += network/network.c
+libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/mpc83xx/tsec.rel
endif
libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
@@ -91,11 +88,6 @@ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \
../../../libcpu/@RTEMS_CPU@/mpc83xx/spi.rel \
../../../libcpu/@RTEMS_CPU@/mpc83xx/gtm.rel
-if HAS_NETWORKING
-libbsp_a_LIBADD += network.rel
-libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/mpc83xx/tsec.rel
-endif
-
EXTRA_DIST += README.mpc8349eamds
include $(top_srcdir)/../../../../automake/local.am
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/network/network.c b/c/src/lib/libbsp/powerpc/gen83xx/network/network.c
index 316467feaf..b870673cd3 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/network/network.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/network/network.c
@@ -18,6 +18,7 @@
| of the network interface driver |
\*===============================================================*/
+#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>