Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: lib: thermal: don't preserve owner in install

Instead of preserving mode, timestamp, and owner, for the object files
during installation, just preserve the mode and timestamp.

When installing as root, the installed files should be owned by root.
When installing as user, --preserve=ownership doesn't work anyway. This
makes --preserve=ownership rather pointless.

Signed-off-by: Emil Dahl Juhl <juhl.emildahl@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Emil Dahl Juhl and committed by
Rafael J. Wysocki
1375152b b31f7f72

+1 -1
+1 -1
tools/lib/thermal/Makefile
··· 139 139 install_lib: libs 140 140 $(call QUIET_INSTALL, $(LIBTHERMAL_ALL)) \ 141 141 $(call do_install_mkdir,$(libdir_SQ)); \ 142 - cp -fpR $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ) 142 + cp -fR --preserve=mode,timestamp $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ) 143 143 144 144 install_headers: 145 145 $(call QUIET_INSTALL, headers) \