Documentation/translations/zh_CN/kbuild/kbuild.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Sync the translation of changes in kbuild/kbuild.rst about
KBUILD_BUILD_TIMESTAMP.
Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
---
Documentation/translations/zh_CN/kbuild/kbuild.rst | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Documentation/translations/zh_CN/kbuild/kbuild.rst b/Documentation/translations/zh_CN/kbuild/kbuild.rst
index e5e2aebe1ebc..bacf058272ca 100644
--- a/Documentation/translations/zh_CN/kbuild/kbuild.rst
+++ b/Documentation/translations/zh_CN/kbuild/kbuild.rst
@@ -290,8 +290,13 @@ IGNORE_DIRS
KBUILD_BUILD_TIMESTAMP
----------------------
将该环境变量设置为日期字符串,可以覆盖在 UTS_VERSION 定义中使用的时间戳
-(运行内核时的 uname -v)。该值必须是一个可以传递给 date -d 的字符串。默认值是
-内核构建某个时刻的 date 命令输出。
+(运行内核时的 uname -v)。该值必须是一个可以传递给 date -d 的字符串。例如::
+
+ $ KBUILD_BUILD_TIMESTAMP="Mon Oct 13 00:00:00 UTC 2025" make
+
+默认值是内核构建某个时刻的 date 命令输出。如果提供该时戳,它还用于任何initramfs归档文件
+中的mtime字段。Initramfs mtimes是32位的,因此早于Unix纪元1970年,或晚于协调世界时
+(UTC)2106年2月7日6时28分15秒的日期是无效的。
KBUILD_BUILD_USER, KBUILD_BUILD_HOST
------------------------------------
--
2.25.1
On Wed, Nov 5, 2025 at 10:40 AM Chenguang Zhao <zhaochenguang@kylinos.cn> wrote:
>
> Sync the translation of changes in kbuild/kbuild.rst about
> KBUILD_BUILD_TIMESTAMP.
Please follow how-to.rst[1] to revise your commit message as follows:
请参考以下信息进行输入::
docs/zh_CN: Add self-protection index Chinese translation
Translate .../security/self-protection.rst into Chinese.
Update the translation through commit b080e52110ea
("docs: update self-protection __ro_after_init status")
# 请执行 git log --oneline <您翻译的英文文档路径>,并替换上述内容
Signed-off-by: Yanteng Si <si.yanteng@linux.dev>
# 如果您前面的步骤正确执行,该行会自动显示,否则请检查 gitconfig 文件
保存并退出。
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/translations/zh_CN/how-to.rst
>
> Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
> ---
> Documentation/translations/zh_CN/kbuild/kbuild.rst | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/translations/zh_CN/kbuild/kbuild.rst b/Documentation/translations/zh_CN/kbuild/kbuild.rst
> index e5e2aebe1ebc..bacf058272ca 100644
> --- a/Documentation/translations/zh_CN/kbuild/kbuild.rst
> +++ b/Documentation/translations/zh_CN/kbuild/kbuild.rst
> @@ -290,8 +290,13 @@ IGNORE_DIRS
> KBUILD_BUILD_TIMESTAMP
> ----------------------
> 将该环境变量设置为日期字符串,可以覆盖在 UTS_VERSION 定义中使用的时间戳
> -(运行内核时的 uname -v)。该值必须是一个可以传递给 date -d 的字符串。默认值是
> -内核构建某个时刻的 date 命令输出。
> +(运行内核时的 uname -v)。该值必须是一个可以传递给 date -d 的字符串。例如::
> +
> + $ KBUILD_BUILD_TIMESTAMP="Mon Oct 13 00:00:00 UTC 2025" make
> +
> +默认值是内核构建某个时刻的 date 命令输出。如果提供该时戳,它还用于任何initramfs归档文件
> +中的mtime字段。Initramfs mtimes是32位的,因此早于Unix纪元1970年,或晚于协调世界时
> +(UTC)2106年2月7日6时28分15秒的日期是无效的。
>
> KBUILD_BUILD_USER, KBUILD_BUILD_HOST
> ------------------------------------
> --
> 2.25.1
>
>
© 2016 - 2025 Red Hat, Inc.