* [PATCH 0/2] rt-tests: Makefile fixes for PYLIB and hwlatdetect
@ 2012-09-12 0:41 Darren Hart
2012-09-12 0:41 ` [PATCH 1/2] rt-tests: Allow for user-specified PYLIB Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2012-09-12 0:41 UTC (permalink / raw)
To: linux-rt-users; +Cc: John Kacur, Clark Williams
For cross-build-systems, it is necessary to specify the PYLIB path. It is also
useful to treat hwlatdetect separately from the rest of the tests as it pulls in
a number of python dependencies.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] rt-tests: Allow for user-specified PYLIB
2012-09-12 0:41 [PATCH 0/2] rt-tests: Makefile fixes for PYLIB and hwlatdetect Darren Hart
@ 2012-09-12 0:41 ` Darren Hart
2012-09-12 0:41 ` [PATCH 2/2] rt-tests: Break out install_hwlatdetect Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2012-09-12 0:41 UTC (permalink / raw)
To: linux-rt-users; +Cc: John Kacur, Clark Williams, Darren Hart
Allow users (build systems) to specify PYLIB. This allows for a
cross-build-system to specify the target PYLIB rather than the host
PYLIB.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Clark Williams <williams@redhat.com>
CC: John Kacur <jkacur@redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 3a82407..61e2f9f 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ endif
CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
LDFLAGS ?=
-PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
+PYLIB ?= $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
ifndef DEBUG
CFLAGS += -O2
--
1.7.11.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] rt-tests: Break out install_hwlatdetect
2012-09-12 0:41 ` [PATCH 1/2] rt-tests: Allow for user-specified PYLIB Darren Hart
@ 2012-09-12 0:41 ` Darren Hart
0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2012-09-12 0:41 UTC (permalink / raw)
To: linux-rt-users; +Cc: John Kacur, Clark Williams, Darren Hart
Allow hwlatdetect to be installed independently of the rest of the
tests. This is convenient for build systems that package it separately
due to the python dependency.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Clark Williams <williams@redhat.com>
CC: John Kacur <jkacur@redhat.com>
---
Makefile | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 61e2f9f..636e63b 100644
--- a/Makefile
+++ b/Makefile
@@ -119,21 +119,15 @@ changelog:
git log >ChangeLog
.PHONY: install
-install: all
+install: all install_hwlatdetect
mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man4"
mkdir -p "$(DESTDIR)$(srcdir)" "$(DESTDIR)$(mandir)/man8"
cp $(TARGETS) "$(DESTDIR)$(bindir)"
- if test -n "$(PYLIB)" ; then \
- install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \
- rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \
- ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \
- fi
install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c"
install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile"
gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz"
gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz"
gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz"
- gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz"
gzip src/ptsematest/ptsematest.8 -c >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz"
gzip src/sigwaittest/sigwaittest.8 -c >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz"
gzip src/svsematest/svsematest.8 -c >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz"
@@ -141,6 +135,16 @@ install: all
gzip src/backfire/sendme.8 -c >"$(DESTDIR)$(mandir)/man8/sendme.8.gz"
gzip src/hackbench/hackbench.8 -c >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz"
+.PHONY: install_hwlatdetect
+install_hwlatdetect: hwlatdetect
+ if test -n "$(PYLIB)" ; then \
+ mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8" ; \
+ install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \
+ rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \
+ ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \
+ gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \
+ fi
+
.PHONY: release
release: clean changelog
mkdir -p releases
--
1.7.11.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-12 0:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 0:41 [PATCH 0/2] rt-tests: Makefile fixes for PYLIB and hwlatdetect Darren Hart
2012-09-12 0:41 ` [PATCH 1/2] rt-tests: Allow for user-specified PYLIB Darren Hart
2012-09-12 0:41 ` [PATCH 2/2] rt-tests: Break out install_hwlatdetect Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).