All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 41/41] cgroupsfs: new package
@ 2016-02-05  5:42 niranjan.reddy
  0 siblings, 0 replies; only message in thread
From: niranjan.reddy @ 2016-02-05  5:42 UTC (permalink / raw)
  To: buildroot

From: Niranjan <niranjan.reddy@rockwellcollins.com>

This package consists of scripts that setup cgroups at boot
without doing any cgroup management or classification of
tasks into cgroups

Signed-off-by: niranjan.reddy <niranjan.reddy@rockwellcollins.com>
---
 package/Config.in            |  1 +
 package/cgroupfs/Config.in   |  6 ++++++
 package/cgroupfs/cgroupfs.mk | 17 +++++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 package/cgroupfs/Config.in
 create mode 100644 package/cgroupfs/cgroupfs.mk

diff --git a/package/Config.in b/package/Config.in
index 4958b8e..07a8cfb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1566,6 +1566,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/dcron/Config.in"
 	source "package/debianutils/Config.in"
 endif
+	source "package/cgroupfs/Config.in"
 	source "package/dsp-tools/Config.in"
 	source "package/emlog/Config.in"
 	source "package/ftop/Config.in"
diff --git a/package/cgroupfs/Config.in b/package/cgroupfs/Config.in
new file mode 100644
index 0000000..f83432e
--- /dev/null
+++ b/package/cgroupfs/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_CGROUPFS
+	bool "cgroupfs"
+	help
+	  cgroupfs mount and umount scripts.
+
+	  https://github.com/tianon/cgroupfs-mount/blob/master/README.md
diff --git a/package/cgroupfs/cgroupfs.mk b/package/cgroupfs/cgroupfs.mk
new file mode 100644
index 0000000..06d430a
--- /dev/null
+++ b/package/cgroupfs/cgroupfs.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# cgroupfs
+#
+#############################################################
+CGROUPFS_VERSION = 1.0
+CGROUPFS_SITE = $(call github,tianon,cgroupfs-mount,$(CGROUPFS_VERSION))
+CGROUPFS_INSTALL_TARGET = YES
+
+define CGROUPFS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(BUILD_DIR)/cgroupfs-1.0/cgroupfs-mount $(TARGET_DIR)/usr/bin/cgroupfs-mount
+	$(INSTALL) -D -m 0755 $(BUILD_DIR)/cgroupfs-1.0/cgroupfs-umount $(TARGET_DIR)/usr/bin/cgroupfs-umount
+	$(INSTALL) -D -m 0755 $(BUILD_DIR)/cgroupfs-1.0/debian/cgroupfs-mount.init $(TARGET_DIR)/etc/init.d/cgroupfs-mount.init
+	$(INSTALL) -D -m 0755 $(BUILD_DIR)/cgroupfs-1.0/debian/cgroupfs-mount.upstart $(TARGET_DIR)/etc/init.d/cgroupfs-mount.upstart
+endef
+
+$(eval $(generic-package))
-- 
2.5.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-05  5:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05  5:42 [Buildroot] [PATCH 41/41] cgroupsfs: new package niranjan.reddy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.