Re: How to make kernel binary rpm with devfs enabled from src.rpmin RH9 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2003-04-20 at 07:38, Steven Shiau wrote:
> Hi!
> I am trying to make a kernel i586 and i386 binary rpm with devfs enabled from src rpm.
> First for i586,
> I tried to make a kernel-2.4.20-8.i586 with devfs enabled from
> kernel-2.4.20-8.src.rpm. This is my procedure:
> 1. fetch the kernel source rpm kernel-2.4.20-8.src.rpm.
> 2. mkdir src; cd src; rpm2cpio ../kernel-2.4.20-8.src.rpm |cpio -idmv
> 3. edit the kernel-2.4.20-i586.config, set
> CONFIG_DEVFS_FS=y
> CONFIG_DEVFS_MOUNT=y
> 4. copy all the files to /usr/src/redhat/SOURCES
> 5. run "rpmbuild -ba --target i586 --without BOOT --without smp --sign \
> kernel-2.4.spec"

Instead, do this:

1. Install kernel-source-2.4.20-9.i386.rpm package:
1a. download via ftp then install it, e.g. rpm -i
kernel-source-2.4.20-9.i386.rpm
1b. up2date kernel-source
3. cd /usr/src/linux-2.4
4. make mrproper (this is needed)
5. cp arch/i386/defconfig/config-2.4.20-i586.config .config
6. make menuconfig/xconfig/config/whatever and then enable DEVFS (I
don't recommend you modifying .config manually)
7. make rpm

This will compile the kernel and its modules and will generate both a
SRPM and a RPM package for you to install.
-- 
Please AVOID sending me WORD, EXCEL or POWERPOINT attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Linux Registered User #287198





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux