remove obsolete file
[openwrt.git] / package / diag / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-diag
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/kmod-diag
20 SECTION:=kernel
21 CATEGORY:=Kernel drivers
22 DEFAULT:=y
23 DEPENDS:=@LINUX_2_4_BRCM
24 TITLE:=Driver for router LEDs and Buttons
25 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
26 endef
27
28 define Build/Prepare
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)/
31 endef
32
33 define Build/Compile
34 $(MAKE) -C "$(LINUX_DIR)" \
35 CROSS_COMPILE="$(TARGET_CROSS)" \
36 ARCH="$(LINUX_KARCH)" \
37 SUBDIRS="$(PKG_BUILD_DIR)" \
38 EXTRA_CFLAGS="-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include" \
39 modules
40 endef
41
42 define Package/kmod-diag/install
43 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
44 $(CP) $(PKG_BUILD_DIR)/diag.$(LINUX_KMOD_SUFFIX) \
45 $(1)/lib/modules/$(LINUX_VERSION)/
46 endef
47
48 $(eval $(call BuildPackage,kmod-diag))
This page took 0.0496 seconds and 5 git commands to generate.