In fact, I have downloaded a src.rpm for my modem and then apply this procedure:
#########################################
$ rpm2cpio BCMSM-3.4.19-6.src.rpm | cpio -i
At this point you should have a SPEC file and a tarball in your
BCMSM-sources/ directory. The SPEC file is kernel dependent, so you
cannot use rpmbuild. Instead, do:
$ tar xzf BCMSM-3.4.19.tar.gz
$ cd BCMSM-3.4.19/
$ make rpm RPM_KERNELS=<desired kernel versions> KERNEL_DIR=/usr/src
#########################################
When I execute :
make rpm RPM_KERNELS=<desired kernel versions> KERNEL_DIR=/usr/src
I get the error:
"bash:rpmbuild :command not found"
That's why I need to use rpmbuild
Well, I will try to find rpm-devel on my CD and install it to get rpmbuild command.
Another question:
For mandrake 9.1, where is the base directory (KERNEL_DIR)where kernel sources are installed ? (i.e. KERNEL_DIR=/usr/src, is it correct?)
Thanks a lot
|