add nozomi driver
[openwrt.git] / package / nozomi / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 4855 2006-09-24 20:49:31Z nico $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=nozomi
13 PKG_VERSION:=060209
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=nozomi_$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.pharscape.org/3G
18 PKG_MD5SUM:=a90e4d8f389a18b5579f7234a23e32e99
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 PKG_UNPACK:=mkdir -p $(PKG_BUILD_DIR); $(ZCAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
26
27 define KernelPackage/nozomi
28   SUBMENU:=Other modules
29   TITLE:=Option Globetrotter HSDPA driver
30   DESCRIPTION:=Option Globetrotter HSDPA driver
31   URL:=http://www.pharscape.org/
32   VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
33   FILES:=$(PKG_BUILD_DIR)/noz.$(LINUX_KMOD_SUFFIX)
34   AUTOLOAD:=$(call AutoLoad,70,noz)
35 endef
36
37 define Build/Configure
38         $(CP) ./files/Makefile $(PKG_BUILD_DIR)/
39 endef
40
41 define Build/Compile
42         $(MAKE) -C "$(LINUX_DIR)" \
43                 CROSS_COMPILE="$(TARGET_CROSS)" \
44                 ARCH="$(LINUX_KARCH)" \
45                 PATH="$(TARGET_PATH)" \
46                 SUBDIRS="$(PKG_BUILD_DIR)" \
47                 modules
48 endef
49
50 $(eval $(call KernelPackage,nozomi))