summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-24 13:49:35 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-24 13:49:35 +0000
commit52ca68a3787c3199868c29bc3514b7852ceab08a (patch)
tree7709c1383dca764e93b0c83cb3e1b4cadd7966f0 /package
parent441866d28c33c94e3e80291977abe42b3df895c6 (diff)
convert ar7-net to KernelPackage template
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5276 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/ar7-net/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/package/ar7-net/Makefile b/package/ar7-net/Makefile
index 526a9bc40..a8423a3fd 100644
--- a/package/ar7-net/Makefile
+++ b/package/ar7-net/Makefile
@@ -22,15 +22,15 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
-define Package/kmod-avalanche-cpmac
- SECTION:=kernel
- CATEGORY:=Kernel modules
+define KernelPackage/avalanche-cpmac
SUBMENU:=Network Devices
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
DEFAULT:=y
- TITLE:=AR7 ADSL driver (Annex A)
- DESCRIPTION:=The AR7 ADSL driver for Annex A
+ TITLE:=AR7 Network driver (CPMAC)
+ DESCRIPTION:=AR7 Network driver (CPMAC)
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
+ FILES:=$(PKG_BUILD_DIR)/avalanche_cpmac.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,30,avalanche_cpmac)
endef
define Build/Compile
@@ -42,10 +42,5 @@ define Build/Compile
modules
endef
-define Package/kmod-avalanche-cpmac/install
- install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
- $(CP) $(PKG_BUILD_DIR)/avalanche_cpmac.$(LINUX_KMOD_SUFFIX) \
- $(1)/lib/modules/$(LINUX_VERSION)
-endef
-$(eval $(call BuildPackage,kmod-avalanche-cpmac))
+$(eval $(call KernelPackage,avalanche-cpmac))