Ritmo2k wrote:Hey Mazi,
I'm not sure I follow you, in other words do not use Imagebuilder?
If you take a look at OpenWrt source repository downloads page, there are several SVN branches you can choose to download the whole source tree to compile from scratch, including building the GCC compilers to compile an OpenWRT firmware. (For me, I use the Development branch which is updated on a daily base.) There are many other ways to download from any OpenWRT SVN repositories. The way I did this is as follows:
1. Create and change into an empty directory, i.e. /opt/openwrt-svn-trunk
2. svn co svn://svn.openwrt.org/openwrt/trunk .
3. svn up
4. make package/symlinks
5. make defconfig
6. make menuconfig
7. make
In item #1 above, you can create and name the directory anyway you want. Just make sure the partition that you will be using to create the directory to contain OpenWRT source tree for compilation is big. If you just want to compile an OpenWRT firmware with a single build environment, perhaps a 10+ GB space should be sufficient. In my case, it easily uses up my 40+ GB with at least four different build environments.
In Item #6, you can configure how to (parallel) build OpenWRT firmware. This includes what to add in the firmware as well as which compiler/libraries to use.
In item #7, if you enable Global build settings -> Compile certain packages parallelized in make menuconfig (Item #6) and you have a multi-core computer system, you can make use of some (if not all) cores to speed up the build/compile of OpenWRT through the -j switch. In my case with an AMD64 PhantomII X3, I execute ionice -c3 nice -n20 make -j10 to build an OpenWRT firmware from scratch. For more information on this, please read Building OpenWrt in section Building Images. Parallel option may break compilation!