aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-28 22:42:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-28 22:42:34 +0000
commita82f94f5a054ee733b1f9fa630f85ff938190e88 (patch)
treef555103516dd60d641a647758d4288e8fcbbeccb /config
parenteeb64dea12f5802b6580e0dace48e5df876305dc (diff)
downloadmaster-187ad058-a82f94f5a054ee733b1f9fa630f85ff938190e88.tar.gz
master-187ad058-a82f94f5a054ee733b1f9fa630f85ff938190e88.tar.bz2
master-187ad058-a82f94f5a054ee733b1f9fa630f85ff938190e88.zip
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 <bnewbold@robocracy.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48541 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in16
1 files changed, 16 insertions, 0 deletions
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