[rtems commit] bsp/mvme5500: Avoid RTEMS_RELLDFLAGS

Sebastian Huber sebh at rtems.org
Thu Apr 12 05:17:45 UTC 2018


Module:    rtems
Branch:    master
Commit:    1032bf954067b9f9282617b626559e1340ba6841
Changeset: http://git.rtems.org/rtems/commit/?id=1032bf954067b9f9282617b626559e1340ba6841

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Apr  7 19:46:01 2018 +0200

bsp/mvme5500: Avoid RTEMS_RELLDFLAGS

---

 c/src/lib/libbsp/powerpc/mvme5500/Makefile.am             | 10 +++-------
 .../powerpc/mvme5500/network/if_100MHz/GT64260eth.c       | 13 ++++++-------
 c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c | 15 +++++----------
 3 files changed, 14 insertions(+), 24 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
index 15ae575..8df5897 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
@@ -52,13 +52,9 @@ librtemsbsp_a_SOURCES += vectors/exceptionhandler.c \
 librtemsbsp_a_SOURCES += GT64260/GT64260TWSI.c GT64260/MVME5500I2C.c
 
 if HAS_NETWORKING
-network_CPPFLAGS = -D_KERNEL -D__BSD_VISIBLE
-noinst_PROGRAMS += network.rel
-network_rel_SOURCES = network/if_100MHz/GT64260eth.c \
-    network/if_1GHz/if_wm.c network/if_1GHz/pci_map.c
-network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
-network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
-librtemsbsp_a_LIBADD = network.rel
+librtemsbsp_a_SOURCES += network/if_100MHz/GT64260eth.c
+librtemsbsp_a_SOURCES += network/if_1GHz/if_wm.c
+librtemsbsp_a_SOURCES += network/if_1GHz/pci_map.c
 endif
 
 rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c b/c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c
index 85d5d0c..fa1d947 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c
@@ -18,12 +18,16 @@
  * 3) Added S/W support for multi mbuf.  (TODO : Let the H/W do it)
  *
  */
-#define BYTE_ORDER BIG_ENDIAN
 
-#define INET
+#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
+
+#define BYTE_ORDER BIG_ENDIAN
 
 #include <rtems.h>
 #include <rtems/bspIo.h>	    /* printk */
+#include <rtems/error.h>
+#include <rtems/rtems_bsdnet.h>
+#include <rtems/rtems_bsdnet_internal.h>
 #include <stdio.h>		    /* printf for statistics */
 #include <string.h>
 
@@ -35,13 +39,8 @@
 #include <sys/systm.h>
 #include <sys/mbuf.h>
 
-#include <rtems/rtems_bsdnet.h>
-#include <rtems/rtems_bsdnet_internal.h>
-#include <rtems/error.h>
 #include <errno.h>
 
-#include <rtems/rtems/types.h>
-
 /* #include <sys/queue.h> */
 
 #include <sys/socket.h>
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c b/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
index 50cd633..dc89399 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c
@@ -30,14 +30,15 @@
  *
  */
 
-#define BYTE_ORDER BIG_ENDIAN
-
-#define INET
+#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
 
-/*#define RTEMS_ETHERMTU_JUMBO*/
+#define BYTE_ORDER BIG_ENDIAN
 
 #include <rtems.h>
 #include <rtems/bspIo.h>      /* printk */
+#include <rtems/error.h>
+#include <rtems/rtems_bsdnet.h>
+#include <rtems/rtems_bsdnet_internal.h>
 
 #include <inttypes.h>
 #include <stdio.h>	      /* printf for statistics */
@@ -51,14 +52,8 @@
 #include <sys/systm.h>
 #include <sys/mbuf.h>
 
-#include <rtems/rtems_bsdnet.h>
-#include <rtems/rtems_bsdnet_internal.h>
-#include <rtems/error.h>
 #include <errno.h>
 
-#include <rtems/rtems/types.h>
-#include <rtems/score/cpu.h>
-
 /* #include <sys/queue.h> */
 
 #include <sys/socket.h>




More information about the vc mailing list