Make linux kernel builds reproducible when BUILDBOT selected
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 12 Jun 2019 00:59:05 +0000 (02:59 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:54:51 +0000 (15:54 -0400)
The linux kernel is not reproducible because the build user
and domain is included into the kernel. Set the build user
to `builder` and build domain to buildhost.

It's also possible to build reproducible builds by setting
KERNEL_BUILD_USER KERNEL_BUILD_DOMAIN to static values.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
(cherry picked from commit fdd0a8d49118134070c13231b6d10ec88b9105da)

config/Config-kernel.in

index 2624f53eede06391eff0f6c22d25061ccd95fb9a..61b058c9e04241f84919adce7fb1ccb6b6a797ac 100644 (file)
@@ -6,6 +6,7 @@
 
 config KERNEL_BUILD_USER
        string "Custom Kernel Build User Name"
+       default "builder" if BUILDBOT
        default ""
        help
          Sets the Kernel build user string, which for example will be returned
@@ -14,6 +15,7 @@ config KERNEL_BUILD_USER
 
 config KERNEL_BUILD_DOMAIN
        string "Custom Kernel Build Domain Name"
+       default "buildhost" if BUILDBOT
        default ""
        help
          Sets the Kernel build domain string, which for example will be