2009-07-26 21:08:51 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libnl
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2013-01-08 08:45:06 +01:00
|
|
|
LIBNL_VERSION = 3.2.18
|
2012-03-11 22:47:58 +01:00
|
|
|
LIBNL_SITE = http://www.infradead.org/~tgr/libnl/files
|
2012-09-07 06:48:48 +02:00
|
|
|
LIBNL_LICENSE = LGPLv2.1+
|
|
|
|
LIBNL_LICENSE_FILES = COPYING
|
2009-07-26 21:08:51 +02:00
|
|
|
LIBNL_INSTALL_STAGING = YES
|
2011-05-16 14:43:51 +02:00
|
|
|
LIBNL_DEPENDENCIES = host-bison
|
2011-05-16 16:18:26 +02:00
|
|
|
LIBNL_MAKE = $(MAKE1)
|
2012-05-14 04:29:58 +02:00
|
|
|
LIBNL_BINARIES = class-add class-delete class-list classid-lookup cls-add \
|
|
|
|
cls-delete cls-list link-list pktloc-lookup qdisc-add qdisc-delete \
|
|
|
|
qdisc-list
|
2009-07-26 21:08:51 +02:00
|
|
|
|
2010-09-01 23:17:07 +02:00
|
|
|
define LIBNL_UNINSTALL_TARGET_CMDS
|
2011-05-16 16:18:26 +02:00
|
|
|
rm -r $(TARGET_DIR)/usr/lib/libnl.* $(TARGET_DIR)/usr/lib/libnl-*.*
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/libnl
|
2010-09-01 23:17:07 +02:00
|
|
|
endef
|
|
|
|
|
2012-05-14 04:29:58 +02:00
|
|
|
define LIBNL_REMOVE_TOOLS
|
|
|
|
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/nl-, $(LIBNL_BINARIES))
|
2013-01-08 08:45:06 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/sbin/genl-ctrl-list
|
2012-05-14 04:29:58 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_LIBNL_TOOLS),y)
|
|
|
|
LIBNL_POST_INSTALL_TARGET_HOOKS += LIBNL_REMOVE_TOOLS
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|