revert last change and add a different fix
[openwrt.git] / package / diag / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(INCLUDE_DIR)/kernel.mk
5
6 PKG_NAME:=kmod-diag
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/kmod-diag
14 SECTION:=drivers
15 CATEGORY:=Drivers
16 DEFAULT:=y
17 DEPENDS:=@LINUX_2_4_BRCM
18 TITLE:=Driver for router LEDs and Buttons
19 DESCRIPTION:=Driver for router LEDs and Buttons
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="-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include" \
35 modules
36 endef
37
38 define Package/kmod-diag/install
39 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
40 $(CP) $(PKG_BUILD_DIR)/diag.$(LINUX_KMOD_SUFFIX) \
41 $(1)/lib/modules/$(LINUX_VERSION)/
42 endef
43
44 $(eval $(call BuildPackage,kmod-diag))
This page took 0.043693 seconds and 5 git commands to generate.