From 532fea4083ab3d5ae6ffb9dee72d4d547bda8032 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 fb82aa23..c8078095 100644 --- a/config/BoardConfigKernel.mk +++ b/config/BoardConfigKernel.mk @@ -124,6 +124,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)