faster to compile. A small selection of packages was tested going from: Executed in 696.30 secs fish external usr time 82.98 mins 395.00 micros 82.98 mins sys time 9.02 mins 0.00 micros 9.02 mins to: Executed in 592.20 secs fish external usr time 84.84 mins 361.00 micros 84.84 mins sys time 8.85 mins 57.00 micros 8.85 mins Tested by running make -j 12 and wiping staging/build_dir/target_x Signed-off-by: Rosen Penev <rosenp@gmail.com>
42 lines
881 B
Makefile
42 lines
881 B
Makefile
#
|
|
# Copyright (C) 2014 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:=rpcd-mod-lxc
|
|
PKG_RELEASE=20201208
|
|
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../devel/ninja/ninja-cmake.mk
|
|
|
|
define Package/rpcd-mod-lxc
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=LXC rpcd module
|
|
DEPENDS:=+rpcd +liblxc
|
|
MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
|
endef
|
|
|
|
define Build/Prepare
|
|
$(CP) ./files/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
|
|
define Package/rpcd-mod-lxc/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/rpcd
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/lxc.so $(1)/usr/lib/rpcd/
|
|
endef
|
|
|
|
define Package/rpcd-mod-lxc/postinst
|
|
#!/bin/sh
|
|
[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,rpcd-mod-lxc))
|