2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=broadcom-mmc
16 include $(INCLUDE_DIR
)/package.mk
18 MAKEFLAGS_KMOD
:= -C
"$(LINUX_DIR)" \
19 CROSS_COMPILE
="$(TARGET_CROSS)" \
20 ARCH
="$(LINUX_KARCH)" \
21 PATH
="$(TARGET_PATH)" \
22 SUBDIRS
="$(PKG_BUILD_DIR)"
24 define KernelPackage
/broadcom-mmc
25 SUBMENU
:=Other modules
26 DEPENDS
:=@TARGET_brcm_2_4
27 TITLE
:=Kernel driver for the Linksys WRT54G MM
/SD-Card Mod
28 URL
:=http
://kiel.kool.dk
/
29 FILES
:=$(PKG_BUILD_DIR
)/mmc.
$(LINUX_KMOD_SUFFIX
)
30 AUTOLOAD
:=$(call AutoLoad
,80,mmc
)
33 define KernelPackage
/broadcom-mmc
/description
34 Kernel driver for the Linksys WRT54G MM
/SD-Card Mod
38 mkdir
-p
$(PKG_BUILD_DIR
)
39 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
43 $(MAKE
) $(MAKEFLAGS_KMOD
) \
47 $(eval
$(call KernelPackage
,broadcom-mmc
))