fix typo
[openwrt.git] / package / broadcom-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:=broadcom-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 KernelPackage/diag
20 SUBMENU:=Other modules
21 DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_6_BRCM||LINUX_2_6_BRCM47XX
22 TITLE:=Driver for router LEDs and Buttons
23 VERSION:=$(PKG_RELEASE)+$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
24 FILES:=$(PKG_BUILD_DIR)/diag.$(LINUX_KMOD_SUFFIX)
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)/
30 endef
31
32 ifeq ($(BOARD),brcm)
33 BUILDFLAGS=-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include
34 endif
35
36 define Build/Compile
37 $(MAKE) -C "$(LINUX_DIR)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 ARCH="$(LINUX_KARCH)" \
40 SUBDIRS="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS="$(BUILDFLAGS)" \
42 modules
43 endef
44
45 $(eval $(call KernelPackage,diag))
This page took 0.078498 seconds and 5 git commands to generate.