kernel: Make use of KERNEL_MAKE
[openwrt/staging/wigyori.git] / package / kernel / mt76 / Makefile
index a086fed1f93fbfeedbe8e8ce18c9f021301b597a..c71c7c52dedf9fae31c241def0089319de1bf2f5 100644 (file)
@@ -379,8 +379,7 @@ ifdef CONFIG_PACKAGE_kmod-mt7921e
 endif
 
 define Build/Compile
-       +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
-               $(KERNEL_MAKE_FLAGS) \
+       +$(KERNEL_MAKE) $(PKG_JOBS) \
                $(PKG_MAKE_FLAGS) \
                M="$(PKG_BUILD_DIR)" \
                NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \