Im toying around with the idea of scripting the steps to
recompiling a kernel starting with
the arcive in a directory and ending with a readied kernel
(to install via linuxconf)
the flow goes
>From the directory where the file is (given say
linux-2.3.99pre5.tar.gz)
1 break the file name into
a checksum - does the file start with "linux-"
b version number - everything from {linux-} to the
character before the third dot (2.3.99pre5 in this case)
c compression type (hook for bz kernel files)
2 next the acrobatics
a untar the file (can use *.tar.gz or *.tar.bz as file
name?)
b rename the linux directory just made to the version
number
c move the old kernel sources to linux.old
d move the new sources to /usr/src/ and symlink to
/usr/src/linux/
3 the part i already have done
a move to /usr/src/linux/
b issue make xconfig && make dep ..... ( how to have
each stage dump both standout and stand err to files?)
any hints out there? opinions?