dlang wrote:the idea is that if you find a build that does almost what you want, you don't have to try to recreate it from scratch, you can grab the file from the image (or from the router with the image installed), put in in your build tree and do make oldconfig to get it up to date
The .config file is rather large and will take some precious bytes in the image, so that will most likely not be part of the default build. (Wndr3700v2 has so large flash that it is not a problem.)
However, you can easily add a step to your build script to 'cp .config files/etc/.config' between 'make menuconfig' and final 'make world'. Then the file will get included in your image as /etc/.config. (The files stored in <buildroot>/files do get included in the image.)
EDIT:
Another smaller alternative would be to create a seed .config file, which can be blown to full .config with 'make defconfig'. I have a 40-lines .config.init, which I copy as .config, run 'make defconfig' and get the full .config out of it. (All other config lines are created from defaults by defconfig.) Including that .config.init in build would only take a few kilobytes.
See https://forum.openwrt.org/viewtopic.php … 78#p147078
(Last edited by hnyman on 12 Jan 2012, 18:56)