fix 2.6 module build when compiling on a 2.4 host system
[openwrt.git] / openwrt / target / linux / package / spca5xx / Makefile
1 # $Id: Makefile,v 1.2 2005/06/11 15:36:31 nbd Exp $
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=spca5xx
7 PKG_VERSION:=20051105
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=7d2e84c3d3880728fefd5644713ba0ca
10
11 PKG_SOURCE_URL:=http://mxhaard.free.fr/spca50x/Download/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 ifeq ($(KERNEL_DIR),)
19 KERNEL_DIR:=$(LINUX_DIR)
20 endif
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,KMOD_SPCA5XX,kmod-spca5xx,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
25
26 $(PKG_BUILD_DIR)/.configured:
27 touch $@
28
29 $(PKG_BUILD_DIR)/.built:
30 $(MAKE) -C $(KERNEL_DIR) \
31 ARCH="$(LINUX_KARCH)" \
32 CROSS_COMPILE="$(TARGET_CROSS)" \
33 KERNELVERSION="$(KERNEL_VERSION)" \
34 SUBDIRS="$(PKG_BUILD_DIR)" \
35 modules
36 touch $@
37
38 $(IPKG_KMOD_SPCA5XX):
39 install -m0755 -d $(IDIR_KMOD_SPCA5XX)/lib/modules/$(LINUX_VERSION)
40 cp -fpR $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \
41 $(IDIR_KMOD_SPCA5XX)/lib/modules/$(LINUX_VERSION)/
42 $(RSTRIP_KMOD) $(IDIR_KMOD_SPCA5XX)
43 $(IPKG_BUILD) $(IDIR_KMOD_SPCA5XX) $(PACKAGE_DIR)
44
This page took 0.039487 seconds and 5 git commands to generate.