Kernel PPC: Difference between revisions
From VVCWiki
Jump to navigationJump to search
mNo edit summary |
(No difference)
|
Latest revision as of 17:42, 15 August 2010
DRBD requires a custom kernel on PPC platform
- install standard SRPM
rpmdev-setuptree rpm -i http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-194.11.1.el5.src.rpm
- modify source files
sed -i -e 's/^CONFIG_PPC_64K_PAGES.*/CONFIG_PPC_64K_PAGES=n/' ~/rpmbuild/SOURCES/kernel-2.6.18-ppc64.config sed -i -e 's/\(%patch23256 .*\)/#\1/' ~/rpmbuild/SPECS/kernel-2.6.spec sed -i -e 's/.*define buildid/%define buildid .vvc/' ~/rpmbuild/SPECS/kernel-2.6.spec
- build kernel
setarch ppc64 rpmbuild -ba --target ppc64 --with baseonly --without kabichk ~/rpmbuild/SPECS/kernel-2.6.spec