rename the <boardname>-<kernelversion> directories of base-files to just <boardname...
[openwrt.git] / package / ar7-net / Makefile
index 89ce239..a8423a3 100644 (file)
@@ -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
@@ -38,14 +38,9 @@ define Build/Compile
                CROSS_COMPILE="$(TARGET_CROSS)" \
                ARCH="$(LINUX_KARCH)" \
                SUBDIRS="$(PKG_BUILD_DIR)" \
-               EXTRA_CFLAGS="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC" \
+               EXTRA_CFLAGS="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC -DCONFIG_MIPS_CPMAC_PORTS=1" \
                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))
This page took 0.022245 seconds and 4 git commands to generate.