From: Felix Fietkau Date: Wed, 2 Oct 2019 10:53:09 +0000 (+0200) Subject: build: force disable stack validation during kernel build on non-linux systems X-Git-Tag: v21.02.0-rc1~4897 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5f8e587240;p=openwrt%2Fstaging%2Fpepe2k.git build: force disable stack validation during kernel build on non-linux systems The check for libelf in the kernel build is not enough, because the code that uses libelf for stack validation is completely non-portable, as it tries to include asm/types.h and relies on kernel types in user space. Until this is fixed properly, the only solution is to disable this on any non Linux build host Signed-off-by: Felix Fietkau --- diff --git a/include/kernel.mk b/include/kernel.mk index 97d23661c9..73645330fe 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -129,7 +129,8 @@ ifdef CONFIG_USE_SPARSE KERNEL_MAKEOPTS += C=1 CHECK=$(STAGING_DIR_HOST)/bin/sparse endif -ifeq ($(HOST_OS),Darwin) +ifneq ($(HOST_OS),Linux) + KERNEL_MAKEOPTS += CONFIG_STACK_VALIDATION= export SKIP_STACK_VALIDATION:=1 endif