Skip to contentSkip to conversation

rt-tests: new package

PATCH New Thomas Petazzoni 2 participants 2 messages Dec 22, 2011 – Jan 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt-tests: new package

---
 package/Config.in                                |    1 +
 package/rt-tests/Config.in                       |   13 +++++++
 package/rt-tests/rt-tests-fix-build-system.patch |   43 ++++++++++++++++++++++
 package/rt-tests/rt-tests.mk                     |   25 +++++++++++++
 4 files changed, 82 insertions(+), 0 deletions(-)
 create mode 100644 package/rt-tests/Config.in
 create mode 100644 package/rt-tests/rt-tests-fix-build-system.patch
 create mode 100644 package/rt-tests/rt-tests.mk
package/Config.in +1 -0
index b6df18a..e5e11be 100644
@@ -28,6 +28,7 @@ source "package/ltrace/Config.in"
 source "package/memstat/Config.in"
 source "package/netperf/Config.in"
 source "package/oprofile/Config.in"
+source "package/rt-tests/Config.in"
 source "package/strace/Config.in"
 source "package/whetstone/Config.in"
 source "package/valgrind/Config.in"
package/rt-tests/Config.in new file +13 -0
new file mode 100644
index 0000000..e645266
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_RT_TESTS
+	bool "rt-tests"
+	help
+	  Set of utilities for testing the real-time behaviour of a
+	  Linux system.
+
+	  All tools are simple C programs with no dependencies, except
+	  the hwlatdetect utility, which is a Python script and
+	  therefore requires the Python interpreter. It will only be
+	  installed if a Python interpreter has been selected in the
+	  Buildroot configuration.
+
+	  http://rt.wiki.kernel.org
package/rt-tests/rt-tests-fix-build-system.patch new file +43 -0

43 lines not on this page · raw message

package/rt-tests/rt-tests.mk new file +25 -0
new file mode 100644
index 0000000..222733f
@@ -0,0 +1,25 @@
+RT_TESTS_SITE    = http://snapshot.debian.org/archive/debian/20111202T222101Z/pool/main/r/rt-tests/
+RT_TESTS_VERSION = 0.83
+RT_TESTS_SOURCE  = rt-tests_$(RT_TESTS_VERSION).orig.tar.gz
+
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+RT_TESTS_DEPENDENCIES = python
+endif
+
+define RT_TESTS_BUILD_CMDS
+	$(MAKE) -C $(@D) 			\
+		CC="$(TARGET_CC)" 		\
+		CFLAGS="$(TARGET_CFLAGS)"	\
+		prefix=/usr
+endef
+
+define RT_TESTS_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) 				\
+		DESTDIR="$(TARGET_DIR)" 		\
+		prefix=/usr 				\
+		$(if $(BR2_PACKAGE_PYTHON),HASPYTHON=1 PYLIB=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/) \
+		install
+endef
+
+$(eval $(call GENTARGETS))
+
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 rt-tests: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> Signed-off-by: Thomas Petazzoni <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard