build: use KERNEL_MAKE_FLAGS for kernel file compilations
[openwrt/staging/mkresin.git] / package / kernel / ar7-atm / Makefile
index edec44f969f19b20a12febfbc3711fcb2deb9a10..82d6f61a7d0215fc28bc4bc9ff808eaaa3b97265 100644 (file)
@@ -80,8 +80,7 @@ endef
 
 define Build/Compile
        $(MAKE) -C "$(LINUX_DIR)" \
-               CROSS_COMPILE="$(TARGET_CROSS)" \
-               ARCH="$(LINUX_KARCH)" \
+               $(KERNEL_MAKE_FLAGS) \
                SUBDIRS="$(PKG_BUILD_DIR)" \
                modules
 endef