move the ar7 network driver into a separate package

SVN-Revision: 5186
master
Felix Fietkau 18 years ago
parent 396e5e9a0c
commit 12a32c9c89
  1. 51
      package/ar7-net/Makefile
  2. 5
      target/linux/ar7-2.4/Makefile
  3. 7
      target/linux/ar7-2.4/config
  4. 13341
      target/linux/ar7-2.4/patches/003-net_driver_cpmac.patch

@ -0,0 +1,51 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id:$
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=avalanche-cpmac
PKG_VERSION:=0.1
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
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
VERSION:=$(PKG_VERSION)+$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
endef
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
ARCH="$(LINUX_KARCH)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
EXTRA_CFLAGS="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC" \
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))

@ -12,11 +12,6 @@ LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
include ./config
include $(INCLUDE_DIR)/kernel.mk
$(eval $(call KMOD_template,CPMAC,cpmac,\
$(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
include $(INCLUDE_DIR)/kernel-build.mk
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked

@ -640,12 +640,6 @@ CONFIG_NET_RANDOM=y
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MIPS_AVALANCHE_CPMAC=m
CONFIG_MIPS_CPMAC_INIT_BUF_MALLOC=y
CONFIG_MIPS_CPMAC_PORTS=1
CONFIG_AVALANCHE_CPMAC_AUTO=y
# CONFIG_AVALANCHE_LOW_CPMAC is not set
# CONFIG_AVALANCHE_HIGH_CPMAC is not set
# CONFIG_SUNLANCE is not set
# CONFIG_SUNBMAC is not set
# CONFIG_SUNQE is not set
@ -721,7 +715,6 @@ CONFIG_SHAPER=m
# ATM drivers
#
# CONFIG_ATM_TCP is not set
CONFIG_MIPS_SANGAM_ATM=m
#
# Amateur Radio support

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save