Akemi Yagi wrote:
On Thu, Aug 7, 2008 at 8:34 AM, MHR <mhullrich@xxxxxxxxx> wrote:
On Thu, Aug 7, 2008 at 2:24 AM, Akemi Yagi <amyagi@xxxxxxxxx> wrote:
I suggest you take a look at the Wiki article:
http://wiki.centos.org/HowTos/Custom_Kernel
It has been updated recently (Alan did most of the work) to
accommodate recent changes in the spec file. You will find many lines
that were changed or added newly. Among other things, it now suggests
that you copy the .config file from the config/ directory (or from
your /boot) instead of the SOURCES directory.
Wow! Major update, and I didn't need these for the 92.1.6 build....
THANKS!
One other note about the updated wiki article. This line:
[user@host]$ cp /boot/config-`uname -r` .config
is especially important at this moment even if you are building just
the standard kernel. This is because there is a bug in the current
kernel:
https://bugzilla.redhat.com/show_bug.cgi?id=445095
which causes custom kernel build to fail (details are in that
bugzilla). This has to do with the fact we need to remove the
template section which would otherwise disable the buslogic driver.
By running the above cp command, you will be using the config files
that have buslogic disabled.
hi,
first of all this bug is already fixed by rhel (after i reported it).
second i've a few comment about this wiki page (since we don't do this
way and imho it's much easier and cleaner).
- i don't do the step 3, except:
- %define buildid .your_identifier
- # %_sourcedir/kabitool -b . -d ...
- touch symsets-$KernelVer.tar.gz
- and of course the patches:-)
- at the and of the config merge (currently at line 4768) we add our
extra setting merge eg: like this (and of course we've got our
config-xxx files):
# ------- Start Custom -----------
# XFS hardcoded
for i in %{all_arch_configs}
do
mv $i $i.tmp
$RPM_SOURCE_DIR/merge.pl $RPM_SOURCE_DIR/config-xfs $i.tmp > $i
rm $i.tmp
done
# move to the new libata driver (only sdX)
for i in %{all_arch_configs}
do
sed -i "s/CONFIG_IDE=y/# CONFIG_IDE is not set/g" $i
done
# -------- End Custom -----------
in this way out diff from the centos spec file has about a dozen of
different lines which much easier the read. and after that we build with:
rpmbuild -ba --target "noarch,i386,i686" --without pae --without debug
--without debuginfo --without kabichk ~/rpm/SPECS/kernel-2.6-custom.spec
yours.
--
Levente "Si vis pacem para bellum!"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos