]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/lib/thermal: Remove the thermal.h soft link when doing make clean
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Thu, 12 Sep 2024 04:50:31 +0000 (12:50 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 4 Nov 2024 14:38:29 +0000 (15:38 +0100)
Run "make -C tools thermal" can create a soft link for thermal.h in
tools/include/uapi/linux.  Just rm it when make clean.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20240912045031.18426-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
tools/lib/thermal/Makefile

index 2d0d255fd0e1c4937eaa3930da51e130aa2f27ac..8890fd57b110ccc1a837d37624a5dead00f18656 100644 (file)
@@ -121,7 +121,9 @@ all: fixdep
 
 clean:
        $(call QUIET_CLEAN, libthermal) $(RM) $(LIBTHERMAL_A) \
-                *.o *~ *.a *.so *.so.$(VERSION) *.so.$(LIBTHERMAL_VERSION) .*.d .*.cmd LIBTHERMAL-CFLAGS $(LIBTHERMAL_PC)
+                *.o *~ *.a *.so *.so.$(VERSION) *.so.$(LIBTHERMAL_VERSION) \
+                .*.d .*.cmd LIBTHERMAL-CFLAGS $(LIBTHERMAL_PC) \
+                $(srctree)/tools/$(THERMAL_UAPI)
 
 $(LIBTHERMAL_PC):
        $(QUIET_GEN)sed -e "s|@PREFIX@|$(prefix)|" \