MINI2440: Updated early nand loader
[u-boot-openmoko/mini2440.git] / build
blobf819c31c6775cf99737641ffb2752d883eb37bd3
1 VERSION=
2 if [ -d .git ] ; then
3  HEAD=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16`
4  BRANCH=`git branch | grep ^\* | cut -d' ' -f2`
5  VERSION=-$BRANCH\_$HEAD
6 fi
8 make -s ARCH=arm CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- gta02v5_config
9 make -s ARCH=arm CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- u-boot.udfu
10 if [ $? -eq 0 ] ; then
11         rm -f u-boot-gta02v5v6*
12         cp u-boot.udfu u-boot-gta02v5v6$VERSION.udfu