On Sun, Jan 15, 2012 at 10:58:00PM +0100, Franck JULLIEN wrote: > Hi, > > I'm trying to build a BSP from libgloss. I'm using newlib-1.18.0-or32-1.0rc1. > > I did compile libgloss/or32 with my board definitions (and manually > replacing included config file in ctr0.s, _exit.c, uart.c and > write.c). > I get a libor32uart.a and libor32.a files. > > I created a folder > /opt/crosstool/or32/or32-elf-1.0rc1/or32-elf/lib/boards/de1 where I > put libboard.a copied from libor32uart.a created before. >
libboard.a should only contain a handful of globals which defines clock speed, uart base address etc. Creating a libboard.a with those defines and putting it in the path you mentioned above, is the only needed change for an orpsoc based board. Take a look at unisrc/libgloss/or32/ml501.S for example. Stefan _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
