Commit 0f2bd94b authored by Manoj Srivastava's avatar Manoj Srivastava

cscvs to tla changeset 265

Author: srivasta
Date: 1999/05/25 20:05:14
New versions

git-archimport-id: srivasta@debian.org--2003-primary/kernel-package--devel--0.1--patch-264
parent 96fa25ad
$Id: Problems,v 1.9 1999/02/22 07:15:59 srivasta Exp $
$Id: Problems,v 1.10 1999/05/25 20:05:14 srivasta Exp $
This is an (incomplete) list of problems that people have encountered
in the past while using kernel-package. Please remember to configure
......@@ -124,4 +124,12 @@ make: *** [all] Error 2
k) Modules do not build when there is an epoch in the version.
Some modules have been reported to have problems with epochs
in the version number.
\ No newline at end of file
in the version number.
l) The version number seems to be dropped in the name of the package,
i.e., you get results like kernel-image-.._300_i386.deb, where the
300 is from the --revision flag.
This seems to result from using the broken perl 5.005 packages
installed a while ago in unstable. That package has since been
withdrawn. Problems seem to go away when one downgrades to 5.004.
kernel-package (6.16) unstable; urgency=low
* Another rules typo involving cross compilation
* Added a kernelpackage.5 man page, which should make finding the docs
for make-kpkg easier.
-- Manoj Srivastava <srivasta@debian.org> Tue, 25 May 1999 15:03:14 -0500
kernel-package (6.15) unstable; urgency=low
* Some days you can't win. Yet another cut and paste error in powermac
......
......@@ -5,16 +5,21 @@
## Created On : Sat Apr 27 06:36:31 1996
## Created On Node : melkor.pilgrim.umass.edu
## Last Modified By : Manoj Srivastava
## Last Modified On : Fri Feb 27 16:27:10 1998
## Last Machine Used: tiamat.datasync.com
## Update Count : 122
## Last Modified On : Mon May 24 12:52:04 1999
## Last Machine Used: glaurung.green-gryphon.com
## Update Count : 123
## Status : Unknown, Use with caution!
## HISTORY :
## Description :
##
###############################################################################
# $Id: rules,v 1.11 1998/02/27 22:27:17 srivasta Exp $
#
# VERSION=$(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | \
# sed 's/^Version: *//')
#
# $Id: rules,v 1.12 1999/05/25 20:05:14 srivasta Exp $
# Please change the maintainer information, as well as the debian version
......
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 1997 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" $Id: kernel-package.5,v 1.1 1999/05/25 20:05:45 srivasta Exp $
.\"
.TH KERNEL\-PACKAGE 5 "May 25 1999" "Debian" "Debian GNU/Linux manual"
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
kernel\-package \- A system for creating kernel related packages
.SH "DESCRIPTION"
The
.B kernel-package
package grew out of desire to automate the routine steps required to
compile and install a custom kernel. If you are looking for
instructions on how to use
.B kernel-package,
please have a look at the manual
.B make-kpkg (8).
Configuring instructions are to be found in
.B kernel-pkg.conf(5).
.SH "Advantages of using kernel-package"
.RS
.TP
.B i) Convenience.
I used to compile kernels manually, and it involved a series of steps
to be taken in order; kernel-package was written to take all the
required steps (it has grown beyond that now, but essentially, that is
what it does). This is especially important to novices:
.B make-kpkg
takes all the steps required to compile a kernel, and installation of
kernels is a snap.
.TP
.B ii) Multiple images support
It allows you to keep multiple version of kernel images on your
machine with no fuss.
.TP
.B iii) Multiple Flavours of the same kernel version
It has a facility for you to keep multiple flavours of the
same kernel version on your machine (you could have a stable
2.0.36 version, and a 2.0.36 version patched with the latest
drivers, and not worry about contaminating the modules in
.I /lib/modules)
.TP
.B iv) Built in defaults
It knows that some architectures do not have vmlinuz (using
vmlinux instead), and other use zImage rather than bzImage,
and calls the appropriate target, and takes care of moving the
correct file into place.
.TP
.B v) Module hooks
Several other kernel module packages are hooked into
.B kernel-package,
so one can seamlessly compile, say,
.B pcmcia
modules at the same time as one compiles a kernel, and be assured that
the modules so compiled are compatible.
.TP
.B vi) dpkg support
It enables you to use the package management system to keep track of
the kernels created. Using make-kpkg creates a .deb file, and dpkg can
track it for you. This facilitates the task of other packages that
depend on the kernel packages.
.TP
.B vii) Configuration tracking
It keeps track of the configuration file for each kernel image
in
.I /boot,
which is part of the image package, and hence is the kernel image and
the configuration file are always together.
.TP
.B viii) Multiple config files
It allows you to specify a directory with config files, with separate
config files for each sub-architecture (even allows for different
config files for 2386, i486, etc). It is really neat for people who
need to compile kernels for a variety of sub architectures.
.TP
.B ix) Auxiliary kernel .deb packages
It allows to create a package with the headers, or the sources, also
as a deb file, and enables the package management system to keep track
of those (and there are packages that depend on the package management
system being aware of these packages)
.TP
.B x) Maintainer script services
Since the kernel image package is a full fledged Debian package, it
comes with maintainer scripts, which take care of details like
offering to make a boot disk, manipulating symbolic links in / so that
you can make boot loader scripts static (just refer to the symbolic
links, rather than the real image files; the names of the symbolic
links do not change, but the kernel image file names change with the
version)
.TP
.B xi) Sub architecture support
There is support for the multitudinous sub architectures that have
blossomed under the umbrella of the m68k and power-PC architectures.
.TP
.B xii) kernel-patch support
There is support there for optionally applying patches to the kernel
provided as a kernel-patch .deb file, and building a patched kernel
auto-magically, and still retain an UN-patched kernel source tree
.TP
.B xiii) Portable kernel images
Allows one to compile a kernel for another computer, for example using
a fast machine to compile the kernel for installation on a slower
machine. This is really nice since the modules are all included in the
.deb; and one does not have to deal with modules manually.
.RE
.SH "Disadvantages of using make-kpkg"
.TP
.B i) Automation.
This is a cookie cutter approach to compiling kernels, and there are
people who like being close to the bare metal.
.TP
.B ii) Non traditional
This is not how it is done in the non-Debian world. This flouts
tradition. (It has been pointed out, though, that this is fast
becoming Debian tradition)
.TP
.B iii) Needs superuser
It forces you to use
.B fakeroot
or
.B sudo
or
.B super
or be root to create a kernel image .deb file (this is not as bad as
it used to be before
.B fakeroot)
.RE
.SH FILES
.I /etc/kernel-package.
.SH "SEE ALSO"
.BR make-kpkg (8),
.BR make (1),
.B The GNU Make manual.
.SH BUGS
There are no bugs. Any resemblance thereof is delirium. Really.
.SH AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>,
for the Debian GNU/Linux system.
......@@ -5,15 +5,20 @@
## Created On : Sat Apr 27 06:36:31 1996
## Created On Node : melkor.pilgrim.umass.edu
## Last Modified By : Manoj Srivastava
## Last Modified On : Fri May 21 12:09:42 1999
## Last Modified On : Tue May 25 15:00:54 1999
## Last Machine Used: glaurung.green-gryphon.com
## Update Count : 399
## Update Count : 401
## Status : Unknown, Use with caution!
## HISTORY :
## Description :
## $Id: rules,v 1.69 1999/05/21 17:09:55 srivasta Exp $
## $Id: rules,v 1.70 1999/05/25 20:05:15 srivasta Exp $
###############################################################################
#
# VERSION=$(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | \
# sed 's/^Version: *//')
#
# The version of kernel-package this belongs to
kpkg_version := =K=V
......@@ -772,7 +777,7 @@ endif
$(INT_IMAGE_DESTDIR)/System.map-$(version)
-test -f System.map && chmod 644 \
$(INT_IMAGE_DESTDIR)/System.map-$(version)
dpkg-gencontrol -DArchitecture=$(KERNEL_ARCH) -isp \
dpkg-gencontrol -DArchitecture=$(architecture) -isp \
-p$(i_package) -Pdebian/tmp-image/
chown -R root.root debian/tmp-image
chmod -R og=rX debian/tmp-image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment