* [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX
@ 2016-06-17 12:59 Andy Shevchenko
2016-07-04 13:08 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2016-06-17 12:59 UTC (permalink / raw)
To: linux-kernel, Len Brown, linux-pm; +Cc: Andy Shevchenko
When run
make -C tools DESTDIR=/my/nice/dir turbostat_install
get a message
install: cannot create regular file '/usr/bin/turbostat': Permission denied
Allow user to alter DESTDIR and PREFIX variables.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
tools/power/x86/turbostat/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
index e367b1a..8561e7d 100644
--- a/tools/power/x86/turbostat/Makefile
+++ b/tools/power/x86/turbostat/Makefile
@@ -1,7 +1,7 @@
CC = $(CROSS_COMPILE)gcc
BUILD_OUTPUT := $(CURDIR)
-PREFIX := /usr
-DESTDIR :=
+PREFIX ?= /usr
+DESTDIR ?=
ifeq ("$(origin O)", "command line")
BUILD_OUTPUT := $(O)
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX
2016-06-17 12:59 [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX Andy Shevchenko
@ 2016-07-04 13:08 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-07-04 13:08 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-kernel, Len Brown, linux-pm
On Friday, June 17, 2016 03:59:33 PM Andy Shevchenko wrote:
> When run
> make -C tools DESTDIR=/my/nice/dir turbostat_install
> get a message
> install: cannot create regular file '/usr/bin/turbostat': Permission denied
>
> Allow user to alter DESTDIR and PREFIX variables.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-04 13:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 12:59 [PATCH v1 1/1] tools/turbostat: allow user to alter DESTDIR and PREFIX Andy Shevchenko
2016-07-04 13:08 ` Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.