You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.3 KiB
60 lines
1.3 KiB
19 years ago
|
#
|
||
13 years ago
|
# Copyright (C) 2006-2012 OpenWrt.org
|
||
19 years ago
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
19 years ago
|
|
||
|
include $(TOPDIR)/rules.mk
|
||
19 years ago
|
include $(INCLUDE_DIR)/kernel.mk
|
||
19 years ago
|
|
||
19 years ago
|
PKG_NAME:=kmod-switch
|
||
12 years ago
|
PKG_RELEASE:=6
|
||
19 years ago
|
|
||
19 years ago
|
include $(INCLUDE_DIR)/package.mk
|
||
19 years ago
|
|
||
18 years ago
|
define KernelPackage/switch
|
||
|
SUBMENU:=Other modules
|
||
12 years ago
|
DEPENDS:=@TARGET_brcm47xx
|
||
18 years ago
|
TITLE:=Switch drivers
|
||
18 years ago
|
FILES:= \
|
||
15 years ago
|
$(PKG_BUILD_DIR)/switch-core.ko \
|
||
|
$(PKG_BUILD_DIR)/switch-adm.ko \
|
||
|
$(PKG_BUILD_DIR)/switch-robo.ko
|
||
12 years ago
|
AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm,1)
|
||
19 years ago
|
endef
|
||
19 years ago
|
|
||
17 years ago
|
define KernelPackage/switch/description
|
||
|
This package contains switch drivers for ADM6996L and BCM53XX RoboSwitch.
|
||
|
endef
|
||
|
|
||
19 years ago
|
define Build/Prepare
|
||
|
mkdir -p $(PKG_BUILD_DIR)
|
||
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||
|
endef
|
||
|
|
||
|
define Build/Compile
|
||
|
$(MAKE) -C "$(LINUX_DIR)" \
|
||
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||
|
ARCH="$(LINUX_KARCH)" \
|
||
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
||
18 years ago
|
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
||
19 years ago
|
modules
|
||
|
endef
|
||
17 years ago
|
|
||
|
define Build/InstallDev
|
||
|
mkdir -p $(1)/usr/include
|
||
|
$(CP) ./src/switch-core.h $(1)/usr/include/
|
||
|
endef
|
||
|
|
||
|
define Build/UninstallDev
|
||
|
rm -f $(1)/usr/include/switch-core.h
|
||
|
endef
|
||
|
|
||
18 years ago
|
define KernelPackage/switch/install
|
||
18 years ago
|
$(INSTALL_DIR) $(1)/lib/network/
|
||
|
$(INSTALL_BIN) ./files/switch.sh $(1)/lib/network/
|
||
19 years ago
|
endef
|
||
|
|
||
18 years ago
|
$(eval $(call KernelPackage,switch))
|