update qos-scripts to v1.1 - rewritten hfsc rate calculation
[openwrt.git] / package / aodv-uu / 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$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=aodv-uu
13 PKG_VERSION:=0.9.3
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://core.it.uu.se/core/files/
18 PKG_MD5SUM:=05460543054449cb4b170252a7168c65
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/aodv-uu/Default
23 TITLE:=Ad-hoc On-demand Distance Vector Routing
24 DESCRIPTION:=\
25 AODV is the Ad-hoc On-demand Distance Vector routing protocol \\\
26 implementation created at Uppsala University.
27 URL:=http://core.it.uu.se/core/index.php/AODV-UU
28 endef
29
30 define Package/aodv-uu
31 $(call Package/aodv-uu/Default)
32 SECTION:=net
33 CATEGORY:=Network
34 TITLE+= (daemon)
35 DESCRIPTION+=\\\
36 \\\
37 This package contains the AODV userland daemon.
38 endef
39
40 define KernelPackage/aodv-uu
41 $(call Package/aodv-uu/Default)
42 TITLE+= (kernel module)
43 DESCRIPTION+=\\\
44 \\\
45 This package contains the AODV kernel module.
46 FILES:=$(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
47 SUBMENU:=Network Support
48 AUTOLOAD:=$(call AutoLoad,80,$(shell cat ./files/aodv-uu.modules))
49 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
50 endef
51
52 ifeq ($(CONFIG_LINUX_2_6),y)
53 define Build/Compile/linux26
54 $(MAKE) -C $(LINUX_DIR) \
55 ARCH="$(LINUX_KARCH)" \
56 CROSS_COMPILE="$(TARGET_CROSS)" \
57 PATCHLEVEL="$(LINUX_VERSION)" \
58 KERNDIR="$(LINUX_DIR)" \
59 SUBDIRS="$(PKG_BUILD_DIR)/lnx" \
60 modules
61 endef
62 else
63 # We assume 2.4 builds are only for brcm-2.4 yet
64 define Build/Compile/linux24-brcm
65 $(call Build/Compile/Default,\
66 KERNEL_DIR="$(LINUX_DIR)" \
67 KCC="$(TARGET_CC)" \
68 CFLAGS="$(TARGET_CFLAGS)" \
69 kaodv-mips \
70 )
71 cp $(PKG_BUILD_DIR)/lnx/kaodv-mips.$(LINUX_KMOD_SUFFIX) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
72 endef
73 endif
74
75 define Build/Compile
76 $(call Build/Compile/linux26)
77 $(call Build/Compile/linux24-brcm)
78 $(call Build/Compile/Default,\
79 KERNEL_DIR="$(LINUX_DIR)" \
80 KCC="$(TARGET_CC)" \
81 CFLAGS="$(TARGET_CFLAGS)" \
82 aodvd \
83 )
84 endef
85
86 define Package/aodv-uu/install
87 $(INSTALL_DIR) $(1)/usr/sbin
88 $(INSTALL_BIN) $(PKG_BUILD_DIR)/aodvd $(1)/usr/sbin
89 endef
90
91 define Package/kmod-aodv-uu/install
92 $(INSTALL_DIR) $(1)/etc/modules.d
93 $(INSTALL_DATA) ./files/aodv-uu.modules $(1)/etc/modules.d/80-aodv-uu
94 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
95 $(CP) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX) $(1)/lib/modules/$(LINUX_VERSION)/
96 endef
97
98 $(eval $(call BuildPackage,aodv-uu))
99 $(eval $(call KernelPackage,aodv-uu))
This page took 0.041319 seconds and 5 git commands to generate.