Advertisement
trini

U-Boot builder script

Oct 5th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if [ $# -eq 1 ]; then
  4.     MACHINE=$1
  5. else
  6.     MACHINE=omap3_beagle
  7. fi
  8.  
  9. export BUILD_DIR=${MACHINE}
  10. echo "Testing $MACHINE"
  11.  
  12. rm -rf ${BUILD_DIR}
  13. date
  14.  
  15. (make ARCH=arm CROSS_COMPILE=/home/trini/work/arago/toolchains/armv7a/arago-2011.06/armv7a/bin/arm-arago-linux-gnueabi- ${MACHINE}_config && \
  16.     make ARCH=arm CROSS_COMPILE=/home/trini/work/arago/toolchains/armv7a/arago-2011.06/armv7a/bin/arm-arago-linux-gnueabi- -j12) >/dev/null
  17. RC=$?
  18. if [ $RC -eq 0 ]; then
  19.     echo OK
  20. else
  21.     echo Failed.
  22.     exit $RC
  23. fi
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement