cpupower: Rename from cpupowerutils to cpupower
cover cpupower: Rename from cpupowerutils to cpupower
As the tool sits in tools/power/cpupower, the package should better be named cpupower instead of cpupowerutils.
It's only some unintrusive changes...
For renameing libcpufreq->libcpupower:
If people rely on libcpufreq, it's easy to provide
it additionally.
For cpufrequtils getting renamed and hopefully added to the kernel soon, there should be a clean cut and things should be done properly: provide one library called libcpupower.
Patches based on Dominik's latest cpupowerutils tree:git://git.kernel.org/pub/scm/linux/kernel/git/brodo/cpupowerutils.git
Please consider to apply.
Thomas Renninger (2):
cpupowerutils: Finalize the renaming: libcpufreq->libcpupower patch remove_utils_from_name
tools/power/cpupower/Makefile | 38 +++++++++++++++++----------------- tools/power/cpupower/bench/Makefile | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-)
Signature · 1 line
1.7.3.4
PATCH 1/2 cpupowerutils: Finalize the renaming: libcpufreq->libcpupower
--- tools/power/cpupower/Makefile | 26 +++++++++++++------------- tools/power/cpupower/bench/Makefile | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-)
tools/power/cpupower/Makefile +13 -13
@@ -168,20 +168,20 @@ endif # the actual make rules -all: libcpufreq cpupower $(COMPILE_NLS) $(COMPILE_BENCH) +all: libcpupower cpupower $(COMPILE_NLS) $(COMPILE_BENCH) lib/%.o: $(LIB_SRC) $(LIB_HEADERS) $(ECHO) " CC " $@ $(QUIET) $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c lib/$*.c -libcpufreq.so.$(LIB_MAJ): $(LIB_OBJS) +libcpupower.so.$(LIB_MAJ): $(LIB_OBJS) $(ECHO) " LD " $@ $(QUIET) $(CC) -shared $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \ - -Wl,-soname,libcpufreq.so.$(LIB_MIN) $(LIB_OBJS) - @ln -sf $@ libcpufreq.so - @ln -sf $@ libcpufreq.so.$(LIB_MIN) + -Wl,-soname,libcpupower.so.$(LIB_MIN) $(LIB_OBJS) + @ln -sf $@ libcpupower.so + @ln -sf $@ libcpupower.so.$(LIB_MIN) -libcpufreq: libcpufreq.so.$(LIB_MAJ) +libcpupower: libcpupower.so.$(LIB_MAJ) # Let all .o files depend on its .c file and all headers # Might be worth to put this into utils/Makefile at some point of time
@@ -191,9 +191,9 @@ $(UTIL_OBJS): $(UTIL_HEADERS) $(ECHO) " CC " $@ $(QUIET) $(CC) $(CFLAGS) $(CPPFLAGS) -I./lib -I ./utils -o $@ -c $*.c -cpupower: $(UTIL_OBJS) libcpufreq.so.$(LIB_MAJ) +cpupower: $(UTIL_OBJS) libcpupower.so.$(LIB_MAJ) $(ECHO) " CC " $@ - $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) -lcpufreq -lrt -lpci -L. -o $@ $(UTIL_OBJS) + $(QUIET) $(CC) $(CFLAGS) $(LDFLAGS) -lcpupower -lrt -lpci -L. -o $@ $(UTIL_OBJS) $(QUIET) $(STRIPCMD) $@ po/$(PACKAGE).pot: $(UTIL_SRC)
@@ -222,7 +222,7 @@ update-po: po/$(PACKAGE).pot fi; \ done; -compile-bench: libcpufreq.so.$(LIB_MAJ) +compile-bench: libcpupower.so.$(LIB_MAJ) @V=$(V) confdir=$(confdir) $(MAKE) -C bench clean:
@@ -231,14 +231,14 @@ clean: -rm -f $(UTIL_BINS) -rm -f $(IDLE_OBJS) -rm -f cpupower - -rm -f libcpufreq.so* + -rm -f libcpupower.so* -rm -rf po/*.gmo po/*.pot $(MAKE) -C bench clean install-lib: $(INSTALL) -d $(DESTDIR)${libdir} - $(CP) libcpufreq.so* $(DESTDIR)${libdir}/ + $(CP) libcpupower.so* $(DESTDIR)${libdir}/ $(INSTALL) -d $(DESTDIR)${includedir} $(INSTALL_DATA) lib/cpufreq.h $(DESTDIR)${includedir}/cpufreq.h
@@ -268,7 +268,7 @@ install-bench: install: all install-lib install-tools install-man $(INSTALL_NLS) $(INSTALL_BENCH) uninstall: - - rm -f $(DESTDIR)${libdir}/libcpufreq.* + - rm -f $(DESTDIR)${libdir}/libcpupower.* - rm -f $(DESTDIR)${includedir}/cpufreq.h - rm -f $(DESTDIR)${bindir}/utils/cpupower - rm -f $(DESTDIR)${mandir}/man1/cpufreq-set.1
@@ -277,4 +277,4 @@ uninstall: rm -f $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupowerutils.mo; \ done; -.PHONY: all utils libcpufreq update-po create-gmo install-lib install-tools install-man install-gmo install uninstall clean +.PHONY: all utils libcpupower update-po create-gmo install-lib install-tools install-man install-gmo install uninstall clean
tools/power/cpupower/bench/Makefile +1 -1
@@ -1,4 +1,4 @@ -LIBS = -L../ -lm -lcpufreq +LIBS = -L../ -lm -lcpupower OBJS = main.o parse.o system.o benchmark.o CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
Signature · 1 line
1.7.3.4
PATCH 2/2 patch remove_utils_from_name
In reply to Thomas Renninger--- tools/power/cpupower/Makefile | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
tools/power/cpupower/Makefile +6 -6
@@ -1,4 +1,4 @@ -# Makefile for cpupowerutils +# Makefile for cpupower # # Copyright (C) 2005,2006 Dominik Brodowski <[email protected]> #
@@ -51,7 +51,7 @@ VERSION = 009p1 LIB_MAJ= 0.0.0 LIB_MIN= 0 -PACKAGE = cpupowerutils +PACKAGE = cpupower PACKAGE_BUGREPORT = [email protected] LANGUAGES = de fr it cs pt
@@ -66,7 +66,7 @@ mandir ?= /usr/man includedir ?= /usr/include libdir ?= /usr/lib localedir ?= /usr/share/locale -docdir ?= /usr/share/doc/packages/cpupowerutils +docdir ?= /usr/share/doc/packages/cpupower confdir ?= /etc/ # Toolchain: what tools do we use, and what options do they need:
@@ -257,8 +257,8 @@ install-man: install-gmo: $(INSTALL) -d $(DESTDIR)${localedir} for HLANG in $(LANGUAGES); do \ - echo '$(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupowerutils.mo'; \ - $(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupowerutils.mo; \ + echo '$(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupower.mo'; \ + $(INSTALL_DATA) -D po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupower.mo; \ done; install-bench:
@@ -274,7 +274,7 @@ uninstall: - rm -f $(DESTDIR)${mandir}/man1/cpufreq-set.1 - rm -f $(DESTDIR)${mandir}/man1/cpufreq-info.1 - for HLANG in $(LANGUAGES); do \ - rm -f $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupowerutils.mo; \ + rm -f $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupower.mo; \ done; .PHONY: all utils libcpupower update-po create-gmo install-lib install-tools install-man install-gmo install uninstall clean
Signature · 1 line
1.7.3.4
Quoted 1 line · Thomas Renninger
cpupower: Rename from cpupowerutils to cpupower
Argh, forget to refresh -> messed up changelogs.
I'll resend.
Thomas