3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=f8212aa6f5e412201eefd328c3608c8d
11 PKG_SOURCE_URL
:=http
://mxhaard.free.fr
/spca50x
/Download
/
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 KERNEL_DIR
:=$(LINUX_DIR
)
21 KERNEL_VERSION
=$(shell echo
"$(LINUX_VERSION)" | cut
-d.
-f1
,2)
23 include $(TOPDIR
)/package
/rules.mk
25 $(eval
$(call PKG_template
,KMOD_SPCA5XX
,kmod-spca5xx
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
27 $(PKG_BUILD_DIR
)/.configured
:
30 $(PKG_BUILD_DIR
)/.built
:
31 $(MAKE
) -C
$(KERNEL_DIR
) \
32 ARCH
="$(LINUX_KARCH)" \
33 CROSS_COMPILE
="$(TARGET_CROSS)" \
34 KERNELVERSION
="$(KERNEL_VERSION)" \
35 SUBDIRS
="$(PKG_BUILD_DIR)" \
40 install -m0755
-d
$(IDIR_KMOD_SPCA5XX
)/lib
/modules
/$(LINUX_VERSION
)
41 cp
-fpR
$(PKG_BUILD_DIR
)/spca5xx.
$(LINUX_KMOD_SUFFIX
) \
42 $(IDIR_KMOD_SPCA5XX
)/lib
/modules
/$(LINUX_VERSION
)/
43 $(RSTRIP_KMOD
) $(IDIR_KMOD_SPCA5XX
)
44 $(IPKG_BUILD
) $(IDIR_KMOD_SPCA5XX
) $(PACKAGE_DIR
)