[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Makefile for Thread Program



actuyally I forgot to include the CONFIG_....SUMTHREAD
in the uClinux/Makefile 

I include and deleted dir_y+=sumthread

now when I compiled I get this error

ls: microblaze/*.S: No such file or directory
ls: microblaze/*.S: No such file or directory
make[4]: Entering directory
`/home/gradteam2a/uClinux-dist/uClibc/ldso/ldso'
echo "const char *_dl_progname=\""ld-uClibc.so.0"\";"
> ldso.h
echo "#include \"microblaze/elfinterp.c\"" >> ldso.h
make[4]: *** No rule to make target
`microblaze/elfinterp.c', needed by `ldso.o'.  Stop.
make[4]: Leaving directory
`/home/gradteam2a/uClinux-dist/uClibc/ldso/ldso'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/gradteam2a/uClinux-dist/uClibc/ldso'
make[2]: *** [_dir_ldso] Error 2
make[2]: Leaving directory
`/home/gradteam2a/uClinux-dist/uClibc'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/gradteam2a/uClinux-dist/lib'
make: *** [subdirs] Error 1

Badri 

--- John Williams <jwilliams@itee.uq.edu.au> wrote:
> Hi Badri,
> 
> badri v wrote:
> > 
> > I am trying to run a threaded program ( a simple
> 1..a
> > thread to calculate 1+1+1+1..).. 
> 
> I haven't tested pthread support for microblaze yet
> - please let us know 
> if it works out for you.
> 
> > I dono how to write a Makefile for this.. 
> > 
> > 
> > I have writen one from the avilable Makefile's.. 
> > 
> > Is it write?
> 
> Try something like this (I copied it from
> user/hd/Makefile):
> 
> EXEC = sumThread
> OBJS = sumThread.o
> 
> all: $(EXEC)
> 
> $(EXEC): $(OBJS)
>          $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
> -lpthread
> 
> romfs:
> 	$(ROMFSINST) -e CONFIG_USER_SUMTHREAD_SUMTHREAD
> /bin/$(EXEC)
> 	$(ROMFSINST) -e CONFIG_USER_SUMTHREAD_SUMTHREAD \
> 		-a "morse:unknown:/bin/sumThread" /etc/inittab
> 
> clean:
>          -rm -f $(EXEC) *.elf *.gdb *.o
> 
> For this to work, you will need to modify
> uClinux-dist/config/config.in 
> to define CONFIG_USER_SUMTHREAD_SUMTHREAD, and add
> it to the config menu 
> etc.  Just take an example from some existing user
> program entry.
> 
> Regards,
> 
> John
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
>
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/