summaryrefslogtreecommitdiff
path: root/package/aodv-uu/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-02-20 23:39:33 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-02-20 23:39:33 +0000
commitf393bed10e090c5880bf45c65258c9e4c9946833 (patch)
tree6ea6c8439c879f421e9c78b31227ece5fa1e6b10 /package/aodv-uu/Makefile
parentb37101053aad1afc08f689d32907aafaa3b48b8c (diff)
downloadmtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.zip
mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.gz
mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.bz2
Move aodv-uu to trunk/
SVN-Revision: 6335
Diffstat (limited to 'package/aodv-uu/Makefile')
-rw-r--r--package/aodv-uu/Makefile102
1 files changed, 102 insertions, 0 deletions
diff --git a/package/aodv-uu/Makefile b/package/aodv-uu/Makefile
new file mode 100644
index 0000000..ea42a7f
--- /dev/null
+++ b/package/aodv-uu/Makefile
@@ -0,0 +1,102 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=aodv-uu
+PKG_VERSION:=0.9.3
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://core.it.uu.se/core/files/
+PKG_MD5SUM:=05460543054449cb4b170252a7168c65
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/aodv-uu/Default
+ TITLE:=Ad-hoc On-demand Distance Vector Routing
+ DESCRIPTION:=\
+ AODV is the Ad-hoc On-demand Distance Vector routing protocol \\\
+ implementation created at Uppsala University.
+ URL:=http://core.it.uu.se/core/index.php/AODV-UU
+endef
+
+define Package/aodv-uu
+ $(call Package/aodv-uu/Default)
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE+= (daemon)
+ DESCRIPTION+=\\\
+ \\\
+ This package contains the AODV userland daemon.
+endef
+
+define KernelPackage/aodv-uu
+ $(call Package/aodv-uu/Default)
+ TITLE+= (kernel module)
+ DESCRIPTION+=\\\
+ \\\
+ This package contains the AODV kernel module.
+ FILES:=$(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
+ SUBMENU:=Network Support
+ AUTOLOAD:=$(call AutoLoad,80,$(shell cat ./files/aodv-uu.modules))
+ VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
+endef
+
+ifeq ($(CONFIG_LINUX_2_6),y)
+ define Build/Compile/linux26
+ $(MAKE) -C $(LINUX_DIR) \
+ ARCH="$(LINUX_KARCH)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ PATCHLEVEL="$(LINUX_VERSION)" \
+ KERNDIR="$(LINUX_DIR)" \
+ SUBDIRS="$(PKG_BUILD_DIR)/lnx" \
+ modules
+ endef
+else
+ # We assume 2.4 builds are only for brcm-2.4 yet
+ define Build/Compile/linux24-brcm
+ $(call Build/Compile/Default,\
+ KERNEL_DIR="$(LINUX_DIR)" \
+ KCC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ kaodv-mips \
+ )
+ cp $(PKG_BUILD_DIR)/lnx/kaodv-mips.$(LINUX_KMOD_SUFFIX) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
+ endef
+endif
+
+define Build/Compile
+ $(call Build/Compile/linux26)
+ $(call Build/Compile/linux24-brcm)
+ $(call Build/Compile/Default,\
+ KERNEL_DIR="$(LINUX_DIR)" \
+ KCC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ aodvd \
+ )
+endef
+
+define Package/aodv-uu/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/aodvd $(1)/usr/sbin
+endef
+
+define Package/kmod-aodv-uu/install
+ $(INSTALL_DIR) $(1)/etc/modules.d
+ $(INSTALL_DATA) ./files/aodv-uu.modules $(1)/etc/modules.d/80-aodv-uu
+ $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
+ $(CP) $(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX) $(1)/lib/modules/$(LINUX_VERSION)/
+endef
+
+$(eval $(call BuildPackage,aodv-uu))
+$(eval $(call KernelPackage,aodv-uu))