1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-23 09:01:06 +02:00

convert ar7-net to KernelPackage template

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5276 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-10-24 13:49:35 +00:00
parent 441866d28c
commit 52ca68a378

View File

@ -22,15 +22,15 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/kmod-avalanche-cpmac define KernelPackage/avalanche-cpmac
SECTION:=kernel
CATEGORY:=Kernel modules
SUBMENU:=Network Devices SUBMENU:=Network Devices
DEPENDS:=@LINUX_2_4_AR7 +kmod-atm DEPENDS:=@LINUX_2_4_AR7 +kmod-atm
DEFAULT:=y DEFAULT:=y
TITLE:=AR7 ADSL driver (Annex A) TITLE:=AR7 Network driver (CPMAC)
DESCRIPTION:=The AR7 ADSL driver for Annex A DESCRIPTION:=AR7 Network driver (CPMAC)
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
FILES:=$(PKG_BUILD_DIR)/avalanche_cpmac.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,30,avalanche_cpmac)
endef endef
define Build/Compile define Build/Compile
@ -42,10 +42,5 @@ define Build/Compile
modules modules
endef 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))