mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
Update the econet-eth driver to a new version which is of sufficient quality that it is realistic to think about upstreaming. This version is now NAPI based, collects stats, downloads without dropped packets anymore, has debugfs introspection, and can be unloaded and reloaded (providing the reset controller is present). PR #21545 is recommended but not required, without this the ethernet driver will log a warning on startup because it can't get the resets and it will be impossible to unload and reload the driver without a reboot. However, the PoC driver was not capable of reloading so this is not a regression. Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr> Link: https://github.com/openwrt/openwrt/pull/21557 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
35 lines
884 B
Makefile
35 lines
884 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=econet-eth
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/cjdelisle/econet_eth.git
|
|
PKG_MIRROR_HASH:=1d2e55a486d2573fe206fff8ec524af157455f6d7f8e00121da440bce551c28f
|
|
PKG_SOURCE_DATE:=2026-01-15
|
|
PKG_SOURCE_VERSION:=ea5f527f48aeb7aef914f9e4fce6cb173cb06640
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define KernelPackage/econet-eth
|
|
SUBMENU:=Network Devices
|
|
TITLE:=EcoNet EN751221 Ethernet Driver
|
|
DEPENDS:=@TARGET_econet
|
|
FILES:=$(PKG_BUILD_DIR)/econet-eth.ko
|
|
AUTOLOAD:=$(call AutoLoad,90,econet-eth)
|
|
endef
|
|
|
|
define KernelPackage/econet-eth/description
|
|
Out-of-tree ethernet driver for EcoNet EN751221 devices.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(KERNEL_MAKE) M=$(PKG_BUILD_DIR) modules
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,econet-eth))
|