mac80211: use KERNEL_MAKEOPTS instead of KERNEL_MAKE_FLAGS
authorFelix Fietkau <nbd@nbd.name>
Mon, 24 Oct 2022 18:43:14 +0000 (20:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Oct 2022 18:49:34 +0000 (20:49 +0200)
Fixes issues with disabling stack validation on non-linux systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/Makefile

index 6a3c126e6d3af24fc04c0c638e2064513714e053..91dad18254091d7d816207258ed1f2715e95b751 100644 (file)
@@ -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 \