3 include $(TOPDIR
)/rules.mk
4 include $(TOPDIR
)/package
/kernel.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
11 include $(TOPDIR
)/package
/rules.mk
13 define Package
/kmod-diag
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
)
24 mkdir
-p
$(PKG_BUILD_DIR
)
25 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
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" \
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
)/
44 $(eval
$(call BuildPackage
,kmod-diag
))