DEPENDS:=@TARGET_brcm47xx
TITLE:=Driver for router LEDs and Buttons
FILES:=$(PKG_BUILD_DIR)/diag.ko
+ AUTOLOAD:=$(call AutoLoad,5,diag,1)
+endef
+
+define KernelPackage/diag/description
+ Kernel modules for Broadcom LED and Button driver
endef
define Build/Prepare
CONFIG_HWMON_DEBUG_CHIP=n
FILES:= \
$(LINUX_DIR)/drivers/hwmon/hwmon.ko
- AUTOLOAD:=$(call AutoLoad,40,hwmon)
+ AUTOLOAD:=$(call AutoLoad,17,hwmon,1)
endef
define KernelPackage/hwmon-core/description
DEPENDS:=@PCI_SUPPORT +!TARGET_brcm47xx:kmod-ssb
SUBMENU:=$(NETWORK_DEVICES_MENU)
FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/b44.ko
- AUTOLOAD:=$(call AutoLoad,50,b44)
+ AUTOLOAD:=$(call AutoLoad,19,b44,1)
endef
define KernelPackage/b44/description
DEPENDS:=+!TARGET_brcm47xx:kmod-libphy +!LINUX_3_3:kmod-hwmon-core +(LINUX_3_8||LINUX_3_9||LINUX_3_10):kmod-ptp
SUBMENU:=$(NETWORK_DEVICES_MENU)
FILES:=$(LINUX_DIR)/drivers/net/ethernet/broadcom/tg3.ko
- AUTOLOAD:=$(call AutoLoad,50,tg3)
+ AUTOLOAD:=$(call AutoLoad,19,tg3,1)
endef
define KernelPackage/tg3/description
TITLE:=PPS support
KCONFIG:=CONFIG_PPS
FILES:=$(LINUX_DIR)/drivers/pps/pps_core.ko
- AUTOLOAD:=$(call AutoLoad,20,pps_core)
+ AUTOLOAD:=$(call AutoLoad,17,pps_core,1)
endef
define KernelPacakge/pps/description
DEPENDS:=+kmod-pps
KCONFIG:=CONFIG_PTP_1588_CLOCK
FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
- AUTOLOAD:=$(call AutoLoad,25,ptp)
+ AUTOLOAD:=$(call AutoLoad,18,ptp,1)
endef
define KernelPacakge/ptp/description
set_preinit_iface() {
ifname=eth0
- insmod diag
- insmod hwmon
- insmod pps_core
- insmod ptp
- insmod tg3
- insmod b44
- insmod bgmac
-
# hardware specific overrides
case "$(cat /proc/diag/model)" in
"Linksys WAP54G V1") ifname=eth1;;
+++ /dev/null
-#!/bin/sh
-
-enable_reset_button() {
- insmod diag
-}
-
-boot_hook_add preinit_main enable_reset_button