From: Felix Fietkau Date: Mon, 24 Oct 2022 18:43:14 +0000 (+0200) Subject: mac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e4b9538ddbcc7c98119249f5b862bbb3f3c88cb5;p=openwrt%2Fstaging%2Fwigyori.git mac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS Fixes issues with disabling stack validation on non-linux systems Signed-off-by: Felix Fietkau --- diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 6a3c126e6d..91dad18254 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 \