From e4b9538ddbcc7c98119249f5b862bbb3f3c88cb5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 24 Oct 2022 20:43:14 +0200 Subject: [PATCH] mac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS Fixes issues with disabling stack validation on non-linux systems Signed-off-by: Felix Fietkau --- package/kernel/mac80211/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 6a3c126e6d3..91dad182540 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -426,8 +426,8 @@ ifeq ($(BUILD_VARIANT),smallbuffers) C_DEFINES+= -DCONFIG_ATH10K_SMALLBUFFERS endif -MAKE_OPTS:= -C "$(PKG_BUILD_DIR)" \ - $(KERNEL_MAKE_FLAGS) \ +MAKE_OPTS:= \ + $(subst -C $(LINUX_DIR),-C "$(PKG_BUILD_DIR)",$(KERNEL_MAKEOPTS)) \ EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include $(IREMAP_CFLAGS) $(C_DEFINES)" \ KLIB_BUILD="$(LINUX_DIR)" \ MODPROBE=true \ -- 2.30.2