forked from Imagelibrary/rtems
Added (untested) network driver from mvme167.
This commit is contained in:
@@ -15,7 +15,7 @@ ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
|||||||
|
|
||||||
# wrapup is the one that actually builds and installs the library
|
# wrapup is the one that actually builds and installs the library
|
||||||
# from the individual .rel files built in other directories
|
# from the individual .rel files built in other directories
|
||||||
SUBDIRS = . include start startup clock console timer tod wrapup
|
SUBDIRS = . include start startup clock console timer tod network wrapup
|
||||||
|
|
||||||
include $(top_srcdir)/../../bsp.am
|
include $(top_srcdir)/../../bsp.am
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,13 @@ RTEMS_CANONICALIZE_TOOLS
|
|||||||
RTEMS_ENV_RTEMSBSP
|
RTEMS_ENV_RTEMSBSP
|
||||||
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
|
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
|
||||||
|
RTEMS_CHECK_NETWORKING
|
||||||
RTEMS_CANONICAL_HOST
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
AC_CONFIG_SUBDIRS(tools)
|
AC_CONFIG_SUBDIRS(tools)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
|
||||||
|
|
||||||
RTEMS_PROJECT_ROOT
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
# Explicitly list all Makefiles here
|
# Explicitly list all Makefiles here
|
||||||
@@ -29,6 +32,7 @@ Makefile
|
|||||||
clock/Makefile
|
clock/Makefile
|
||||||
console/Makefile
|
console/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
|
network/Makefile
|
||||||
start/Makefile
|
start/Makefile
|
||||||
startup/Makefile
|
startup/Makefile
|
||||||
timer/Makefile
|
timer/Makefile
|
||||||
|
|||||||
2
c/src/lib/libbsp/m68k/mvme162/network/.cvsignore
Normal file
2
c/src/lib/libbsp/m68k/mvme162/network/.cvsignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
37
c/src/lib/libbsp/m68k/mvme162/network/Makefile.am
Normal file
37
c/src/lib/libbsp/m68k/mvme162/network/Makefile.am
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
##
|
||||||
|
## $Id$
|
||||||
|
##
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
PGM = $(ARCH)/network.rel
|
||||||
|
VPATH=$(srcdir):$(srcdir)/../../mvme167/network
|
||||||
|
|
||||||
|
C_FILES = network.c
|
||||||
|
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
|
||||||
|
|
||||||
|
OBJS = $(C_O_FILES)
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||||
|
include $(top_srcdir)/../../../../../../automake/lib.am
|
||||||
|
|
||||||
|
#
|
||||||
|
# (OPTIONAL) Add local stuff here using +=
|
||||||
|
#
|
||||||
|
|
||||||
|
AM_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
|
||||||
|
|
||||||
|
$(PGM): $(OBJS)
|
||||||
|
$(make-rel)
|
||||||
|
|
||||||
|
# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
|
||||||
|
|
||||||
|
if HAS_NETWORKING
|
||||||
|
all-local: $(ARCH) $(OBJS) $(PGM)
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PRECIOUS: $(PGM)
|
||||||
|
|
||||||
|
EXTRA_DIST = network.c
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../../../../automake/local.am
|
||||||
@@ -4,7 +4,12 @@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign 1.4
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
BSP_PIECES = startup clock console timer tod
|
# We only build the networking device driver if HAS_NETWORKING was defined
|
||||||
|
if HAS_NETWORKING
|
||||||
|
NETWORKING_DRIVER = network
|
||||||
|
endif
|
||||||
|
|
||||||
|
BSP_PIECES = startup clock console timer tod $(NETWORKING_DRIVER)
|
||||||
|
|
||||||
# bummer; have to use $foreach since % pattern subst rules only replace 1x
|
# bummer; have to use $foreach since % pattern subst rules only replace 1x
|
||||||
OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
|
OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
|
||||||
|
|||||||
Reference in New Issue
Block a user