[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] uClinux Dhrystone option
Hi Brett,
mcnernbm@notes.udayton.edu wrote:
> After getting a kernel to succesfully build I tried to build the same
> kernel with the dhrystone option enabled. But I get the following error
> when I run make.
>
> make[2] Entering directory '/rot/uClinux-dist/user/dhrystone'
> make[2] *** No rule to make target 'romfs'. Stop.
> make[2] Leaving directory '/root/uClinux-dist/user/dhrystone'
> make[1] *** [romfs] Error 2
> make[1] Leaving directory '/root/uClinux-dist/user'
> make: *** [romfs] Error 1
>
> Not sure why it is doing this or what i need to do to make this.
Sounds like a broken copy of the makefile. Start by looking at
uClinux-dist/user/dhrystone/Makefile... here's what mine looks like:
EXEC = dhrystone
OBJS = dhry_1.o dhry_2.o
CFLAGS += -DNO_PROTOTYPES=1
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBM) $(LDLIBS)
romfs:
$(ROMFSINST) /bin/$(EXEC)
clean:
-rm -f $(EXEC) *.elf *.gdb *.o
$(OBJS): dhry.h
If yours looks different, it's probably broken, just grab a fresh copy
via a CVS update or whatever.
If it looks like that, make sure it's not munged with CR/LF pairs or
similar, as can happen if you pull source code via a windows box.
Not sure what else to suggest, this should just work, and usually does.
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/