All the OpenWrt buildroot dependencies and Java Runtime (OpenJRE) are already installed.
My Repository is maintained via patches which patch cleanly on top of fresh Barrier Breaker.
All the Package Source (ie. Linux Kernel.tar.xz etc) is cached in 1 directory so I don't need to download any other stuff.
Step 1 liner:
git clone git://git.openwrt.org/14.07/openwrt.git && \
git clone https://github.com/gwlim/mips74k-barrier-breaker-patch.git temp; \
mv temp/* openwrt/; rm -rf temp &&
Step 2 liner:
Symlink the Package Source as a dl folder in the buildroot
(It is like the UNIX way of creating a shortcut in Windows so the OpenWrt buildroot can find the Packages)
Go grab a cup of coffee while the buildroot patches itself
and choose the target platform like WR1043ND etc in the menu
This will build the firmware in parallel processes
make -j 4
Go grab another cup of coffee while the buildroot builds your firmware
After I am done I just take the binaries and nuke the buildroot with a
Every build is a fresh build it is not design to last!
rm -rf ./openwrt
If you do this correctly, you can easily build from source a fully optimized firmware for your Router in less than 1 hour!
The patches keeps tracks of the all changes, it is designed to fail if upstream makes changes which conflicts with existing patches.
This will free up my brain space on remembering all the various changes I made
Also it will prevent conflict with upstream repository
Lastly it will make porting to the next release (Chaos Calmer) much easier as all the changes are recorded with most changes just minor line changes, renaming and shifting around.