From 7ca8bf1122035b2917c477b592e5f69b5c9d2ba3 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openwrt.org>
Date: Sun, 28 Aug 2005 09:56:04 +0000
Subject: Makefile change to compile modules, minor change in patch

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1775 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 target/linux/linux-2.6/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'target/linux/linux-2.6/Makefile')

diff --git a/target/linux/linux-2.6/Makefile b/target/linux/linux-2.6/Makefile
index 5631735321..7108321282 100644
--- a/target/linux/linux-2.6/Makefile
+++ b/target/linux/linux-2.6/Makefile
@@ -198,8 +198,8 @@ $(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
 	
 $(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
 	rm -rf $(LINUX_BUILD_DIR)/modules
-	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
-	$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install
+	$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
+	$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install
 	touch $(LINUX_DIR)/.modules_done
 
 $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
-- 
cgit v1.2.3