diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-08-06 14:32:28 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-08-06 14:32:28 +0200 |
commit | ed3d1c6e4ea182e5bac048234746cd242f150e67 (patch) | |
tree | 6b06323e1b35b0eca531d30a78a1ad7dde80168c /patches/unixbench-5.1.2 | |
parent | d6a666c1e033d2bc21d97ce39b24ac6ff7984f0e (diff) | |
download | ptxdist-ed3d1c6e4ea182e5bac048234746cd242f150e67.tar.gz ptxdist-ed3d1c6e4ea182e5bac048234746cd242f150e67.tar.xz |
unixbench: new package
Diffstat (limited to 'patches/unixbench-5.1.2')
4 files changed, 108 insertions, 0 deletions
diff --git a/patches/unixbench-5.1.2/0001-Run-do-not-run-make-during-tests.patch b/patches/unixbench-5.1.2/0001-Run-do-not-run-make-during-tests.patch new file mode 100644 index 000000000..5854bcbcb --- /dev/null +++ b/patches/unixbench-5.1.2/0001-Run-do-not-run-make-during-tests.patch @@ -0,0 +1,22 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Mon, 4 Aug 2014 22:29:54 +0200 +Subject: [PATCH] Run: do not run make during tests + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + Run | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Run b/Run +index aa961e8..907b734 100755 +--- a/Run ++++ b/Run +@@ -1763,7 +1763,7 @@ sub main { + $tests = $index; + } + +- preChecks(); ++ #preChecks(); + my $systemInfo = getSystemInfo(); + + # If the number of copies to run was not set, set it to 1 diff --git a/patches/unixbench-5.1.2/0002-unixbench-add-wrapper-script.patch b/patches/unixbench-5.1.2/0002-unixbench-add-wrapper-script.patch new file mode 100644 index 000000000..fd044240c --- /dev/null +++ b/patches/unixbench-5.1.2/0002-unixbench-add-wrapper-script.patch @@ -0,0 +1,19 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Wed, 6 Aug 2014 13:24:51 +0200 +Subject: [PATCH] unixbench: add wrapper script + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + unixbench | 3 +++ + 1 file changed, 3 insertions(+) + create mode 100755 unixbench + +diff --git a/unixbench b/unixbench +new file mode 100755 +index 0000000..1029ddc +--- /dev/null ++++ b/unixbench +@@ -0,0 +1,3 @@ ++#!/bin/sh ++ ++cd /usr/lib/unixbench && exec /usr/lib/unixbench/Run diff --git a/patches/unixbench-5.1.2/0003-Makefile-add-install-stage.patch b/patches/unixbench-5.1.2/0003-Makefile-add-install-stage.patch new file mode 100644 index 000000000..b65ddd183 --- /dev/null +++ b/patches/unixbench-5.1.2/0003-Makefile-add-install-stage.patch @@ -0,0 +1,61 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Wed, 6 Aug 2014 13:20:14 +0200 +Subject: [PATCH] Makefile: add install stage + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + Makefile | 26 +++++++++++++++++++++++--- + 1 file changed, 23 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index c9d1eba..d36c39f 100644 +--- a/Makefile ++++ b/Makefile +@@ -94,6 +94,9 @@ TMPDIR = ./tmp + # other directories + INCLDIR = /usr/include + LIBDIR = /lib ++PREFIX = /usr/local ++BINDIR = $(PREFIX)/bin ++PKG_LIBDIR = $(PREFIX)/lib/unixbench + SCRIPTS = unixbench.logo multi.sh tst.sh index.base + SOURCES = arith.c big.c context1.c \ + dummy.c execl.c \ +@@ -120,17 +123,34 @@ BINS = $(PROGDIR)/arithoh $(PROGDIR)/register $(PROGDIR)/short \ + # $(PROGDIR)/poll $(PROGDIR)/poll2 $(PROGDIR)/select + + # Required non-binary files. +-REQD = $(BINS) $(PROGDIR)/unixbench.logo \ +- $(PROGDIR)/multi.sh $(PROGDIR)/tst.sh $(PROGDIR)/index.base \ +- $(PROGDIR)/gfx-x11 \ ++NON_BINS = $(PROGDIR)/unixbench.logo \ ++ $(PROGDIR)/index.base \ + $(TESTDIR)/sort.src $(TESTDIR)/cctest.c $(TESTDIR)/dc.dat \ + $(TESTDIR)/large.txt + ++# Required non-binary executable files ++NON_BIN_EXEC = \ ++ $(PROGDIR)/multi.sh \ ++ $(PROGDIR)/tst.sh \ ++ $(PROGDIR)/gfx-x11 ++ ++REQD = $(BINS) $(NON_BINS) $(NON_BIN_EXEC) ++ + # ######################### the big ALL ############################ + all: distr programs + ## Ick!!! What is this about??? How about let's not chmod everything bogusly. + # @chmod 744 * $(SRCDIR)/* $(PROGDIR)/* $(TESTDIR)/* $(DOCDIR)/* + ++install: $(REQD) ++ @install -v -m755 -D unixbench $(DESTDIR)$(BINDIR)/unixbench ++ @install -v -m755 -D Run $(DESTDIR)$(PKG_LIBDIR)/Run ++ @for file in $(BINS) $(NON_BIN_EXEC); do \ ++ install -v -m755 -D $$file $(DESTDIR)$(PKG_LIBDIR)/$$file; \ ++ done ++ @for file in $(NON_BINS); do \ ++ install -v -m644 -D $$file $(DESTDIR)$(PKG_LIBDIR)/$$file; \ ++ done ++ + # ####################### a check for Run ###################### + check: $(REQD) + make all diff --git a/patches/unixbench-5.1.2/series b/patches/unixbench-5.1.2/series new file mode 100644 index 000000000..17270aa99 --- /dev/null +++ b/patches/unixbench-5.1.2/series @@ -0,0 +1,6 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-Run-do-not-run-make-during-tests.patch +0002-unixbench-add-wrapper-script.patch +0003-Makefile-add-install-stage.patch +# a24ebb08361c14c6b5aac06ea7acd946 - git-ptx-patches magic |