How to make kernel binary rpm with devfs enabled from src.rpm in RH9 ?

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

 



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"

But it failed in:
-------------------------------------------------------------------
...
+ make -s include/linux/version.h
+ echo BUILDING THE NORMAL KERNEL for i586...
BUILDING THE NORMAL KERNEL for i586...
+ make -s -j 1 CFLAGS_KERNEL=-Wno-unused bzImage
make[1]: Circular /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/asm/smplock.h <- /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
init/do_mounts.c: In function `rd_load_image':
init/do_mounts.c:620: warning: int format, long unsigned int arg (arg 3)
init/do_mounts.c:647: warning: int format, long unsigned int arg (arg 3)
init/do_mounts.c:650: warning: int format, long unsigned int arg (arg 2)
init/do_mounts.c:662: warning: int format, long unsigned int arg (arg 2)
kmod.c: In function `exec_usermodehelper':
kmod.c:123: warning: implicit declaration of function `set_user'
ide-proc.c: In function `proc_ide_read_identify':
ide-proc.c:484: warning: assignment from incompatible pointer type
base.c: In function `is_devfsd_or_child':
base.c:1417: structure has no member named `p_opptr'
base.c:1417: structure has no member named `p_opptr'
make[3]: *** [base.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_devfs] Error 2
make: *** [_dir_fs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.14899 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.14899 (%build)
-------------------------------------------------------------------
Any idea ?

Second, about i386 rpm, is that possible to make kernel-2.4.20-8.i386.rpm instaed of kernel-BOOT-2.4.20-8.i386.rpm ?
I tried to use 
"rpmbuild -ba --target i386 --without BOOT --without smp --sign kernel-2.4.spec"
but what I got are:
kernel-2.4.20-8.src.rpm
kernel-BOOT-2.4.20-8.i386.rpm
kernel-doc-2.4.20-8.i386.rpm
kernel-source-2.4.20-8.i386.rpm

Why there is no kernel-2.4.20-8.i386.rpm ?

Thanks in advance.
-- 
Steven Shiau  [Chinese Big5]蕭志榥
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 30077, Taiwan.
[Chinese Big5] 台灣新竹市30077科學園區研發六路七號
TEL:886-3-5776085 Ext:335,  FAX:886-3-5773538
E-mail: jhs@xxxxxxxxxxx; steven@xxxxxxxxxxxx
http://www2.nchc.gov.tw/~c00jhs00

-- 
Steven Shiau  [Chinese Big5]蕭志榥
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 30077, Taiwan.
[Chinese Big5] 台灣新竹市30077科學園區研發六路七號
TEL:886-3-5776085 Ext:335,  FAX:886-3-5773538
E-mail: jhs@xxxxxxxxxxx; steven@xxxxxxxxxxxx
http://www2.nchc.gov.tw/~c00jhs00





[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