2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=userspace-rcu-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://lttng.org/files/urcu/
16 PKG_MD5SUM:=4c1ecb4bdcd43e36dfdffdd297023c8b
17 PKG_BUILD_DIR:=$(BUILD_DIR)/userspace-rcu-$(PKG_VERSION)
23 include $(INCLUDE_DIR)/package.mk
25 define Package/liburcu
29 TITLE:=User-space Read-Copy-Update library
30 URL:=https://lttng.org/
33 define Package/liburcu/description
34 Userspace Read-Copy-Update library.
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/urcu* $(1)/usr/include/
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.{a,so*} $(1)/usr/lib/
44 define Package/liburcu/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburcu*.so.* $(1)/usr/lib/
49 $(eval $(call BuildPackage,liburcu))