bird2: bump to version 2.15.1
[feed/routing.git] / batctl / Makefile
index d2140c1f82de18b81ea9cac54e1c84cf1a6b3a32..971cd3d1a017e7bdbbae760ba9efd916da89af97 100644 (file)
@@ -3,18 +3,21 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=batctl
-PKG_VERSION:=2020.3
+PKG_VERSION:=2024.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
-PKG_HASH:=3513f7eb3f61817b6894b90832aa5eba513293f487d174ebc98f1bafc9165c64
+PKG_HASH:=683dda9d6054eb260a1ac0022c642798ff4048d6c53a672ea0b3178e6b757a09
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Simon Wunderlich <sw@simonwunderlich.de>
 PKG_LICENSE:=GPL-2.0-only ISC MIT
 PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT LICENSES/deprecated/ISC
 
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_FLAGS:=gc-sections lto
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/batctl/Default
@@ -68,20 +71,6 @@ $(Package/batctl/description)
   Subcommands for configuration, online and offline debugging are enabled.
 endef
 
-# The linker can identify unused sections of a binary when each symbol is stored
-# in a separate section. This mostly removes unused linker sections and reduces
-# the size by ~3% on mipsel.
-
-TARGET_CFLAGS  += -ffunction-sections -fdata-sections
-TARGET_LDFLAGS += -Wl,--gc-sections
-
-# Link-time optimization allows to move parts of the optimization from the single
-# source file to the global source view. This is done by emitting the GIMPLE
-# representation in each object file and analyzing it again during the link step.
-
-TARGET_CFLAGS  += -flto
-TARGET_LDFLAGS += -fuse-linker-plugin
-
 MAKE_VARS += \
         LIBNL_NAME="libnl-tiny" \
         LIBNL_GENL_NAME="libnl-tiny"
@@ -95,28 +84,37 @@ config-n := \
        backbonetable \
        bisect_iv \
        bonding \
+       bla_backbone_json \
+       bla_claim_json \
        bridge_loop_avoidance \
        claimtable \
        dat_cache \
+       dat_cache_json \
        distributed_arp_table \
        elp_interval \
        event \
        fragmentation \
        gateways \
+       gateways_json \
        gw_mode \
+       hardif_json \
+       hardifs_json \
        hop_penalty \
        interface \
        isolation_mark \
        loglevel \
        mcast_flags \
+       mcast_flags_json \
+       mesh_json \
        multicast_fanout \
        multicast_forceflood \
        multicast_mode \
-       nc_nodes \
        neighbors \
+       neighbors_json \
        network_coding \
        orig_interval \
        originators \
+       originators_json \
        ping \
        routing_algo \
        statistics \
@@ -127,6 +125,9 @@ config-n := \
        transglobal \
        translate \
        translocal \
+       transtable_global_json \
+       transtable_local_json \
+       vlan_json \
 
 config-settings := \
        aggregation \
@@ -155,13 +156,27 @@ config-tables := \
        dat_cache \
        gateways \
        mcast_flags \
-       nc_nodes \
        neighbors \
        originators \
        statistics \
        transglobal \
        translocal \
 
+config-json := \
+       bla_backbone_json \
+       bla_claim_json \
+       dat_cache_json \
+       gateways_json \
+       hardif_json \
+       hardifs_json \
+       mcast_flags_json \
+       mesh_json \
+       neighbors_json \
+       originators_json \
+       transtable_global_json \
+       transtable_local_json \
+       vlan_json \
+
 config-tools := \
        event \
        ping \
@@ -185,6 +200,7 @@ ifeq ($(BUILD_VARIANT),default)
 config-y := \
        $(config-settings) \
        $(config-tables) \
+       $(config-json) \
        $(config-tools) \
 
 endif
@@ -194,6 +210,7 @@ ifeq ($(BUILD_VARIANT),full)
 config-y := \
        $(config-settings) \
        $(config-tables) \
+       $(config-json) \
        $(config-tools) \
        $(config-extratools) \