Thx for the reply, it worked out for me. Although it proved me wrong
The newly compiled files still have this Build[sha1]-thingy in the file-output. I guess it has to do with not using Codesourcery or whatever....
Regarding your question: I use arm-linux-gnueabi-* as compilers - I don't know if that counts as a "toolchain" but it works
I had to alter your script because of that, of course.