diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-02-29 16:47:27 +0000 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2008-02-29 16:47:27 +0000 |
commit | 93635d2c90d6787c60c86248a4640bc3ac445966 (patch) | |
tree | 37b2957a23599e3355412101ac991d8ebaf6ed59 | |
parent | 88f204df37b6e6c20c82ac15f589b04a1929a4d9 (diff) | |
download | ptxdist-93635d2c90d6787c60c86248a4640bc3ac445966.tar.gz ptxdist-93635d2c90d6787c60c86248a4640bc3ac445966.tar.xz |
* add config for schedutils
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7805 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | rules/Kconfig | 1 | ||||
-rw-r--r-- | rules/schedutils.in | 33 | ||||
-rw-r--r-- | rules/schedutils.make | 10 |
3 files changed, 43 insertions, 1 deletions
diff --git a/rules/Kconfig b/rules/Kconfig index c35d982b9..d22ea9db0 100644 --- a/rules/Kconfig +++ b/rules/Kconfig @@ -72,6 +72,7 @@ source "rules/pcmcia-cs.in" source "rules/pcmciautils.in" source "rules/pdksh.in" source "rules/procps.in" +source "rules/schedutils.in" source "rules/screen.in" source "rules/sed.in" source "rules/setserial.in" diff --git a/rules/schedutils.in b/rules/schedutils.in new file mode 100644 index 000000000..72fddc520 --- /dev/null +++ b/rules/schedutils.in @@ -0,0 +1,33 @@ + +menuconfig SCHEDUTILS + bool + prompt "Scheduler Utilities " + help + These are the Linux scheduler utilities - schedutils for short. These programs + take advantage of the scheduler family of syscalls that Linux implements across + various kernels. These system calls implement interfaces for scheduler-related + parameters such as CPU affinity and real-time attributes. The standard UNIX + utilities do not provide support for these interfaces -- thus this package. + + +config SCHEDUTILS_CHRT + bool + prompt "chrt" + depends on SCHEDUTILS + help + chrt manipulates the real-time attributes of a process. + +config SCHEDUTILS_IONICE + bool + prompt "ionice" + depends on SCHEDUTILS + help + ionice gets/sets the program io scheduling class and priority. + +config SCHEDUTILS_TASKSET + bool + prompt "taskset" + depends on SCHEDUTILS + help + taskset retrieves or sets a process's CPU affinity. + diff --git a/rules/schedutils.make b/rules/schedutils.make index c00c56745..2d4cee57d 100644 --- a/rules/schedutils.make +++ b/rules/schedutils.make @@ -78,7 +78,7 @@ schedutils_compile: $(STATEDIR)/schedutils.compile $(STATEDIR)/schedutils.compile: $(schedutils_compile_deps_default) @$(call targetinfo, $@) - cd $(SCHEDUTILS_DIR) && $(SCHEDUTILS_PATH) make $(SCHEDUTILS_ENV) chrt + cd $(SCHEDUTILS_DIR) && $(SCHEDUTILS_PATH) make $(SCHEDUTILS_ENV) @$(call touch, $@) # ---------------------------------------------------------------------------- @@ -110,7 +110,15 @@ $(STATEDIR)/schedutils.targetinstall: $(schedutils_targetinstall_deps_default) @$(call install_fixup,schedutils,DEPENDS,) @$(call install_fixup,schedutils,DESCRIPTION,missing) +ifdef PTXCONF_SCHEDUTILS_CHRT @$(call install_copy, schedutils, 0, 0, 0755, $(SCHEDUTILS_DIR)/chrt, /usr/bin/chrt) +endif +ifdef PTXCONF_SCHEDUTILS_IONICE + @$(call install_copy, schedutils, 0, 0, 0755, $(SCHEDUTILS_DIR)/ionice, /usr/bin/ionice) +endif +ifdef PTXCONF_SCHEDUTILS_TASKSET + @$(call install_copy, schedutils, 0, 0, 0755, $(SCHEDUTILS_DIR)/taskset, /usr/bin/taskset) +endif @$(call install_finish,schedutils) |