Fixes for U-Boot charging
[u-boot-openmoko/mini2440.git] / build
blobd1582f5a6e6a1196315df7678656e055c6c509a8
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=`pwd`/../../cross/bin/arm-angstrom-linux-gnueabi- gta02v5_config
9 make -s ARCH=arm CROSS_COMPILE=`pwd`/../../cross/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