PKG_NAME:=batman-adv
-PKG_VERSION:=2012.0.0
-BATCTL_VERSION:=2012.0.0
-PKG_MD5SUM:=f1de23457a47ca4369ee1f0e0b7fc405
-BATCTL_MD5SUM:=27991c2921e18657c7262e917d45106a
+PKG_VERSION:=2012.1.0
+BATCTL_VERSION:=2012.1.0
+PKG_MD5SUM:=a66fdc92c677aadae339073c560a454e
+BATCTL_MD5SUM:=afdc15c886f27f7740212db50db47190
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
MAKE_BATMAN_ADV_ARGS += \
CROSS_COMPILE="$(TARGET_CROSS)" \
+ KERNELPATH="$(LINUX_DIR)" \
ARCH="$(LINUX_KARCH)" \
PATH="$(TARGET_PATH)" \
- $(if $(CONFIG_KMOD_BATMAN_ADV_DEBUG_LOG),EXTRA_CFLAGS="-DCONFIG_BATMAN_ADV_DEBUG") \
SUBDIRS="$(PKG_BUILD_DIR)" \
+ PWD="$(PKG_BUILD_DIR)" \
LINUX_VERSION="$(LINUX_VERSION)" \
- REVISION="" modules
+ CONFIG_BATMAN_ADV_DEBUG=$(if $(CONFIG_KMOD_BATMAN_ADV_DEVEL_DEBUG_LOG),y,n) \
+ REVISION="" all
MAKE_BATCTL_ARGS += \
CFLAGS="$(TARGET_CFLAGS)" \
endef
define Build/Compile
- cp $(PKG_BUILD_DIR)/Makefile.kbuild $(PKG_BUILD_DIR)/Makefile
- $(MAKE) -C "$(LINUX_DIR)" $(MAKE_BATMAN_ADV_ARGS)
+ $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_BATMAN_ADV_ARGS)
$(BATCTL_BUILD)
endef
#!/bin/sh
-bat_config(){
+bat_load_module()
+{
+ [ -d "/sys/module/batman_adv/" ] && return
+
+ . /etc/functions.sh
+ load_modules /etc/modules.d/*-lib-crc16 /etc/modules.d/*-batman-adv
+}
+
+bat_config()
+{
local mesh="$1"
local aggregated_ogms bonding fragmentation gw_bandwidth gw_mode gw_sel_class log_level orig_interval hop_penalty vis_mode
}
-bat_add_interface(){
+bat_add_interface()
+{
local mesh="$1"
local interface="$2"
local interfaces
done
}
-bat_del_interface(){
+bat_del_interface()
+{
local mesh="$1"
local interface="$2"
local interfaces