In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bastien Nocera) wrote:
> Andrei Verovski wrote: > > > However, there are no instruction to build deb. I believe Debian has > > instruction for building kernel "Debian Way", search on Debian web site. > > Here is what you want to know: > > 1) grab the sources from somewhere (rsync BenH's tree from > penguinppc.org for example) > 2) cd where/the/sources/are/ > 3) make menuconfig > 4) fakeroot make-kpkg --flavour some_name kernel_image > 5) cd .. > 6) sudo dpkg -i the_package_it_just_created.deb > 7) reboot > > If the build fails at 4), you can edit the files that failed, and > launch > "fakeroot debian/rules binary", it will continue building the kernel > instead of starting all over again. This sounds like a great way to do kernel builds, but I'm having problems with make-kpkg (on woody). The first time I ran root # make-kpkg --flavour benh kernel_image I saw find: /usr/src/modules: No such file or directory test -f stamp-debian || /usr/bin/make -f /usr/share/kernel-package/rules debian test -f .config || /usr/bin/make -f /usr/share/kernel-package/rules .config test ! -f stamp-configure \ && /usr/bin/make FLAVOUR=benh CROSS_COMPILE= \ ARCH=ppc oldconfig \ && /usr/bin/make FLAVOUR=benh CROSS_COMPILE= \ ARCH=ppc dep \ && /usr/bin/make FLAVOUR=benh CROSS_COMPILE= \ ARCH=ppc clean && \ touch stamp-configure make: [stamp-configure] Error 1 (ignored) ...which I guess is ok, since the build proceeded anyway. But after building the kernel it stopped with: if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/benh_kernel/debian/tmp-image -r 2.4.6-pre3; fi make[1]: Leaving directory `/usr/src/benh_kernel' cp vmlinux debian/tmp-image/boot/vmlinux-2.4.6-pre3+benh chmod 644 debian/tmp-image/boot/vmlinux-2.4.6-pre3+benh cp arch/ppc/coffboot/vmlinux.coff debian/tmp-image/boot/vmlinux.coff-2.4.6-pre3+benh cp: cannot stat `arch/ppc/coffboot/vmlinux.coff': No such file or directory make: *** [kernel-image-deb] Error 1 I tried editing debian/rules and setting HAVE_COFF_IMAGE to NO. Then I ran fakeroot debian/rules binary and stopped at: (cd debian/tmp-source/usr/src/; \ tar --bzip2 -cf kernel-source-2.4.6-pre5.tar.bz2 kernel-source-2.4.6-pre5;\ rm -rf kernel-source-2.4.6-pre5;) dpkg-gencontrol -isp -pkernel-source-2.4.6-pre5 -Pdebian/tmp-source/ dpkg-gencontrol: error: package kernel-source-2.4.6-pre5 not in control info make: *** [stamp-source] Error 29 I've looked at the man pages and /usr/doc, but I'm at a loss. Any ideas? Also, is there a way to build the modules and kernel deb, and skip the kernel-source deb? I don't really want it, so it seems like a waste of time and disk space. thanks! -- Michael Blakeley [EMAIL PROTECTED] <http://www.blakeley.com/> Performance Analysis for Internet Technologies