fix 2.6 module build when compiling on a 2.4 host system
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / spca5xx / Makefile
index a2b43e997d8136fcb536ab22730a55be66924b1e..95a48a9a30eeefebd922363f3b851dc34df48023 100644 (file)
@@ -28,6 +28,9 @@ $(PKG_BUILD_DIR)/.configured:
 
 $(PKG_BUILD_DIR)/.built: 
        $(MAKE) -C $(KERNEL_DIR) \
+               ARCH="$(LINUX_KARCH)" \
+               CROSS_COMPILE="$(TARGET_CROSS)" \
+               KERNELVERSION="$(KERNEL_VERSION)" \
                SUBDIRS="$(PKG_BUILD_DIR)" \
                modules
        touch $@