build system cleanup. move shared include files into $(TOPDIR)/include, move lzma...
[openwrt.git] / package / switch / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(TOPDIR)/include/kernel.mk
5
6 PKG_NAME:=kmod-switch
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
10
11 include $(TOPDIR)/include/package.mk
12
13 define Package/kmod-switch
14 SECTION:=drivers
15 CATEGORY:=Drivers
16 DEPENDS:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
17 DEFAULT:=y
18 TITLE:=Switch drivers
19 DESCRIPTION:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
20 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
21 endef
22
23 define Build/Prepare
24 mkdir -p $(PKG_BUILD_DIR)
25 $(CP) ./src/* $(PKG_BUILD_DIR)/
26 endef
27
28 define Build/Compile
29 $(MAKE) -C "$(LINUX_DIR)" \
30 CROSS_COMPILE="$(TARGET_CROSS)" \
31 ARCH="$(LINUX_KARCH)" \
32 PATH="$(TARGET_PATH)" \
33 SUBDIRS="$(PKG_BUILD_DIR)" \
34 EXTRA_CFLAGS="-DBCMGPIO2" \
35 modules
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.049051 seconds and 5 git commands to generate.