get rid of $Id$ - it has never helped us and it has broken too many patches ;)
[openwrt/svn-archive/archive.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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=nozomi
12 PKG_VERSION:=060209
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=nozomi_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.pharscape.org/3G
17 PKG_MD5SUM:=90e4d8f389a18b5579f7234a23e32e99
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_UNPACK:=mkdir -p $(PKG_BUILD_DIR); gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
22
23 define KernelPackage/nozomi
24 SUBMENU:=Other modules
25 TITLE:=Option Globetrotter HSDPA driver
26 URL:=http://www.pharscape.org/
27 DEPENDS:=@LINUX_2_4 @PCMCIA_SUPPORT
28 FILES:=$(PKG_BUILD_DIR)/noz.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,70,noz)
30 endef
31
32 define Build/Configure
33 $(CP) ./files/Makefile $(PKG_BUILD_DIR)/
34 endef
35
36 define Build/Compile
37 $(MAKE) -C "$(LINUX_DIR)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 ARCH="$(LINUX_KARCH)" \
40 PATH="$(TARGET_PATH)" \
41 SUBDIRS="$(PKG_BUILD_DIR)" \
42 modules
43 endef
44
45 $(eval $(call KernelPackage,nozomi))