File: 0005-rt-tests-install-get_cyclictest_snapshotdirectly-int.patch

package info (click to toggle)
rt-tests 2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: ansic: 13,273; python: 495; makefile: 237; sh: 158
file content (29 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Anders Roxell <anders.roxell@linaro.org>
Date: Thu, 9 Sep 2021 14:10:28 +0900
Subject: rt-tests: install get_cyclictest_snapshotdirectly into $sbindir

The python_lib directory is only for importable modules. Follow the
same principle as hwlatdetect in install it into $sbindir.
---
 Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 97da5fb..8c5c92d 100644
--- a/Makefile
+++ b/Makefile
@@ -237,12 +237,8 @@ install_hwlatdetect: hwlatdetect
 
 .PHONY: install_get_cyclictest_snapshot
 install_get_cyclictest_snapshot: get_cyclictest_snapshot
-	if test -n "${PYLIB}" ; then \
-		mkdir -p "${DESTDIR}${bindir}" ; \
-		install -D -m 755 src/cyclictest/get_cyclictest_snapshot.py ${DESTDIR}${PYLIB}/get_cyclictest_snapshot.py ; \
-		rm -f "${DESTDIR}${bindir}/get_cyclictest_snapshot" ; \
-		ln -s ${PYLIB}/get_cyclictest_snapshot.py "${DESTDIR}${bindir}/get_cyclictest_snapshot" ; \
-	fi
+	mkdir -p "${DESTDIR}${sbindir}"
+	install -D -m 755 src/cyclictest/get_cyclictest_snapshot.py $(DESTDIR)$(sbindir)/get_cyclictest_snapshot
 
 .PHONY: install_manpages
 install_manpages: $(MANPAGES)