diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-27 11:12:44 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-31 11:18:17 +0100 |
commit | d8d6a08d4677e6c68fc94b7d182e3af61c3fd76e (patch) | |
tree | b8ef1e0ecaf0792533d9b6aae95c050e83766fe2 /c/src/lib/libcpu/powerpc | |
parent | epiphany: Workaround until next Newlib snapshot (diff) | |
download | rtems-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/libcpu/powerpc')
-rw-r--r-- | c/src/lib/libcpu/powerpc/Makefile.am | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/powerpc/Makefile.am b/c/src/lib/libcpu/powerpc/Makefile.am index b56ce691bf..514c93db37 100644 --- a/c/src/lib/libcpu/powerpc/Makefile.am +++ b/c/src/lib/libcpu/powerpc/Makefile.am @@ -300,7 +300,6 @@ if mpc83xx if HAS_NETWORKING noinst_PROGRAMS += mpc83xx/tsec.rel mpc83xx_tsec_rel_SOURCES = mpc83xx/network/tsec.c -mpc83xx_tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE mpc83xx_tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) endif @@ -388,7 +387,6 @@ if qoriq if HAS_NETWORKING noinst_PROGRAMS += tsec.rel tsec_rel_SOURCES = mpc83xx/network/tsec.c -tsec_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE tsec_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) endif diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c index a16369f0e3..ea1c29052e 100644 --- a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c +++ b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c @@ -17,6 +17,8 @@ | this file contains the MPC83xx TSEC networking driver | \*===============================================================*/ +#define __INSIDE_RTEMS_BSD_TCPIP_STACK__ + #include <stdlib.h> #include <bsp.h> #include <bsp/irq.h> |