2008-06-11 19:00:34 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=et131x
|
2010-03-28 23:52:50 +00:00
|
|
|
ifdef CONFIG_LINUX_2_6_25
|
|
|
|
PKG_VERSION:=1.2.3-3
|
|
|
|
PKG_RELEASE:=1
|
2008-06-11 19:00:34 +00:00
|
|
|
|
2010-03-28 23:52:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/et131x
|
|
|
|
PKG_MD5SUM:=9496422c7d218f27bae1be42a04d122e
|
|
|
|
endif
|
2008-06-11 19:00:34 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-03-28 23:52:50 +00:00
|
|
|
ifdef CONFIG_LINUX_2_6_25
|
2009-10-05 20:14:49 +00:00
|
|
|
MODULE:=$(PKG_BUILD_DIR)/et131x.$(LINUX_KMOD_SUFFIX)
|
2010-03-28 23:52:50 +00:00
|
|
|
KMOD_BUILD_DIR=$(PKG_BUILD_DIR)
|
2009-10-05 20:14:49 +00:00
|
|
|
else
|
|
|
|
MODULE:=$(LINUX_DIR)/drivers/staging/et131x/et131x.$(LINUX_KMOD_SUFFIX)
|
2010-03-28 23:52:50 +00:00
|
|
|
KMOD_BUILD_DIR=$(LINUX_DIR)/drivers/staging/et131x
|
2009-10-05 20:14:49 +00:00
|
|
|
endif
|
|
|
|
|
2008-06-11 19:00:34 +00:00
|
|
|
define KernelPackage/et131x
|
|
|
|
SUBMENU:=Network Devices
|
|
|
|
TITLE:=Agere ET131x Gigabit Ethernet driver
|
|
|
|
URL:=http://sourceforge.net/projects/et131x
|
2009-10-05 20:14:49 +00:00
|
|
|
FILES:=$(MODULE)
|
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_ET131X=m \
|
|
|
|
CONFIG_ET131X_DEBUG=n
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4 @PCI_SUPPORT
|
2008-06-11 19:00:34 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,et131x)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/et131x/description
|
|
|
|
This package contains the et131x kernel module.
|
|
|
|
endef
|
|
|
|
|
2010-03-28 23:52:50 +00:00
|
|
|
ifndef CONFIG_LINUX_2_6_25
|
2009-10-05 20:14:49 +00:00
|
|
|
define Build/Prepare
|
|
|
|
# nothing to do
|
|
|
|
endef
|
|
|
|
define Build/Configure
|
|
|
|
# nothing to do
|
|
|
|
endef
|
|
|
|
endif
|
2008-06-11 19:00:34 +00:00
|
|
|
|
2010-03-28 23:52:50 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
SUBDIRS="$(KMOD_BUILD_DIR)" \
|
|
|
|
CONFIG_ET131X=m
|
|
|
|
endef
|
|
|
|
|
2008-06-11 19:00:34 +00:00
|
|
|
$(eval $(call KernelPackage,et131x))
|
|
|
|
|