fix dropbear depends and defaults
[openwrt.git] / package / switch / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(TOPDIR)/package/kernel.mk
5
6 PKG_NAME := kmod-switch
7 PKG_RELEASE := 1
8 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12
13 define Build/Prepare
14 mkdir -p $(PKG_BUILD_DIR)
15 $(CP) ./src/* $(PKG_BUILD_DIR)/
16 endef
17
18 define Build/Compile
19 $(MAKE) -C "$(LINUX_DIR)" \
20 CROSS_COMPILE="$(TARGET_CROSS)" \
21 ARCH="$(LINUX_KARCH)" \
22 PATH="$(TARGET_PATH)" \
23 SUBDIRS="$(PKG_BUILD_DIR)" \
24 EXTRA_CFLAGS="-DBCMGPIO2" \
25 modules
26 endef
27
28 define Package/kmod-switch
29 SECTION:=drivers
30 CATEGORY:=Drivers
31 DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
32 DEFAULT:=y
33 TITLE:=Switch drivers
34 DESCRIPTION:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
35 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
36 endef
37
38 define Package/kmod-switch/install
39 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
40 $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
41 $(1)/lib/modules/$(LINUX_VERSION)
42 endef
43
44 $(eval $(call BuildPackage,kmod-switch))
This page took 0.049692 seconds and 5 git commands to generate.