package Makefile cleanup: remove uneeded vars
[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 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/diag
18 SUBMENU:=Other modules
19 DEPENDS:=@LINUX_2_4_BRCM||LINUX_2_6_BRCM||LINUX_2_6_BRCM47XX
20 TITLE:=Driver for router LEDs and Buttons
21 FILES:=$(PKG_BUILD_DIR)/diag.$(LINUX_KMOD_SUFFIX)
22 endef
23
24 define Build/Prepare
25 mkdir -p $(PKG_BUILD_DIR)
26 $(CP) ./src/* $(PKG_BUILD_DIR)/
27 endef
28
29 ifeq ($(BOARD),brcm)
30 BUILDFLAGS=-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include $(if $(CONFIG_LINUX_2_4),-DLINUX_2_4)
31 endif
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="$(BUILDFLAGS)" \
39 modules
40 endef
41
42 $(eval $(call KernelPackage,diag))
This page took 0.035967 seconds and 5 git commands to generate.