Commit 00e6a4e9 authored by Manoj Srivastava's avatar Manoj Srivastava

cscvs to tla changeset 277

Author: srivasta
Date: 1999/07/14 15:26:09
New version

git-archimport-id: srivasta@debian.org--2003-primary/kernel-package--devel--0.1--patch-276
parent 2531dba5
$Id: Problems,v 1.10 1999/05/25 20:05:14 srivasta Exp $
$Id: Problems,v 1.11 1999/07/14 15:26:09 srivasta Exp $
This is an (incomplete) list of problems that people have encountered
in the past while using kernel-package. Please remember to configure
......@@ -133,3 +133,7 @@ make: *** [all] Error 2
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.
This is also caused by a broken grep, (for example, grep
2.3-1). Upgrading to a fixed grep solves this (2.3-4 is knownn
to work, at the time of writing this).
\ No newline at end of file
$Id: README,v 1.22 1999/06/01 18:05:56 srivasta Exp $
$Id: README,v 1.23 1999/07/14 15:26:09 srivasta Exp $
This is the Debian Linux packaging scripts for the Linux kernel.
This package has been put together by Manoj Srivastava <srivasta@debian.org>.
......@@ -96,9 +96,9 @@ a) It only has an effect during the configure phase (in other words, if a
make-kpkg clean or manually remove stamp-configure for it to have an
effect). So, if you re-run make-kpkg with a different revision number,
you have to reconfigure the kernel.
b) It may contain only alphanumerics and the characters + . (full stop,
and plus) and should contain a digit. NOTE: No hyphens allowed. (Look
at Chapter 5 of the Programmers manual for details). Optionally, you
b) It may contain only alphanumerics and the characters + . - (full stop,
hyphen, and plus) and should contain a digit. (Look at Chapter 5
of the Programmers manual for details). Optionally, you
may prepend the revision with a digit followed by a colon (:); this
shall put your revision into a new epoch; (which makes older dpkg very
confused), more on this later.
......@@ -200,7 +200,10 @@ you may put any legal Makefile directive in that file (just make very
sure you know what you are doing ;-).
At the moment, the user modifiable variables supported are:
maintainer: Local kernel-* package maintainer
maintainer: Local kernel-* package maintainer. Please note that
any apostrophes "'" shall have to be quoted like so:
maintainer = John O'\\''Brien.
Yes, this is ugly, but this works.
email: The email address of that person.
pgp: Name to search for in the pgp database _iff_ separate
modules (like pcmcia etc) are being built in
......@@ -300,6 +303,25 @@ With a custom .config file in place (created as above) run again:
% make-kpkg clean
% fakeroot make-kpkg --revision=custom.1.0 kernel_image
|-----------------------------------------------------------------------|
| Special needs |
| Or, for people who want to minimize time spent in fakeroot (for |
| whatever reasons that maybe -- I think that the separate step as |
| non-fake-root is not required, but that is a personal opinion) |
| % make-kpkg clean |
| % make-kpkg --revision=custom.1.0 build |
| % fakeroot make-kpkg --revision=custom.1.0 kernel_image |
| |
| For people who wish to see the user name (not root) when they do a |
| uname -a on the maschine when they install the kernel, there is a |
| trick: |
| % make config |
| % make-kpkg build |
| % fakeroot make -f debian/rules kernel-image-deb |
| shall generate a kernel image with the user name of the user embedded |
| in it. |
-------------------------------------------------------------------------
To create a source or header package, run
% make-kpkg clean
% fakeroot make-kpkg --revision=custom.1.0 kernel_source
......
kernel-package (6.20) unstable; urgency=low
* moved make-kpkg to /usr/bin. closes: Bug#39428
* Fixed man page for makle-kpkg. closes: Bug#39233
* Mention the fact that a broken grep can also cause strangely numberred
packages.
* Fix readme, since it disaalowed hyphens, though they were acceptable
(the version with hyphens is thought to have a debian revision).
closes: Bug#39397
* Added -uc and -us options to make-kpkg to pass on to
dpkg-buildpackage (this may be opening a can of worms -- I may have to
implement a dpkg-buildpackage options option)
* Added documentation for people who want to minimize the time spent as
fake root, and who want to see the users name (not root) when they run
uname -a. Provide a secret exra target for thos folks to use.
* Removed mention of link manipulation in /usr/src, since kernel-package
no longer does that. closes: Bug#40430
* Moved make-kpkg to /usr/bin from /usr/sbin, since building debs can
all be done in user space. closes: Bug#39428
* Partially moved to policy 3.0.0.0 (no /usr/doc/ move yet)
* depends on perl5, as per new perl policy.
-- Manoj Srivastava <srivasta@debian.org> Wed, 14 Jul 1999 10:24:03 -0500
kernel-package (6.19) unstable; urgency=low
* In the postrm, change return 0 to exit 0. closes: Bug#38770
......
......@@ -2,7 +2,7 @@ Source: kernel-package
Priority: optional
Section: misc
Maintainer: Manoj Srivastava <srivasta@debian.org>
Standards-Version: 2.4.0.0
Standards-Version: 3.0.0.0
Package: kernel-package
Description: Debian Linux kernel package build scripts.
......@@ -17,7 +17,7 @@ Description: Debian Linux kernel package build scripts.
If you are running on an intel x86 platform, and you wish to compile a
custom kernel (why else are you considering this package?), then you may
need the package bin86 as well. (This is not required on other platforms).
Depends: perl (>= 5.002-8), dpkg (>= 1.4), dpkg-dev (>= 1.4.0.9), fileutils (>=3.16-4)
Depends: perl5, dpkg (>= 1.4), dpkg-dev (>= 1.4.0.9), fileutils (>=3.16-4)
Recommends: libc-dev, gcc, debianutils, make
Suggests: kernel-source
Architecture: all
......@@ -19,7 +19,7 @@
# sed 's/^Version: *//')
#
# $Id: rules,v 1.13 1999/05/25 20:55:44 srivasta Exp $
# $Id: rules,v 1.14 1999/07/14 15:26:10 srivasta Exp $
# Please change the maintainer information, as well as the debian version
......@@ -39,23 +39,24 @@ package = kernel-package
version := $(shell perl -n0777e 'if ($$. == 1 && m/\(([\S]+)\)/o){print "$$1\n";}' debian/changelog)
FILES_TO_CLEAN = debian/files
STAMPS_TO_CLEAN = stamp-binary
DIRS_TO_CLEAN =
FILES_TO_CLEAN = debian/files
STAMPS_TO_CLEAN = stamp-binary
DIRS_TO_CLEAN =
CONFLOC:=/etc/kernel-pkg.conf
LIBLOC:=/usr/lib/kernel-package
CONFLOC := /etc/kernel-pkg.conf
LIBLOC := /usr/share/kernel-package
MODULE_LOC := /usr/src/modules
# Location of the source dir
SRCTOP := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
SRCTOP := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
# where kernel-package files go to
DEBDIR := $(LIBLOC)
DEBDIR := $(LIBLOC)
DEBDIR_NAME:= $(shell basename $(DEBDIR))
DOCDIR = debian/tmp/usr/doc/$(package)
MAN5DIR = debian/tmp/usr/man/man5
MAN8DIR = debian/tmp/usr/man/man8
DOCDIR = debian/tmp/usr/doc/$(package)
MAN2DIR = debian/tmp/usr/share/man/man1
MAN5DIR = debian/tmp/usr/share/man/man5
MAN8DIR = debian/tmp/usr/share/man/man8
# install commands
install_file= install -p -o root -g root -m 644
......@@ -86,8 +87,10 @@ stamp-binary:
rm -rf debian/tmp debian/tmp.deb
$(make_directory) debian/tmp/DEBIAN
$(make_directory) debian/tmp/etc
$(make_directory) debian/tmp/usr/bin
$(make_directory) debian/tmp/usr/sbin
$(make_directory) debian/tmp/usr/lib/$(package)
$(make_directory) debian/tmp/usr/share/$(package)
$(make_directory) $(MAN1DIR)
$(make_directory) $(MAN5DIR)
$(make_directory) $(MAN8DIR)
$(make_directory) $(DOCDIR)
......@@ -103,20 +106,20 @@ stamp-binary:
$(install_file) debian/copyright $(DOCDIR)/copyright
$(install_file) kernel-pkg.conf.5 $(MAN5DIR)/kernel-pkg.conf.5
$(install_file) kernel-package.5 $(MAN5DIR)/kernel-package.5
$(install_file) make-kpkg.8 $(MAN8DIR)/make-kpkg.8
$(install_file) make-kpkg.8 $(MAN1DIR)/make-kpkg.1
$(install_file) kernel-packageconfig.8 $(MAN8DIR)/
gzip -9fqr debian/tmp/usr/man
gzip -9fqr debian/tmp/share/usr/man
$(install_file) kernel-pkg.conf debian/tmp/etc/kernel-pkg.conf
$(install_program) kernel-packageconfig \
debian/tmp/usr/sbin/kernel-packageconfig
$(install_program) make-kpkg debian/tmp/usr/sbin/make-kpkg
$(install_program) make-kpkg debian/tmp/usr/bin/make-kpkg
(cd kernel; tar cf - * | \
(cd $(SRCTOP)/debian/tmp/usr/lib/$(package);\
(cd $(SRCTOP)/debian/tmp/usr/share/$(package);\
tar xf -))
$(install_file) Rationale $(SRCTOP)/debian/tmp/usr/lib/$(package)/
$(install_file) Rationale $(SRCTOP)/debian/tmp/usr/share/$(package)/
# Hack, tell the rules file what version of kernel package it is
sed -e 's/=K=V/$(version)/' kernel/rules > \
$(SRCTOP)/debian/tmp/usr/lib/$(package)/rules
$(SRCTOP)/debian/tmp/usr/share/$(package)/rules
dpkg-gencontrol
chown -R root.root debian/tmp
dpkg --build debian/tmp ..
......
......@@ -21,7 +21,7 @@
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" $Id: kernel-pkg.conf.5,v 1.10 1999/01/08 05:30:43 srivasta Exp $
.\" $Id: kernel-pkg.conf.5,v 1.11 1999/07/14 15:26:09 srivasta Exp $
.\"
.TH KERNEL\-PKG.CONF 5 "Jan 7 1997" "Debian" "Debian GNU/Linux manual"
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
......@@ -53,6 +53,8 @@ the
.IR postinst.
Can be over\-ridden by the environment variable
.B KPKG_MAINTAINER.
Please note that any apostrophes "'" shall have to be quoted like so:
maintainer = John O'\\''Brien. Yes, this is ugly, but this works.
.TP
.B email:
The email address of that person. Set up at package installation by
......@@ -179,7 +181,13 @@ as needed by
is used to call dpkg-buildpackage with the proper options. The
environment variable
.B ROOT_CMD
over-rides this.
over-rides this. The environment variable
.B UNSIGN_SOURCE
adds to this command an option to have dpkg-buildpackage not sign the
source, similarily, the environment variable
.B UNSIGN_CHANGELOG
adds to this command an option to have dpkg-buildpackage not sign the
changelog.
.TP
.B do_clean
Set to anything but YES, this shall forego the make clean done in the
......
$Id: README,v 1.23 1999/06/01 18:05:24 srivasta Exp $
$Id: README,v 1.24 1999/07/14 15:26:10 srivasta Exp $
This is the Debian GNU/Linux prepackaged version of the Linux kernel.
Linux was written by Linus Torvalds <Linus.Torvalds@cs.Helsinki.FI> and
......@@ -116,12 +116,12 @@ a) It only has an effect during the configure phase (in other words, if a
make-kpkg clean or manually remove stamp-configure for it to have an
effect). So, if you re-run make-kpkg with a different revision number,
you have to reconfigure the kernel.
b) It may contain only alphanumerics and the characters + . (full stop,
and plus) and should contain a digit. NOTE: No hyphens allowed. (Look
at Chapter 5 of the Programmers manual for details). Optionally, you
b) It may contain only alphanumerics and the characters + . (full
stop, hyphen, and plus) and should contain a digit. (Look at
Chapter 5 of the Programmers manual for details). Optionally, you
may prepend the revision with a digit followed by a colon (:); this
shall put your revision into a new epoch; (which makes older dpkg very
confused), more on this later.
shall put your revision into a new epoch; (which makes older dpkg
very confused), more on this later.
You should _not_ use a "_" in the revision number! As tempting as it may
seem, it actually interferes with the policy.
......@@ -199,8 +199,8 @@ mish-mash of modules in /lib/modules/2.0.29 ;-(
Unfortunately, there is no reasonable solution; I suggest moving the
old modules directory before installation, like so (need to be root):
# mv /lib/modules/2.0.29 /lib/modules/2.0.29.save
# dpkg -i kernel-image-2.0.29_custom.1.0_i386.deb
# mv /lib/modules/2.0.29 /lib/modules/2.0.29.save
# dpkg -i kernel-image-2.0.29_custom.1.0_i386.deb
and later get rid of the .save directory.
People who want to have multiple flavours of the same kernel version
......@@ -219,22 +219,25 @@ snippet included during the kernel packages build process, and hence
you may put any legal Makefile directive in that file (just make very
sure you know what you are doing ;-).
At the moment, the user modifiable variables supported are:
maintainer: Local kernel-* package maintainer
At the moment, the user modifiable variables supported are:
maintainer: Local kernel-* package maintainer. Please note that
any apostrophes "'" shall have to be quoted like so:
maintainer = John O'\\''Brien.
Yes, this is ugly, but this works.
email: The email address of that person.
pgp: Name to search for in the pgp database _iff_ separate
modules (like pcmcia etc) are being built in
/usr/src/modules/*. Can be set from environment
variable PGP_SIGNATURE. Defaults to maintainer.
debian: The Debian revision of the kernel packages. Can be set
from the environment variable DEBIAN_REVISION, defaults
to 1.00.
image_in_boot: Set to True if you want the kernel image symlink (vmlinuz)
debian: The Debian revision of the kernel packages. Can be set
from the environment variable DEBIAN_REVISION, defaults
to 1.00.
image_in_boot: Set to True if you want the kernel image symlink (vmlinuz)
in /boot rather than the default /. Can be set from the
environment variable IMAGE_IN_BOOT. defaults to undefined.
kimage: The kernel image type (i.e. zImage or bzImage). Can be
set from the environment variable IMAGE_TYPE. Defaults
to bzImage.
environment variable IMAGE_IN_BOOT. defaults to undefined.
kimage: The kernel image type (i.e. zImage or bzImage). Can be
set from the environment variable IMAGE_TYPE. Defaults
to bzImage.
no_symlink Mutually exclusive to reverse_symlink. Can be used with
image_in_boot. The image is placed in vmlinuz (instead
of /boot/vmlinuz-X.X.XX). The old vmlinuz is moved to
......@@ -269,7 +272,7 @@ root_cmd This should be set to a means of gaining super user
to call dpkg-buildpackage with the proper
options. The environment variable ROOT_CMD over-rides
this.
do_clean Set to anything but YES, this shall forego the make
do_clean Set to anything but YES, this shall forego the make
clean done in the kernel source tree after building
the kernel image package. The environment variable
CLEAN_SOURCE over-rides this.
......@@ -320,6 +323,24 @@ With a custom .config file in place (created as above) run again:
% make-kpkg clean
% fakeroot make-kpkg --revision=custom.1.0 kernel_image
|-----------------------------------------------------------------------|
| Special needs |
| Or, for people who want to minimize time spent in fakeroot (for |
| whatever reasons that maybe -- I think that the separate step as |
| non-fake-root is not required, but that is a personal opinion) |
| % make-kpkg clean |
| % make-kpkg --revision=custom.1.0 build |
| % fakeroot make-kpkg --revision=custom.1.0 kernel_image |
| |
| For people who wish to see the user name (not root) when they do a |
| uname -a on the maschine when they install the kernel, there is a |
| trick: |
| % make config |
| % make-kpkg build |
| % fakeroot make -f debian/rules kernel-image-deb |
| shall generate a kernel image with the user name of the user embedded |
| in it. |
-------------------------------------------------------------------------
To create a source or header package, run
% make-kpkg clean
......@@ -381,7 +402,7 @@ recompile.
Tecras and other notebooks
--------------------------
(Many thanks to Philip Hands <phil@hands.com> and
(Many thanks to Philip Hands <phil@hands.com> and
Avery Pennarun <apenwarr@worldvisions.ca> for this explanation)
Tecras and other notebooks, and some PCs have a problem where they
......@@ -414,7 +435,7 @@ copy in /usr/lib/kernel-package/README.modules).
Have fun,
Manoj Srivastava
Manoj Srivastava
Foot note 1:
For an explanation on why this synchronization is required, consider
......
......@@ -11,7 +11,7 @@
## Status : Unknown, Use with caution!
## HISTORY :
## Description :
## $Id: rules,v 1.72 1999/06/01 18:05:24 srivasta Exp $
## $Id: rules,v 1.73 1999/07/14 15:26:10 srivasta Exp $
###############################################################################
#
......@@ -347,7 +347,7 @@ STAMPS_TO_CLEAN = stamp-build stamp-configure stamp-source stamp-image \
DIRS_TO_CLEAN = debian/tmp-source debian/tmp-headers debian/tmp-image
CONFLOC :=/etc/kernel-pkg.conf
LIBLOC :=/usr/lib/kernel-package
LIBLOC :=/usr/share/kernel-package
ifeq ($(strip $(MODULE_LOC)),)
MODULE_LOC =/usr/src/modules
......@@ -356,10 +356,6 @@ endif
DEBDIR = $(LIBLOC)
DEBDIR_NAME = $(shell basename $(DEBDIR))
ifeq ($(strip $(CONFDIR)),)
CONFDIR = $(DEBDIR)/Config
endif
ifeq ($(strip $(PATCH_DIR)),)
PATCH_DIR = /usr/src/kernel-patches/$(architecture)
endif
......@@ -367,6 +363,14 @@ endif
DIR_PATCH_APPLY = $(PATCH_DIR)/apply
DIR_PATCH_UNPATCH = $(PATCH_DIR)/unpatch
ifeq ($(strip $(CONFDIR)),)
ifeq ($(strip $(patch_the_kernel)),YES)
CONFDIR = $(PATCH_DIR)
else
CONFDIR = $(DEBDIR)/Config
endif
endif
# The destination of all .deb files
# (suggested by Rob Browning <osiris@cs.utexas.edu>)
DEB_DEST := ..
......@@ -420,9 +424,16 @@ patch_the_kernel = $(PATCH_THE_KERNEL)
endif
ifneq ($(strip $(ROOT_CMD)),)
root_cmd = $(ROOT_CMD)
root_cmd := $(root_cmd) $(ROOT_CMD)
endif
ifneq ($(strip $(UNSIGN_SOURCE)),)
root_cmd := $(root_cmd) -us
endif
ifneq ($(strip $(UNSIGN_CHANGELOG)),)
root_cmd := $(root_cmd) -uc
endif
ifneq ($(strip $(CLEAN_SOURCE)),)
do_clean = $(CLEAN_SOURCE)
......@@ -464,7 +475,7 @@ ifeq ($(strip $(IN_KERNEL_DIR)),)
build configure clean binary kernel_source kernel-source kernel-headers\
stamp-source kernel_headers stamp-headers kernel_image stamp-image \
kernel-image kernel-doc kernel_doc stamp-doc buildpackage \
libc_kheaders libc-kheaders stamp-libc-kheaders:
libc_kheaders libc-kheaders stamp-libc-kheaders kernel-image-deb:
@echo "You should invoke this command from the top level directory of"
@echo "a linux kernel source directory tree, and as far as I can tell,"
@echo "the current directory:"
......@@ -482,7 +493,7 @@ ifneq ($(strip $(HAVE_VALID_PACKAGE_VERSION)),YES)
# Hah! Bogus version number
build configure clean binary kernel_source kernel-source kernel-headers\
stamp-source kernel_headers stamp-headers kernel_image stamp-image \
kernel-image kernel-doc kernel_doc stamp-doc buildpackage:
kernel-image kernel-doc kernel_doc stamp-doc buildpackage kernel-image-deb:
@echo "Problems ecountered with the version number $(debian)."
@echo "$(HAVE_VALID_PACKAGE_VERSION)"
@echo ""
......@@ -713,7 +724,13 @@ stamp-doc: configure
touch stamp-doc
kernel-image kernel_image: stamp-image
stamp-image: configure build
stamp-image: configure build kernel-image-deb
# % make config
# % make-kpkg build
# % sudo make -f debian/rules kernel-image-deb
# seems to create a working .deb with a kernel that gives the correct
# user name (as opposed to root@...)
kernel-image-deb:
@test root = "`whoami`" || (echo need root priviledges; exit 1)
rm -f -r ./debian/tmp-image ./debian/tmp-image.deb
test -f stamp-configure || $(deb_rule) configure
......
......@@ -14,7 +14,7 @@
#
#
#
# $Id: make-kpkg,v 1.28 1999/06/02 22:20:44 srivasta Exp $
# $Id: make-kpkg,v 1.29 1999/07/14 15:26:09 srivasta Exp $
#
require 5.002;
use strict;
......@@ -29,7 +29,7 @@ make-kpkg - build Debian kernel packages from Linux kernel sources.
($main::MYNAME = $main::0) =~ s|.*/||;
$main::Author = "Manoj Srivastava";
$main::AuthorMail = "srivasta\@debian.org";
$main::Version = '$Revision: 1.28 $ ';
$main::Version = '$Revision: 1.29 $ ';
my $help_opt=0;
my $revision=0;
......@@ -44,6 +44,8 @@ my $zimage;
my $bzimage;
my $root_cmd;
my $arch_in_name=0;
my $unsign_source='';
my $unsign_changelog='';
my %option_ctl = ("help" => \$help_opt,
"noexec" => \$noexec,
......@@ -57,6 +59,8 @@ my %option_ctl = ("help" => \$help_opt,
"targets" => \$targ_opt,
"zimage" => \$zimage,
"rootcmd=s" => \$root_cmd,
"us" => \$unsign_source,
"uc" => \$unsign_changelog,
"bzimage" => \$bzimage
);
......@@ -230,6 +234,26 @@ option. This is only relevant for the buildpackage target.
=back
=item B<--us>
=over 2
This option is passed to dpkg-buildpackage, and directs that package
not to sign the source. This is only relevant to the buildpackage
target.
=back
=item B<--uc>
=over 2
This option is passed to dpkg-buildpackage, and directs that package
not to sign the changelog. This is only relevant to the buildpackage
target.
=back
=back
The options maybe shortened to the smallest unique string,
......@@ -267,6 +291,14 @@ usage: $main::MYNAME [options] target [target ...]
`fakeroot') as needed by dpkg-buildpackages's
-r option. This is only relevant for the
buildpackage target.
--us This option is passed to dpkg-buildpackage, and
directs that package not to sign the
source. This is only relevant for the
buildpackage target.
--uc This option is passed to dpkg-buildpackage, and
directs that package not to sign the
changelog. This is only relevant for the
buildpackage target.
Use one of --zimage or --bzimage, or none, but not both.
......@@ -300,8 +332,8 @@ the file I<include/linux/autoconf.h> is not preserved.
=over 3
This target runs the targets B<clean>, and B<binary>, and produces the
complete package using B<dpkg-buildpackage>.
This target runs the targets B<clean>, B<build>, and B<binary>, and
produces the complete package using B<dpkg-buildpackage>.
=back
......@@ -491,29 +523,38 @@ sub main (){
print "$targets_help" if $targ_opt;
exit 0;
}
if ($bzimage && $zimage){
print "Use only one of bzimage and zimage options.\n";
print "$usage\n";
exit 1;
}
if ($root_cmd){
if ($root_cmd =~ m/^-/o){
$errors .= "The rootcmd option takes a simple command name\n" .
"Like sudo or fakeroot. The leading - confuses me.\n" .
"rejecting rootcmd $root_cmd";
}
if ($root_cmd || $unsign_source || $unsign_changelog){
if ($root_cmd){
if ($root_cmd =~ m/^-/o){
$errors .= "The rootcmd option takes a simple command name\n" .
"Like sudo or fakeroot. The leading - confuses me.\n" .
"rejecting rootcmd $root_cmd";
}
}
my $argstring = join (' ', @ARGV);
if ($argstring !~ m/buildpackage/o){
print STDERR "Warning: The rootcmd option (set to [$root_cmd]) is\n";
print STDERR "Warning: The rootcmd, uc, and us options ";
$root_cmd && print STDERR "(rootcmd is set to [$root_cmd]) ";
print STDERR " are\n";
print STDERR "only valid for the buildpackage target. The target is:\n";
print STDERR "[$argstring]\n";
print STDERR "Perhaps you would like \n";
print STDERR "% $root_cmd $main::MYNAME $argstring\n";
print STDERR "instead? At the moment, I am ignoring $root_cmd\n";
if ($root_cmd){
print STDERR "Perhaps you would like \n";
print STDERR "% $root_cmd $main::MYNAME $argstring\n";
print STDERR "instead? At the moment, I am ignoring $root_cmd\n";
}
print STDERR "Please hit return to continue\n";
my $ans = <STDIN>;
}
}
# Fine. Now we check targets.
foreach $target (@ARGV){
if ($Known_targets{$target}){
......@@ -606,6 +647,12 @@ EOERR1
if ($root_cmd){
$command .= " ROOT_CMD=$root_cmd ";
}
if ($unsign_changelog){
$command .= " UNSIGN_CHANGELOG=YES ";
}
if ($unsign_source){
$command .= " UNSIGN_SOURCE=YES ";
}
if ($zimage){
$command .= " IMAGE_TYPE=zImage ";
}
......
......@@ -22,7 +22,7 @@
.\" USA.
.\"
.\"
.\" $Id: make-kpkg.8,v 1.16 1999/06/01 18:05:56 srivasta Exp $
.\" $Id: make-kpkg.8,v 1.17 1999/07/14 15:26:09 srivasta Exp $
.\"
.TH MAKE\-KPKG 8 "May 2 1997" "Debian" "Debian GNU/Linux manual"
.SH NAME
......@@ -46,29 +46,23 @@ Print out a usage message.
.BR \-\-revision " number"
Sets the Debian revision number for the packages produced to the argument
.BR number.
This has certain constraints: It only has an effect during the
configure phase (in other words, if a file called
This has certain constraints: the --revision option only has an effect
during the configure phase (in other words, if a file called
.I stamp\-configure
exists, this option has no effect \-\- run
.B make\-kpkg clean
or manually
remove
or manually remove
.I stamp\-configure
for it to have an effect). So, if you re\-run
.B make\-kpkg
with a
different revision number,
you have to reconfigure the kernel.
Secondly, it may contain only
alphanumerics and the characters + . (full stop, and plus) and must
contain a digit.
.BR NOTE:
No hyphens allowed. (Look at Chapter 5 of the Programmers manual for
details). Optionally, you may prepend the revision with a digit
followed by a colon (:)
with a different revision number, you have to reconfigure the kernel.
Secondly, it may contain only alphanumerics and the characters +
. - (full stop, hyphen, and plus) and must contain a digit. (Look at
Chapter 5 of the Programmers manual for details). Optionally,
you may prepend the revision with a digit followed by a colon (:)
.TP
.BR \-\-flavour\ foo
Sets the kernel flavour to the argument \fBnumber\fR. The flavour is
Sets the kernel flavour to the argument \fBfoo\fR. The flavour is
also appended to the package name. You need a patched Makefile to make
this work propperly (see /usr/doc/kernel-package/\s-1FLAVOURS\s0.gz).
It may contain only alphanumerics and the characters \- + . (full
......@@ -93,23 +87,21 @@ compiling.
Some architectures (the Alpha, and the m68k) require a different
kernel for each subarchitecture. This option provides a way of
specifying it as an argument to \fBmake-kpkg\fR. \fBPlease note\fR
that additional
support for sub architectures may be required in the kernel sources to
actually make this do anything.
that additional support for sub architectures may be required in the
kernel sources to actually make this do anything.
.TP
.BR \-\-subarch\ foo
Some architectures (the Alpha, and the m68k) require a different
kernel for each subarchitecture. This option provides a way of
specifying it as an argument to \fBmake-kpkg\fR. \fBPlease note\fR
that additional
support for sub architectures may be required in the kernel sources to
actually make this do anything.
that additional support for sub architectures may be required in the
kernel sources to actually make this do anything.
.TP
.BR \-\-arch_in_name
This option uses an extended name for the kernel image package by
embedding the subarchitecture in the image name, so one could write a
script to create multiple subarchitectures one after the other. You
may also do this by setting the environment variable
may also do this by setting the environment variable
.B ARCH_IN_NAME.
\fBPlease note\fR that only the package
.I name
......@@ -121,7 +113,7 @@ Set the string used to sign the
file for any external modules in
.IR /usr/src/modules/
using PGP. This option will override the builtin default and the site
wide customizations stored in the file
wide customizations stored in the file
.IR /etc/kernel-pkg.conf.
.TP
.B \-\-targets
......@@ -149,6 +141,16 @@ sites where the default is zImage kernels.
The command that provides a means of gaining super user access (for
example, `sudo' or `fakeroot') as needed by dpkg-buildpackages's -r
option. This is only relevant for the buildpackage target.
.TP
.B \-\-us
This option is passed to dpkg-buildpackage, and directs that package
not to sign the source. This is only relevant for the buildpackage
target.
.TP
.B \-\-uc
This option is passed to dpkg-buildpackage, and directs that package
not to sign the changelog. This is only relevant for the buildpackage
target.
.PP
The options maybe shortened to the smallest unique string, and may
be entered with either a \- or a \-\- prefix, and you may use a space
......@@ -158,10 +160,9 @@ or an = symbol between an option string and a value.
.B clean
Cleans the kernel source directory of all files created by target
.B build,
and runs a make distclean. (Please look at a Linux kernel Makefile for
details).
Please note that although we take care of the list of current kernel
configuration contained in the file
and runs a make distclean. (Please look at a Linux kernel Makefile for
details). Please note that although we take care of the list of
current kernel configuration contained in the file
.I .config,
the file
.I include/linux/autoconf.h
......@@ -176,56 +177,36 @@ and produces the complete package using
.B dpkg-buildpackage
.TP
.B binary
This target produces all four
Debian
kernel packages by running the targets
This target produces all four Debian kernel packages by running the
targets
.B kernel_source, kernel_headers, kernel_doc
and
.B kernel_image.
.TP
.B kernel_source
This target produces a debianised package of the
Linux
kernel sources. The package produced also has scripts called at install
and delete times that manage the symbolic link
.I /usr/src/linux
and ensure that the link is pointed at the latest source/header package on
the system.
This target produces a debianised package of the Linux kernel sources.
.TP
.B kernel_headers
This target produces a
Debian
package containing the header files included in the
Linux
kernel. The package produced also has scripts called at install
and delete times that manage the symbolic link
.I /usr/src/linux
and ensure that the link is pointed at the latest source/header package on
the system.
This target produces a Debian package containing the header files
included in the Linux kernel.
.TP
.B kernel_doc
This target produces a
Debian
package containing the documentation included in the
Linux kernel.
This target produces a Debian package containing the documentation
included in the Linux kernel.
.TP
.B kernel_image
This target produces a
Debian
package of the
Linux
kernel source image, and any modules configured in the kernel configuration
file
This target produces a Debian package of the Linux kernel source
image, and any modules configured in the kernel configuration file
.I .config.
If there is no
.I .config
file in the kernel source directory, a default configuration is provided
similar to the one used to create the
file in the kernel source directory, a default configuration is
provided similar to the one used to create the
.B Debian
boot\-floppies. The package produced updates the
.I /boot/psdatabase
file at install time, it also update symbolic links in the root directory
to point to the new kernel image in
file at install time, it also update symbolic links in the root
directory to point to the new kernel image in
.I /boot.
On installation, it also offers to run the Linux loader,
.I LILO,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.