From b3f7902a0687dced523f49a0430757ac68f6467d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 28 Jan 2016 22:42:34 +0000 Subject: include/kernel: add custom USER/DOMAIN config options These allow the generated kernel's build metadata to be defined explicitly. This metadata is reported, eg, at boot time and in `uname -a` on running systems. If the variables aren't configured, the current build system username and hostname are used as normal. The motivation for this option is to achive reproducible (bit-for-bit identical) kernel builds of official openwrt releases. Signed-off-by: bryan newbold Signed-off-by: Felix Fietkau SVN-Revision: 48541 --- config/Config-kernel.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'config') diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 6e79bae34b..c93bbde511 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -4,6 +4,22 @@ # See /LICENSE for more information. # +config KERNEL_BUILD_USER + string "Custom Kernel Build User Name" + default "" + help + Sets the Kernel build user string, which for example will be returned + by 'uname -a' on running systems. + If not set, uses system user at build time. + +config KERNEL_BUILD_DOMAIN + string "Custom Kernel Build Domain Name" + default "" + help + Sets the Kernel build domain string, which for example will be + returned by 'uname -a' on running systems. + If not set, uses system hostname at build time. + config KERNEL_PRINTK bool "Enable support for printk" default y -- cgit v1.2.3