libs: add userspace-rcu library
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@35163 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
519fb39d17
commit
6d7e69548b
48
libs/liburcu/Makefile
Normal file
48
libs/liburcu/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=liburcu
|
||||
PKG_VERSION:=0.7.6
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=https://lttng.org/files/urcu/
|
||||
PKG_MD5SUM:=4c1ecb4bdcd43e36dfdffdd297023c8b
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/liburcu
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=+libpthread
|
||||
TITLE:=User-space Read-Copy-Update library
|
||||
URL:=https://lttng.org/
|
||||
endef
|
||||
|
||||
define Package/liburcu/description
|
||||
Userspace Read-Copy-Update library.
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/liburcu/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,liburcu))
|
Loading…
x
Reference in New Issue
Block a user