mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-24 22:16:14 +00:00
08dc2691e0
Changes: fa05d58e (tag: libnl3_10_0) libnl-3.10.0 release 490ffa07 python: fix flake8 warnings 6fc66dd8 doc: workaround LINK_DOC with empty libnl.dict 914812a9 lib: avoid overflow in computation of s_seq_next 5248e1a4 all: fix and enable "-Wsign-compare" warning 9451842e build: use AC_USE_SYSTEM_EXTENSIONS instead of defining _GNU_SOURCE 20664e1e build: move "-DPGKLIBDIR" and rename 81cab7da build: cleanup defining SYSCONFDIR on command line cf47571c build: drop unnecessary "-Wno-missing-field-initializers" from default CFLAGS 131008f7 build: add "-Wvla" and "-Wdeclaration-after-statement" to default CFLAGS 7e05b622 lib: add internal _nla_len() helper 32688201 route: treat routes with via nexthops as universe scoped as well c36c7faa format: reformat "include/base/nl-base-utils.h" 49f78229 tests: add a very basic test for route cache 2ebbc034 tests: add NLTstSelectRoute test helper d784f2cb tests: set NLTST_IN_CI for not skipping tests accidentally dcb9e2ef route: add missing priority to route_keygen() debug print d44505ed tests: add helper to detect availablility of iproute2 774863b4 tests: add helper functions for tests 45a10f96 route: move "struct rtnl_nexthop" to "nl-priv-dynamic-route" 153f213b build: fix "check-progs" target in "Makefile.am" a1e0b8b2 github: print test-suite.log in case of test failure 3e080631 route: expose nexthop id attribute 401c2488 tests: fix _nltst_object_to_string() to print one line only 529c2ab8 route: drop unused fields from "struct rtnl_route" 71e59e14 build: separate build tests from unit tests 8539b7d3 format: reformat "tests/nl-test-util.h" file 6db85366 route: merge branch 'bisdn:jogo_route_nh_cmp' 861fb809 route: use the new helper function for comparing nexthops 8cf29d7b nexthop: add a identical helper function 7cc72d19 utils: reserve the nl_has_capabiliy numbers for releases 3.10 - 3.12 30da5107 github,clang-format: update fedora version for clang-format 2301992b route: fix IPv6 ecmp route deleted nexthop matching 72e4d73f cache: merge branch 'ievenbach:aurora/cache-mgr-cb' 3381acef cache: use cleanup attribute in nl_cache_mngr_alloc_ex() 32cb9f39 cache: cleanup nl_cache_mngr_alloc_ex() 1dbdc30a cache: allow to allocate cache manager with custom refill socket 18b74e08 tests: test compiling all public headers with C++ compiler 691202bf tests: don't use $COMPILE for building header tests 15d90cbf include: add _NL_NO_WARN_DEPRECATED_HEADER for suppressing warning about deprecated headers 8a5f671a tests: avoid "-Wunused-parameter" warning in build headers test db1a9d7d route: avoid compiler warning about calloc() arguments in rtnl_netem_set_delay_distribution() 3a43faa1 cache: fix new object in callback v2 on updated objects 46cae1bf socket: fix ubsan complaint about incorrect left-shift in generate_local_port() 96ddcd99 all: merge branch 'th/nl-debug' 13ab0122 github: test with --enable-debug=no configure option 264b244e utils: always define nl_debug_dp dbe21b8d core: always define statements for NL_DBG() e592dd89 build: always define NL_DEBUG 58734974 all: use defines for attributes 0c16c9cb route/bison: include "nl-default.h" in lex/yacc files 19d48b0f route: add support for layer 3 filtering on bridges 3646398d route: merge branch 'Cordell-O:main' e21278ed tests: add test for bridge vlan attributes. 4f324f73 route: add support for vlan filtering on bridge ports. bf071f2b route: Add support to set ageing time for dynamic bridge table entries b76c3a5d tests: add unit test for `nl_addr_parse("default", AF_INET6, &addr6)` 8693347f lib/xfrm: add missing #include <time.h> Small size increase: 955 bin/packages/mips_24kc-old/base/libnl200_3.9.0-r1_mips_24kc.ipk 11157 bin/packages/mips_24kc-old/base/libnl-cli200_3.9.0-r1_mips_24kc.ipk 34896 bin/packages/mips_24kc-old/base/libnl-core200_3.9.0-r1_mips_24kc.ipk 7698 bin/packages/mips_24kc-old/base/libnl-genl200_3.9.0-r1_mips_24kc.ipk 25400 bin/packages/mips_24kc-old/base/libnl-nf200_3.9.0-r1_mips_24kc.ipk 148366 bin/packages/mips_24kc-old/base/libnl-route200_3.9.0-r1_mips_24kc.ipk 956 bin/packages/mips_24kc-new/base/libnl200_3.10.0-r1_mips_24kc.ipk 11154 bin/packages/mips_24kc-new/base/libnl-cli200_3.10.0-r1_mips_24kc.ipk 34965 bin/packages/mips_24kc-new/base/libnl-core200_3.10.0-r1_mips_24kc.ipk 7699 bin/packages/mips_24kc-new/base/libnl-genl200_3.10.0-r1_mips_24kc.ipk 25385 bin/packages/mips_24kc-new/base/libnl-nf200_3.10.0-r1_mips_24kc.ipk 149852 bin/packages/mips_24kc-new/base/libnl-route200_3.10.0-r1_mips_24kc.ipk Link: https://github.com/openwrt/openwrt/pull/16592 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
149 lines
3.6 KiB
Makefile
149 lines
3.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libnl
|
|
PKG_VERSION:=3.10.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/thom311/libnl/releases/download/libnl$(subst .,_,$(PKG_VERSION))
|
|
PKG_HASH:=49b3e2235fdb58f5910bbb3ed0de8143b71ffc220571540502eb6c2471f204f5
|
|
|
|
PKG_LICENSE:=LGPL-2.1
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:libnl_project:libnl
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_BUILD_FLAGS:=gc-sections
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libnl/default
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
URL:=http://www.infradead.org/~tgr/libnl/
|
|
ABI_VERSION:=200
|
|
endef
|
|
|
|
define Package/libnl-core
|
|
$(call Package/libnl/default)
|
|
TITLE:=Core Netlink Library
|
|
DEPENDS:=+libpthread
|
|
endef
|
|
|
|
define Package/libnl-genl
|
|
$(call Package/libnl/default)
|
|
TITLE:=Generic Netlink Library
|
|
DEPENDS:=+libnl-core
|
|
endef
|
|
|
|
define Package/libnl-route
|
|
$(call Package/libnl/default)
|
|
TITLE:=Routing Netlink Library
|
|
DEPENDS:=+libnl-core
|
|
endef
|
|
|
|
define Package/libnl-nf
|
|
$(call Package/libnl/default)
|
|
TITLE:=Netfilter Netlink Library
|
|
DEPENDS:=+libnl-route
|
|
endef
|
|
|
|
define Package/libnl-cli
|
|
$(call Package/libnl/default)
|
|
TITLE:=CLI Netlink Library
|
|
DEPENDS:=+libnl-genl +libnl-nf
|
|
endef
|
|
|
|
define Package/libnl
|
|
$(call Package/libnl/default)
|
|
TITLE:=Full Netlink Library
|
|
DEPENDS:=+libnl-genl +libnl-route +libnl-nf +libnl-cli
|
|
endef
|
|
|
|
define Package/libnl-core/description
|
|
Common code for all netlink libraries
|
|
endef
|
|
|
|
define Package/libnl-genl/description
|
|
Generic Netlink Library Functions
|
|
endef
|
|
|
|
define Package/libnl-route/description
|
|
Routing Netlink Library Functions
|
|
endef
|
|
|
|
define Package/libnl-nf/description
|
|
Netfilter Netlink Library Functions
|
|
endef
|
|
|
|
define Package/libnl-cli/description
|
|
CLI Netlink Library Functions
|
|
endef
|
|
|
|
define Package/libnl/description
|
|
Socket handling, connection management, sending and receiving of data,
|
|
message construction and parsing, object caching system, etc.
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-debug
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/libnl3 $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libnl3/* $(1)/usr/include/libnl3/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
|
|
|
|
# Copy symlinks
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-3.so $(1)/usr/lib/libnl.so
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so $(1)/usr/lib/libnl-genl.so
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so $(1)/usr/lib/libnl-nf.so
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so $(1)/usr/lib/libnl-route.so
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so $(1)/usr/lib/libnl-cli.so
|
|
endef
|
|
|
|
define Package/libnl-core/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-3.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libnl-genl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-genl-3.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libnl-route/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-route-3.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libnl-nf/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-nf-3.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libnl-cli/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnl-cli-3.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libnl/install
|
|
:
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libnl-core))
|
|
$(eval $(call BuildPackage,libnl-genl))
|
|
$(eval $(call BuildPackage,libnl-route))
|
|
$(eval $(call BuildPackage,libnl-nf))
|
|
$(eval $(call BuildPackage,libnl-cli))
|
|
$(eval $(call BuildPackage,libnl))
|