Changeset d8d6a08 in rtems for c/src/lib/libbsp/i386


Ignore:
Timestamp:
Jan 27, 2018, 10:12:44 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4cf93658
Parents:
1c64c688
git-author:
Sebastian Huber <sebastian.huber@…> (01/27/18 10:12:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/31/18 10:18:17)
Message:

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.

Location:
c/src/lib/libbsp/i386/pc386
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/3c509/3c509.c

    r1c64c688 rd8d6a08  
    5353 * eric@skatter.usask.ca
    5454 */
     55
     56#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
    5557
    5658#include <bsp.h>
  • c/src/lib/libbsp/i386/pc386/3c509/elink.c

    r1c64c688 rd8d6a08  
    3131 * Common code for dealing with 3COM ethernet cards.
    3232 */
     33
     34#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
    3335
    3436#include <sys/types.h>
  • c/src/lib/libbsp/i386/pc386/Makefile.am

    r1c64c688 rd8d6a08  
    163163
    164164if HAS_NETWORKING
    165 ne2000_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    166 noinst_PROGRAMS += ne2000.rel
    167 ne2000_rel_SOURCES = ne2000/ne2000.c
    168 ne2000_rel_CPPFLAGS = $(AM_CPPFLAGS) $(ne2000_CPPFLAGS)
    169 ne2000_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    170 ne2000_rel_LDFLAGS += -Wl,--undefined=rtems_ne_driver_attach
    171 endif
    172 
    173 if HAS_NETWORKING
    174 wd8003_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    175 noinst_PROGRAMS += wd8003.rel
    176 wd8003_rel_SOURCES = wd8003/wd8003.c
    177 wd8003_rel_CPPFLAGS = $(AM_CPPFLAGS) $(wd8003_CPPFLAGS)
    178 wd8003_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    179 wd8003_rel_LDFLAGS += -Wl,--undefined=rtems_wd_driver_attach
    180 endif
    181 
    182 if HAS_NETWORKING
    183 3c509_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    184 noinst_PROGRAMS += 3c509.rel
    185 3c509_rel_SOURCES = 3c509/3c509.c
    186 3c509_rel_SOURCES += 3c509/3c509.h
    187 3c509_rel_SOURCES += 3c509/elink.c
    188 3c509_rel_SOURCES += 3c509/elink.h
    189 3c509_rel_CPPFLAGS = $(AM_CPPFLAGS) $(3c509_CPPFLAGS)
    190 3c509_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    191 3c509_rel_LDFLAGS += -Wl,--undefined=rtems_3c509_driver_attach
    192 3c509_rel_LDFLAGS += -Wl,--undefined=ep_board
     165libbsp_a_SOURCES += 3c509/3c509.c
     166libbsp_a_SOURCES += 3c509/3c509.h
     167libbsp_a_SOURCES += 3c509/elink.c
     168libbsp_a_SOURCES += 3c509/elink.h
     169libbsp_a_SOURCES += ne2000/ne2000.c
     170libbsp_a_SOURCES += wd8003/wd8003.c
    193171endif
    194172
     
    199177if HAS_SMP
    200178libbsp_a_LIBADD += appstart.$(OBJEXT)
    201 endif
    202 
    203 # We only build the Network library if HAS_NETWORKING was defined
    204 # dec21140 is supported via libchip
    205 if HAS_NETWORKING
    206 libbsp_a_LIBADD += ne2000.rel
    207 libbsp_a_LIBADD += wd8003.rel
    208 libbsp_a_LIBADD += 3c509.rel
    209179endif
    210180
  • c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c

    r1c64c688 rd8d6a08  
    2727 *  that.
    2828 */
     29
     30#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
    2931
    3032#include <bsp.h>
  • c/src/lib/libbsp/i386/pc386/wd8003/wd8003.c

    r1c64c688 rd8d6a08  
    99 *    eric@skatter.usask.ca
    1010 */
     11
     12#define __INSIDE_RTEMS_BSD_TCPIP_STACK__
    1113
    1214#include <bsp.h>
Note: See TracChangeset for help on using the changeset viewer.