fix switch driver makefiles for 2.4
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / switch / Makefile
index 0d597b1f5d922a36117195a2be4a3dbcf073d06a..0db826d64a64f08bb28a9544012b433e573028c9 100644 (file)
@@ -25,14 +25,13 @@ $(PKG_BUILD_DIR)/.configured:
        touch $@
 
 $(PKG_BUILD_DIR)/.built:
        touch $@
 
 $(PKG_BUILD_DIR)/.built:
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               PATH="$(TARGET_PATH)" \
-               ARCH="$(LINUX_KARCH)" \
+       $(MAKE) -C "$(LINUX_DIR)" \
                CROSS_COMPILE="$(TARGET_CROSS)" \
                CROSS_COMPILE="$(TARGET_CROSS)" \
-               KERNEL_VERSION="$(KERNEL_VERSION)" \
-               KERNEL_DIR="$(KERNEL_DIR)" \
+               ARCH="$(LINUX_KARCH)" \
+               PATH="$(TARGET_PATH)" \
+               SUBDIRS="$(PKG_BUILD_DIR)" \
                EXTRA_CFLAGS="-DBCMGPIO2" \
                EXTRA_CFLAGS="-DBCMGPIO2" \
-               all
+               modules
        touch $@
        
 $(IPKG_KMOD_SWITCH):
        touch $@
        
 $(IPKG_KMOD_SWITCH):