X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/47267182d5a91cb9c58270bfb1e97376fd5f07eb..e2b0a0cc9aa0c95f9eef48c44ffba0ded73a2ea3:/package/ar7-net/Makefile?ds=sidebyside diff --git a/package/ar7-net/Makefile b/package/ar7-net/Makefile index 526a9bc40..90c6d6565 100644 --- a/package/ar7-net/Makefile +++ b/package/ar7-net/Makefile @@ -4,7 +4,7 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id:$ +# $Id$ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk @@ -16,21 +16,17 @@ PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources PKG_MD5SUM:=ce46849a8f1055cef09c59c6bdb7f86a -PKG_CAT:=bzcat - -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 +38,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))