Dear all,
I modified the makefile under the directory src/test as follows:
after the oringal line :PROGRAMS = $(noinst_PROGRAMS)…
add new lines:ELF2FLT =
/GCC-3.0.4-uClibc/mipsel-uClinux-tool/bin/mipsel-linux-elf2flt
MYLIBDIR =/gcc-3.0.4-uClibc/mipsel-uClinux-tool/
ELF2FLT_LD = $(MYLIBDIR)/lib/elf2flt.ld
MYLIBS = $(MYLIBDIR)/lib/libc.a
$(MYLIBDIR)/lib/gcc-lib/mipsel-linux/3.0.4/libgcc.a
then,delete the line CFLAGS ...
replace it with:
CFLAGS = -fPIC -O2 -fomit-frame-pointer -Wl -mno-half-pic
-mcpu=r3000 -mips1
for converting elf to flt,
then,add line after @rm -f testver:
$(CC) -c $(CFLAGS) $(NANOXFILES)
$(LD) -d -r -o $@.tmp $(MYLIBDIR)/lib/crt0.o $(NANOXFILES)
$(NANOXSERVERLIBS) \ $(MYLIBS)
$(LD) -T $(ELF2FLT_LD) -Ur -o $@.elf $@.tmp
$(ld) -T $(ELF2FLT_LD) -o $@.gdb $@.tmp
$(ELF2FLT) $(ELF2FLT_FLAGS) -p $@.gdb -o $@.flt -r $@.elf
…
the error is generated:
testver.c:SDL.h:No such file or directory
…
Andy