|
|

楼主 |
发表于 2007-12-15 09:49:38
|
显示全部楼层
man make-kpkg
--append-to-version foo
--append_to_version foo
This argument ( foo ) is appended to the value of the EXTRAVERSION variable present in the kernel Make‐
file. Since EXTRAVERSION is a component of the kernel version, it is also added to the Debian package
name, and, as such must obey the policy governing the package name. That means it may contain only lower‐
case alphanumerics and the characters ~ - + . (tilde, full stop, hyphen, and plus). Uppercase letters are
not permitted under the Policy for a new package. If the environment variable IGNORE_UPPERCASE_VERSION is
set, make-kpkg shall lower case version numbers set in the Makefile or in the localversion file. This
option over rides the environment variable APPEND_TO_VERSION Please note that you must run a make-kpkg
clean after configuring the kernel using make (x|menu)?config, since that creates the file
include/linux/version.h without the append_to_version data (foo). This file won’t be updated by the
make-kpkg run (make-kpkg creates version.h if it doesn’t exist, but doesn’t touch if exists), so the final
kernel will _not_ have the append_to_version data in its version number it shall look for the modules and
symbols in all the wrong places. The simplest solution is either to remove include/linux/version.h after
configuring and before compiling, or running make-kpkg clean after configuring, before compiling. Note
also that once you use --append_to_version foo for configuring, or building the kernel-image, you need to
also use the same option in any later invocation of make-kpkg (say, for building stand alone modules, or
something). make-kpkg does not remember the argument foo in between invocations (this is different from
the behavior of --revision, which we do remember in between invocations). If you are annoyed by make-kpkg
whining about using --append_to_version and there already being a version.h file from before, you can set
the environment variable VERSION_H_OK which shall shut off the warning. |
|