From ce2fb744bd9c0e41ee7cd4010f9613c60b6afecb Mon Sep 17 00:00:00 2001 From: Terminator-J Date: Sun, 23 Mar 2025 12:03:35 -0700 Subject: [PATCH] kernel: Set "safe" default values for kernel build host & user Take all the fun out of the game and set sanitized values by default. --- config/BoardConfigKernel.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk index 9b01f03f..08dd65f5 100644 --- a/config/BoardConfigKernel.mk +++ b/config/BoardConfigKernel.mk @@ -116,6 +116,11 @@ endif # Clear this first to prevent accidental poisoning from env KERNEL_MAKE_FLAGS := +# Use "safe" default values for kernel build user & host - matches Pixels, helps avoid detection +KERNEL_MAKE_FLAGS += \ + KBUILD_BUILD_USER="build-user" \ + KBUILD_BUILD_HOST="build-host" + # Add back threads, ninja cuts this to $(getconf _NPROCESSORS_ONLN)/2 KERNEL_MAKE_FLAGS += -j$(shell getconf _NPROCESSORS_ONLN)