I also wanted to build my own firmware, but this seem not to work, atleast if you want a working wifi connection.

What i did is made my own openWrt package. The only problem you got, is you can't remove anything from the build just add it.