aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hmehrtens@maxlinear.com>2022-01-19 18:10:05 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-01-21 23:53:00 +0100
commit6ae657e459c8c62f4f844a17098d6cc75b81c91b (patch)
treef386fb40af7e6a70a430c9e25c91bb6f35906e2c /package
parent71bdff9139a469380f1b0a42425fa091dbb16f88 (diff)
downloadupstream-6ae657e459c8c62f4f844a17098d6cc75b81c91b.tar.gz
upstream-6ae657e459c8c62f4f844a17098d6cc75b81c91b.tar.bz2
upstream-6ae657e459c8c62f4f844a17098d6cc75b81c91b.zip
util-linux: Add taskset
This adds the taskset application from util Linux. It is already built, but not packaged yet. Signed-off-by: Hauke Mehrtens <hmehrtens@maxlinear.com>
Diffstat (limited to 'package')
-rw-r--r--package/utils/util-linux/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile
index 74f3f17469..ded653e2c0 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -443,6 +443,15 @@ define Package/swap-utils/description
contains: mkswap, swaplabel
endef
+define Package/taskset
+$(call Package/util-linux/Default)
+ TITLE:=set or retrieve a process's CPU affinity
+endef
+
+define Package/taskset/description
+ contains: taskset
+endef
+
define Package/unshare
$(call Package/util-linux/Default)
TITLE:=unshare userspace tool
@@ -761,6 +770,11 @@ define Package/swap-utils/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
endef
+define Package/taskset/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
+endef
+
define Package/unshare/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
@@ -829,6 +843,7 @@ $(eval $(call BuildPackage,script-utils))
$(eval $(call BuildPackage,setterm))
$(eval $(call BuildPackage,sfdisk))
$(eval $(call BuildPackage,swap-utils))
+$(eval $(call BuildPackage,taskset))
$(eval $(call BuildPackage,unshare))
$(eval $(call BuildPackage,uuidd))
$(eval $(call BuildPackage,uuidgen))