Compile environment

From Halfface
Jump to: navigation, search
Get compile environment for kernel

yum install kernel-2.6.12-1.1381_FC3.src.rpm
rpmbuild -bp --target=noarch  /usr/src/redhat/SPECS/kernel-2.6.spec
cd /usr/src
ln -s redhat/BUILD/kernel-2.6.9/linux-2.6.9/ linux
ln -s redhat/BUILD/kernel-2.6.9/linux-2.6.9/ linux-2.6.9
ls /usr/src/linux/configs/
uname -rm
cp /usr/src/linux-2.6.12/configs/kernel-2.6.12-i686.config /usr/src/linux/.config