[kernel] accomodate a change in msdos.ko path that appeared on 2.6.28
authorNicolas Thill <nico@openwrt.org>
Fri, 30 Jan 2009 00:50:06 +0000 (00:50 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 30 Jan 2009 00:50:06 +0000 (00:50 +0000)
SVN-Revision: 14273

package/kernel/modules/fs.mk

index 176fed6..40b2c8d 100644 (file)
@@ -237,11 +237,16 @@ endef
 $(eval $(call KernelPackage,fs-nfsd))
 
 
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
+  MSDOS_DIR:=fat
+endif
+MSDOS_DIR?=msdos
+
 define KernelPackage/fs-msdos
   SUBMENU:=$(FS_MENU)
   TITLE:=MSDOS filesystem support
   KCONFIG:=CONFIG_MSDOS_FS
-  FILES:=$(LINUX_DIR)/fs/msdos/msdos.$(LINUX_KMOD_SUFFIX)
+  FILES:=$(LINUX_DIR)/fs/$(MSDOS_DIR)/msdos.$(LINUX_KMOD_SUFFIX)
   AUTOLOAD:=$(call AutoLoad,40,msdos)
 $(call KernelPackage/nls/Depends)
 endef