kernel: be consistent with formatting style
[openwrt/svn-archive/archive.git] / package / kernel / broadcom-diag / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=broadcom-diag
12 PKG_RELEASE:=10
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define KernelPackage/diag
17 SUBMENU:=Other modules
18 DEPENDS:=@TARGET_brcm47xx
19 TITLE:=Driver for router LEDs and Buttons
20 FILES:=$(PKG_BUILD_DIR)/diag.ko
21 AUTOLOAD:=$(call AutoLoad,5,diag,1)
22 endef
23
24 define KernelPackage/diag/description
25 Kernel modules for Broadcom LED and Button driver
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="$(BUILDFLAGS)" \
39 modules
40 endef
41
42 $(eval $(call KernelPackage,diag))