diff options
author | Michal Marek <mmarek@suse.cz> | 2011-04-05 08:32:30 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-04-18 08:26:55 -0400 |
commit | 53e6892c0411006848882eacfcfea9e93681b55d (patch) | |
tree | af622e1ec2b1a66961749596ba3b3cf45370f114 /Documentation/kbuild | |
parent | 061296dc2c14f852604fc6849669fe0b78bb1eda (diff) |
kbuild: Allow to override LINUX_COMPILE_BY and LINUX_COMPILE_HOST macros
Make it possible to override the user@host string displayed during boot
and in /proc/version by the environment variables KBUILD_BUILD_USER and
KBUILD_BUILD_HOST. Several distributions patch scripts/mkcompile_h to
achieve this, so let's provide an official way. Also, document the
KBUILD_BUILD_TIMESTAMP variable while at it.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index f1431d099fce..f11ebb33e4a6 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt | |||
@@ -201,3 +201,15 @@ KBUILD_ENABLE_EXTRA_GCC_CHECKS | |||
201 | -------------------------------------------------- | 201 | -------------------------------------------------- |
202 | If enabled over the make command line with "W=1", it turns on additional | 202 | If enabled over the make command line with "W=1", it turns on additional |
203 | gcc -W... options for more extensive build-time checking. | 203 | gcc -W... options for more extensive build-time checking. |
204 | |||
205 | KBUILD_BUILD_TIMESTAMP | ||
206 | -------------------------------------------------- | ||
207 | Setting this to a date string overrides the timestamp used in the | ||
208 | UTS_VERSION definition (uname -v in the running kernel). The default value | ||
209 | is the output of the date command at one point during build. | ||
210 | |||
211 | KBUILD_BUILD_USER, KBUILD_BUILD_HOST | ||
212 | -------------------------------------------------- | ||
213 | These two variables allow to override the user@host string displayed during | ||
214 | boot and in /proc/version. The default value is the output of the commands | ||
215 | whoami and host, respectively. | ||