+define KernelPackage/mmc
+ TITLE:=MMC/SD Card Support
+ DEPENDS:=@LINUX_2_6_AT91 +kmod-fs-msdos +kmod-fs-vfat +kmod-nls-base \
+ +kmod-nls-cp437 +kmod-nls-iso8859-1 +kmod-nls-utf8
+ DESCRIPTION:=Kernel support for MMC/SD cards
+ SUBMENU:=$(EMENU)
+ endef
+
+define KernelPackage/mmc/2.6
+ KCONFIG:=$(CONFIG_MMC)
+ FILES:= \
+ $(MODULES_DIR)/kernel/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
+ $(MODULES_DIR)/kernel/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
+ $(MODULES_DIR)/kernel/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
+endef
+$(eval $(call KernelPackage,mmc))