Customizing the Kernel Config
After cloning a kernel's git repository, it
is possible to customize the configuration file to your liking. The
procedure is slightly different depending on if you're using hardy or
intrepid.
Customizing the Hardy Kernel Config
The eeepc kernel configuration is stored within the following file on
ubuntu-hardy-eeepc.git:
- debian/binary-custom.d/eeepc/config.i386
It is possible to edit this file directly, or to use the traditional kernel
"config" or "menuconfig" on it via symlink:
ln -s debian/binary-custom.d/eeepc/config.i386 .config
make menuconfig
This should automatically update our eeepc configuration file
debian/binary-custom.d/eeepc/config.i386, however it will leave a
bit of a mess. Make sure you get "Mr. Proper" to clean the kernel up of
any temporary config/build files!
make mrproper
(Don't worry, "Mr. Proper" was modified in my repository to skip the
debian sub directory. If you were to run "make mrproper" on a
direct ubuntu-intrepid.git clone, it would turf your entire debian folder.
Lame!)
Now you're ready to build!
Customizing the Intrepid Kernel Config
Intrepid is slightly different from hardy. The eeepc kernel configuration
is stored within the following files on ubuntu-intrepid-eeepc.git:
- debian/config/i386/config
- debian/config/i386/config.eeepc
- debian/config/i386/config.eeepc-lean
Note, the first config file actually contains shared configuration
options for all of the config.* flavours. The completed
.config file used at build time is actually config and
config.<flavour> concatenated together.
Depending on which kernel you're interested in (eeepc or eeepc-lean) it is
possible to edit these files directly, or to use the traditional kernel
"config" or "menuconfig" on it via manual copy:
cat debian/config/i386/config debian/config/i386/config.eeepc > .config
make menuconfig
Once complete, you need to restore your new configuration back where ubuntu
expects it to be.
cp .config debian/config/i386/config.eeepc
However, now our config.eeepc is actually the FULL config, whereas
the config.generic and config.eeepc-lean are still the
split config. Run updateconfigs to fix it:
debian/rules updateconfigs
Finally, "Mr. Proper" to clean up the mess
make mrproper
Now you're ready to build!
|