wrapup problem? moving bsp fro 4.5.0 to 4.6pre1

Wendell Thompson wthompson at dsg-test.com
Mon Mar 3 05:00:01 UTC 2003


I'm trying to get my old custom BSP from RTEMS 4.5.0 integrated into the 
4.6pre1 snapshot.


The build fails when linking the ticker sample:

m68k-rtems-gcc --pipe -B../../../../../lib/ 
-B../../../../../clc5206_am/lib/ -specs bsp_specs -qrtems    -m5200 
-fno-exceptions -fno-rtti  -O4 -fomit-frame-pointer -g -Wall -ansi -fasm 
   -o o-optimize/ticker.exe -Xlinker -Map -Xlinker mapfile 
o-optimize/init.o o-optimize/tasks.o 
../../../../../clc5206_am/lib/no-dpmem.rel 
../../../../../clc5206_am/lib/no-event.rel 
../../../../../clc5206_am/lib/no-msg.rel 
../../../../../clc5206_am/lib/no-mp.rel 
../../../../../clc5206_am/lib/no-part.rel 
../../../../../clc5206_am/lib/no-signal.rel 
../../../../../clc5206_am/lib/no-timer.rel 
../../../../../clc5206_am/lib/no-rtmon.rel
o-optimize/init.o:itimerspec/../../../../../../../c/src/tests/samples/ticker/init.c:53: 
undefined reference to `Clock_initialize'
o-optimize/init.o:itimerspec/../../../../../../../c/src/tests/samples/ticker/init.c:54: 
undefined reference to `Clock_control'
collect2: ld returned 1 exit status


clock.rel exists and contains the missing functions:

wentho at linux:/usr/local/rtems-4.6.0pre1/build-rtems-m68k> nm -g 
./m68k-rtems/c/clc5206_am/lib/libbsp/m68k/clc5206_am/clock/o-optimize/clock.rel 
| grep Clock
000000da T Clock_control
00000004 B Clock_driver_ticks
0000001e T Clock_exit
0000004c T Clock_initialize
00000000 T Clock_isr

However, librtemscpu.a does NOT contain the clock functions.


This is wrapup/Makefile.am:

##
## Makefile.am,v 1.7 2002/12/10 09:44:12 ralf Exp
##

BSP_PIECES = startup console network

CPU_PIECES = clock console timer

# bummer; have to use $foreach since % pattern subst rules only replace 1x
OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard 
../$(piece)/$(ARCH)/*.$(OBJEXT))) \
     $(wildcard 
../../../../libcpu/$(RTEMS_CPU)/shared/misc/$(ARCH)/*.$(OBJEXT)) \
     $(foreach piece, $(CPU_PIECES), $(wildcard \
 
../../../../libcpu/$(RTEMS_CPU)/$(RTEMS_CPU_MODEL)/$(piece)/$(ARCH)/$(piece).rel)) 
\
     $(wildcard \
 
../../../../libcpu/$(RTEMS_CPU)/$(RTEMS_CPU_MODEL)/fpsp/$(ARCH)/fpsp.rel)
LIB = $(ARCH)/libbsp.a

include $(top_srcdir)/../../../../../../automake/compile.am
include $(top_srcdir)/../../../../../../automake/lib.am

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

$(LIB): $(OBJS)
         $(make-library)

all: $(ARCH) $(OBJS) $(LIB) $(TMPINSTALL_FILES)

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


Help!!!




More information about the users mailing list