kernel: Set "safe" default values for kernel build host & user

Take all the fun out of the game and set sanitized values by default.
This commit is contained in:
Terminator-J
2025-03-23 12:03:35 -07:00
committed by ShukakuZa
parent 76ad5cef29
commit 359da78a3e

View File

@@ -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)