First you need to create a new Scratchbox environment with newer gcc/g++ : http://wiki.maemo.org/CSSU-thumb_too....7.2-linaro%29 !!! If you want to build for non-thumb you WILL want to skip the step with adding CSSU-Thumb repos. I havent tried it, so I dont guarantee anything At some time you may see an error about libfakeroot, issue: Code: dpkg -i /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/packages/libfakeroot_1.14.4-0+sb1_armel.deb Then you must download sources, make mozconfig file( contains compiling instructions) and build.
dpkg -i /scratchbox/compilers/linaro-4.7-2012.07-fremantle-armv7a/packages/libfakeroot_1.14.4-0+sb1_armel.deb