From d8d6a08d4677e6c68fc94b7d182e3af61c3fd76e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 27 Jan 2018 11:12:44 +0100 Subject: 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. --- c/src/lib/libcpu/powerpc/Makefile.am | 2 -- c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libcpu/powerpc') 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 #include #include -- cgit v1.2.3