]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tools: lib: thermal: don't preserve owner in install
authorEmil Dahl Juhl <juhl.emildahl@gmail.com>
Wed, 1 Oct 2025 11:40:56 +0000 (13:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Oct 2025 19:26:00 +0000 (21:26 +0200)
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>
tools/lib/thermal/Makefile

index fdde0c4f85b4e511a16c43810590ed45b007a5ad..41aa7a324ff4d76351b89d7d7cf382df3fc14052 100644 (file)
@@ -139,7 +139,7 @@ endef
 install_lib: libs
        $(call QUIET_INSTALL, $(LIBTHERMAL_ALL)) \
                $(call do_install_mkdir,$(libdir_SQ)); \
-               cp -fpR $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ)
+               cp -fR --preserve=mode,timestamp $(LIBTHERMAL_ALL) $(DESTDIR)$(libdir_SQ)
 
 install_headers:
        $(call QUIET_INSTALL, headers) \