From: Mark Mentovai Date: Mon, 1 Jun 2026 14:30:17 +0000 (-0400) Subject: kernel: don't disable stack validation in cross builds X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b3601af4e420d242aa0469cdfd2d44d81020aec7;p=thirdparty%2Fopenwrt.git kernel: don't disable stack validation in cross builds c3e31b6a9b04 (2019-07-03), 5f8e5872406d (2019-10-02), and 802bfe080678 (2022-10-20) disabled kernel stack validation when the build host was not running Linux, as the objtool kernel build tool required for stack validation was not portable to other build host environments. This is no longer true, and it is not necessary to attempt to disable kernel stack validation any longer. Signed-off-by: Mark Mentovai Link: https://github.com/openwrt/openwrt/pull/23612 Signed-off-by: Robert Marko --- diff --git a/include/kernel.mk b/include/kernel.mk index 5b590cf3ff5..1f510496620 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -129,11 +129,6 @@ ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL KERNELRELEASE=$(LINUX_VERSION) endif -ifneq ($(HOST_OS),Linux) - KERNEL_MAKE_FLAGS += CONFIG_STACK_VALIDATION= - export SKIP_STACK_VALIDATION:=1 -endif - KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) ifdef CONFIG_USE_SPARSE