2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://core.it.uu.se
/core
/files
/
18 PKG_MD5SUM
:=05460543054449cb4b170252a7168c65
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/aodv-uu
/Default
23 TITLE
:=Ad-hoc On-demand Distance Vector Routing
26 AODV is the Ad-hoc On-demand Distance Vector routing protocol
\\\
27 implementation created at Uppsala University.
28 URL
:=http
://core.it.uu.se
/core
/index.php
/AODV-UU
31 define Package
/aodv-uu
32 $(call Package
/aodv-uu
/Default
)
38 This package contains the AODV userland daemon.
41 define KernelPackage
/aodv-uu
42 $(call Package
/aodv-uu
/Default
)
43 TITLE
+= (kernel module
)
46 This package contains the AODV kernel module.
47 FILES
:=$(PKG_BUILD_DIR
)/lnx
/kaodv.
$(LINUX_KMOD_SUFFIX
)
48 SUBMENU
:=Network Support
49 AUTOLOAD
:=$(call AutoLoad
,80,$(shell cat .
/files
/aodv-uu.modules
))
50 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
53 ifeq ($(CONFIG_LINUX_2_6
),y
)
54 define Build
/Compile
/linux26
55 $(MAKE
) -C
$(LINUX_DIR
) \
56 ARCH
="$(LINUX_KARCH)" \
57 CROSS_COMPILE
="$(TARGET_CROSS)" \
58 PATCHLEVEL
="$(LINUX_VERSION)" \
59 KERNDIR
="$(LINUX_DIR)" \
60 SUBDIRS
="$(PKG_BUILD_DIR)/lnx" \
64 # We assume 2.4 builds are only for brcm-2.4 yet
65 define Build
/Compile
/linux24-brcm
66 $(call Build
/Compile
/Default
,\
67 KERNEL_DIR
="$(LINUX_DIR)" \
69 CFLAGS
="$(TARGET_CFLAGS)" \
72 cp
$(PKG_BUILD_DIR
)/lnx
/kaodv-mips.
$(LINUX_KMOD_SUFFIX
) $(PKG_BUILD_DIR
)/lnx
/kaodv.
$(LINUX_KMOD_SUFFIX
)
77 $(call Build
/Compile
/linux26
)
78 $(call Build
/Compile
/linux24-brcm
)
79 $(call Build
/Compile
/Default
,\
80 KERNEL_DIR
="$(LINUX_DIR)" \
82 CFLAGS
="$(TARGET_CFLAGS)" \
87 define Package
/aodv-uu
/install
88 $(INSTALL_DIR
) $(1)/usr
/sbin
89 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/aodvd
$(1)/usr
/sbin
92 define Package
/kmod-aodv-uu
/install
93 $(INSTALL_DIR
) $(1)/etc
/modules.d
94 $(INSTALL_DATA
) .
/files
/aodv-uu.modules
$(1)/etc
/modules.d
/80-aodv-uu
95 $(INSTALL_DIR
) $(1)/lib
/modules
/$(LINUX_VERSION
)
96 $(CP
) $(PKG_BUILD_DIR
)/lnx
/kaodv.
$(LINUX_KMOD_SUFFIX
) $(1)/lib
/modules
/$(LINUX_VERSION
)/
99 $(eval
$(call BuildPackage
,aodv-uu
))
100 $(eval
$(call KernelPackage
,aodv-uu
))