DSL-N :: Automate build/compile environment in DSL-N



I've been working on a build/compile environment in DSL-N to enable me to compile applications and modules away from an Internet connection.

Basically, I have a simple script to install a set of deb packages I downloaded previously and (if needed) a second script to install and prepare the full kernel sources.

It's not a big deal, but rather than having to manually execute the following actions, is it possible to use a script to achieve the same thing?

Code Sample
# make menuconfig
<select menu item "load alternative configuration">
<load knoppix .config file>
<select "exit">
<select "save alternative configuration">
# make modules_prepare

Instead of using make menuconfig where it requires user interaction, why not overwrite defconfig and use make oldconfig (or whatever the equivalent is on 2.6.x)?
You were right, this did the trick:
Code Sample
cp -f /usr/src/linux-2.6.12/.config /usr/src/linux-2.6.12/arch/i386/defconfig
cd /usr/src/linux-2.6.12
make oldconfig
make modules_prepare

Thanks


original here.