3rdparty/build.sh | ●●●●● patch | view | raw | blame | history |
3rdparty/build.sh
New file @@ -0,0 +1,30 @@ #!/bin/bash REP_CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- function replace_crosstool() { for f in `find -iname "build*.sh"` do sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f done } function do_compile { for dir in `ls` do if [ -f $dir/build*.sh ] ; then cd $dir ./build*.sh cd - fi done } #replace_crosstool do_compile