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

Re: Debian-FAQ chapter 9: correction to kernel package build commands



Hi,

On Sun, 2007-02-11 at 13:54 +0000, Mark South wrote:
> From
> http://www.debian.org/doc/manuals/debian-faq/ch-kernel.en.html
> (page 9 of the FAQ) section 9.2 on the mddle of the page:
> 
> "Execute the command: make-kpkg -rev Custom.N kernel_image, where
> N is a revision number assigned by the user. The new Debian
> archive thus formed would have revision Custom.N, e.g.
> kernel-image-2.2.14_Custom.1_i386.deb for the Linux kernel 2.2.14
> on i386."
> 
> Under Debian 3.1r4 this results in, for example: 
> 
>     # make-kpkg -rev Custom.01 linux-2.4.34

Assuming that by "this" you mean "doing something other than what the
section quoted says", then yes.

>     Error: Unknown target linux-2.4.34 
>     use --targets to display help on valid targets.

Indeed, linux-2.4.34 isn't a valid target. It's also *not* what the
section you quoted says to do. If one follows the instructions above,
the correct command would be

  make-kpkg -rev Custom.01 kernel_image

as the make-kpkg documentation, or running make-kpkg --targets as
suggested in the error message would also suggest.

"kernel_image" is the name of the target, not text you're intended to
replace. Where text is a placeholder which you need to replace, it's
shown in italics, as with the "N" in the quoted section.

> The command should instead read as
> 
> make-kpkg --revision Custom.N buildpackage

No, it shouldn't, imho, as that would have a different effect.
buildpackage produces far more than just the kernel image.

Regards,

Adam



Reply to: