| 1 |
From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <[email protected]> |
| 2 |
Date: Thu, 9 Sep 2021 13:51:50 +0900 |
| 3 |
Subject: rt-tests: install hwlatdetect directly into $sbindir |
| 4 |
|
| 5 |
The python_lib directory is only for importable modules. As |
| 6 |
hwlatdetect needs root privileges install it into $sbindir. |
| 7 |
--- |
| 8 |
Makefile | 9 +++------ |
| 9 |
1 file changed, 3 insertions(+), 6 deletions(-) |
| 10 |
|
| 11 |
--- a/Makefile |
| 12 |
+++ b/Makefile |
| 13 |
@@ -30,6 +30,7 @@ |
| 14 |
RTTESTNUMA = -lrttestnuma -lnuma |
| 15 |
DESTDIR ?= |
| 16 |
prefix ?= /usr/local |
| 17 |
+sbindir ?= $(prefix)/sbin |
| 18 |
bindir ?= $(prefix)/bin |
| 19 |
mandir ?= $(prefix)/share/man |
| 20 |
|
| 21 |
@@ -231,12 +232,8 @@ |
| 22 |
|
| 23 |
.PHONY: install_hwlatdetect |
| 24 |
install_hwlatdetect: hwlatdetect |
| 25 |
- if test -n "$(PYLIB)" ; then \ |
| 26 |
- mkdir -p "$(DESTDIR)$(bindir)" ; \ |
| 27 |
- install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ |
| 28 |
- rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ |
| 29 |
- ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ |
| 30 |
- fi |
| 31 |
+ mkdir -p "$(DESTDIR)$(sbindir)" |
| 32 |
+ install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(sbindir)/hwlatdetect |
| 33 |
|
| 34 |
.PHONY: install_get_cyclictest_snapshot |
| 35 |
install_get_cyclictest_snapshot: get_cyclictest_snapshot |