Hello,
I added in makefile in $CFLAGS section -mhard-float
option, also the $LIBC, $LIBGCC, $LIBSUPC had a
corresponding fpu folder that contains the libraries
compiled with fpu option. I had no problem compiling
since then.
Here is part of my makefile:
APPNAME         = hello
NM              = $(TOOL_PREFIX)-nm
AR              = $(TOOL_PREFIX)-ar
LD              = $(TOOL_PREFIX)-ld
ASM             = $(TOOL_PREFIX)-as
#CC             = $(TOOL_PREFIX)-gcc
CC              = $(TOOL_PREFIX)-g++

STRIP           = $(TOOL_PREFIX)-strip
OBJCOPY         = $(TOOL_PREFIX)-objcopy
OBJDUMP         = $(TOOL_PREFIX)-objdump
LIBC                    = mc9328_install/lib
LIBGCC          =
/opt/ecos/gnutools/arm-elf/lib/gcc/arm-elf/4.1.1/fpu
LIBDIR          = $(LIBGCC:/libgcc.a=)
LIBSUPC         = /opt/ecos/gnutools/arm-elf/arm-elf/lib/fpu




ifeq ($(ARCH),ARM)
TOOL_PREFIX     := arm-elf
CFLAGS          := -fno-builtin -mcpu=arm9tdmi -mhard-float \
                           -c -Wall -O -ggdb -I. \
                           -Wall -nostdlib -Imc9328_install/include -O2
-ffunction-sections -fdata-sections \
                                -fno-rtti -fno-exceptions -fvtable-gc \
                                -fno-schedule-insns -fno-schedule-insns2

                                
        
CRT0            := crt0_arm.o
CPU             := -D CPU_IS_ARM=1
endif

OBJS=$ hello.o


#####
#
# $(APPNAME):
# Top level target builds the application.
#
$(APPNAME): varcheck $(OBJS) makefile
        echo tools: $(TOOL_PREFIX)
        $(LD) -o $(APPNAME) -L$(LIBC) -L$(LIBGCC)
-L$(LIBSUPC) -lgcc -lc -lsupc++ $(OBJS) -Ttarget.ld
-nostdlib
        $(NM) --numeric-sort $(APPNAME) >$(APPNAME).sym
        $(OBJDUMP) --source --disassemble $(APPNAME) >
$(APPNAME).dis
#       $(STRIP) $(APPNAME)     # remove this line if you
don't need the debugging information


Good luck.


--- Eduardo <[EMAIL PROTECTED]> wrote:

> Dear David
> 
> Sorry for contact you directly but I have seen the
> following thread on
>
http://thread.gmane.org/gmane.os.ecos.devel/1031/focus=1031
> regarding
> you fixed some problems with FPA build.
> I'm having same problem trying to build ecos with my
> application for
> Cirrus EP9302 with gcc 4.1.1. It has Maverick
> coprocessor.
> I already have the application running with soft
> float compilation but
> I'd like to build using coprocessor and hard float
> options.
> Please, could you help me indicating me how do you
> fixed your problem?
> I mean, what libraries do you specifically set on
> your makefile? Did
> you build a new toolchain for your specific target?
> In my case, I just
> replaced gnu-arm on eCos directory for gcc 4.1.1
> version.
> 
> Thank you in advance for your cooperation, I didn't
> found an answer
> yet in any forum.
> 
> Best Regards
> 
> Eduardo Aguirre
> 
> 
> 
> 



 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to