I am trying to rebuild u-boot for the OMAP L-138 LCDK eval board. As a starting point, I have downloaded ti-sdk-omapl138-lcdk-01.00.00.bz2, and extracted the enclosed u-boot-2010.12-psp03.21.00.04.lcdk.bz2.
The problem is that the extracted project doesn't compile. After kicking off the build process:
[linux-devkit]:~/u-boot-2010.12-psp03.21.00.04.lcdk> make all CROSS_COMPILE=arm-arago-linux-gnueabi-
The build process finds a type clash with uint, and errors out:
make[2]: Entering directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/include -DUSE_HOSTCC -o uflash /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash/uflash.c /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/errno.c
In file included from /home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/lib/crc32.c:14:
/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/include/compiler.h:55: error: redefinition of typedef 'uint'
/home/rclee/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/include/sys/types.h:153: note: previous declaration of 'uint' was here
make[2]: *** [uflash] Error 1
make[2]: Leaving directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools/uflash'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/rclee/u-boot-2010.12-psp03.21.00.04.lcdk/tools'
make: *** [tools] Error 2
The cross environment is a running on a freshly installed Ubuntu 10.04 LTS virtual machine (via ubuntu-10.04.2-desktop-i386.iso). There is entirely stock, specifically with no prior TI tool chains installed at all.
Any ideas?
Thanks,
Robert Lee