2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/kmod-diag
23 DEPENDS
:=@LINUX_2_4_BRCM
24 TITLE
:=Driver for router LEDs and Buttons
25 DESCRIPTION
:=Driver for router LEDs and Buttons
26 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
30 mkdir
-p
$(PKG_BUILD_DIR
)
31 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
35 $(MAKE
) -C
"$(LINUX_DIR)" \
36 CROSS_COMPILE
="$(TARGET_CROSS)" \
37 ARCH
="$(LINUX_KARCH)" \
38 PATH
="$(TARGET_PATH)" \
39 SUBDIRS
="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS
="-DBCMDRIVER -I$(LINUX_DIR)/arch/mips/bcm947xx/include" \
44 define Package
/kmod-diag
/install
45 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
46 $(CP
) $(PKG_BUILD_DIR
)/diag.
$(LINUX_KMOD_SUFFIX
) \
47 $(1)/lib
/modules
/$(LINUX_VERSION
)/
50 $(eval
$(call BuildPackage
,kmod-diag
))