Problems with own-bsp bits i/of shared bits in 4.5 b3

Nick.SIMON at syntegra.bt.co.uk Nick.SIMON at syntegra.bt.co.uk
Tue May 23 07:39:25 UTC 2000


Dear chaps & chapesses,

I am currently trying to get going with 4.5 b3, using a BSP loosely derived
frpm the powerpc/eth-comm one.  I have been trying to use my own vectors.S
and clock.c to replace the shared ones in libcpu...mpc860, and have
encountered the following problems:

(1) The functions from console-generic came up as undefined.  I worked
around this by adding console-generic to my BSP, in console.

(2) The clock functions come up as undefined when building the samples.
They are, however, compiled as expected and are present in libbsp.a.

I'm obviously doing something wrong.  My <BSP>/Makefile.am is:


##
## $Id: Makefile.am,v 1.1.2.1 2000/03/21 17:57:01 joel Exp $
##

AUTOMAKE_OPTIONS = foreign 1.4
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal

# wrapup is the one that actually builds and installs the library
#  from the individual .rel files built in other directories
SUBDIRS = include clock startup start console network vectors wrapup

include $(top_srcdir)/../../bsp.am

EXTRA_DIST = bsp_specs times

include $(top_srcdir)/../../../../../../automake/subdirs.am
include $(top_srcdir)/../../../../../../automake/local.am

<end>

clock/Makefile.am is:

##
## $Id: Makefile.am,v 1.1.2.3 2000/04/03 14:40:38 joel Exp $
##

AUTOMAKE_OPTIONS = foreign 1.4

PGM = $(ARCH)/clock.rel

C_FILES = clock.c
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)

OBJS = $(C_O_FILES)

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
include $(top_srcdir)/../../../../../../automake/lib.am

#
# (OPTIONAL) Add local stuff here using +=
#

$(PGM): $(OBJS)
        $(make-rel)

# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile

all-local: $(ARCH) $(OBJS) $(PGM)

.PRECIOUS: $(PGM)

EXTRA_DIST = clock.c

include $(top_srcdir)/../../../../../../automake/local.am

<end>


<BSP>configure.in includes the clock and vectors subdirectories in its
AC_OUTPUT.

My build cycle is:
(1) Edit sources, .ams
(2) run bootstrap
(3) run configure
(4) make all


TIA

-- Nick Simon 



More information about the users mailing list