I am tempting to reproduce the uClinux tutorial on my platform (ML402), but I am missing one library file named "libc_hard_shift.a"
Bellow the original makefile to cross-compile the application for Microblaze.
I have modified that file to use PETALINUX with kernel 2.6 and glibc instead of the legacy uClinux.
My problem is that I have no 'libc_hard_shift.a' file in my PETALINUX tree.
Also there is no uClinux directory in my $(IMPULSEC_HOME), so I cannot use the default.
I use the linux version of the tool C-to-FPGA.
Any help ?
Thank
---
# this is the original Makefile
ifeq ($(FSL),)
FSL = 0
endif
IMPULSEC_HOME=/opt/Impulse/CoDeveloper3
UCLINUX=$(IMPULSEC_HOME)/uClinux
UCLIB_INC=$(UCLINUX)/lib/uClibc/include
UCLIB_LIB=$(UCLINUX)/lib/uClibc/lib
MB_GCC_LIB=$(UCLINUX)/tools/lib/gcc-lib/microblaze/2.95.3-4
MB_LIB=$(UCLINUX)/tools/microblaze/lib
MB_GCC=mb-gcc
MB_LD=$(UCLINUX)/elf2flt/ld-elf2flt
MB_AR=mb-ar
CFLAGS=-Os -g -fomit-frame-pointer -DIMPULSE_FIRST_FSL=$(FSL) -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I$(UCLIB_INC) -fno-builtin -mno-xl-soft-mul -O -mno-xl-soft-div -mxl-barrel-shift
LFLAGS=-Os -g -elf2flt -L$(UCLIB_LIB)
LIBS=$(UCLIB_LIB)/crt0.o -lc $(MB_GCC_LIB)/libgcc.a $(MB_LIB)/libc_hard_shift.a -lc
img: img_sw.o tiff.o co_init.o libimpulsec.a
$(MB_LD) $(LFLAGS) -o $@ img_sw.o tiff.o co_init.o libimpulsec.a $(LIBS)
libimpulsec.a: co_stream.o co_signal.o co_register.o co_memory.o co_process.o co_type.o
$(MB_AR) -r $@ co_stream.o co_signal.o co_register.o co_memory.o co_process.o co_type.o
.c.o:
mb-gcc $(CFLAGS) -o $@ -c $<
clean:
rm -rf *.o img
libc_hard_shift.a
Started by nicolas.herve, Jul 17 2009 01:36 PM
1 reply to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












