@@ -35,10 +35,11 @@ swupdate
swupdate_unstripped*
lua_swupdate.so*
tools/*_unstripped
-tools/client
-tools/progress
-tools/sendtohawkbit
-tools/hawkbitcfg
+tools/swupdate-client
+tools/swupdate-progress
+tools/swupdate-sendtohawkbit
+tools/swupdate-hawkbitcfg
+tools/swupdate-sysrestart
tools/*.map
tools/*.out
@@ -9,10 +9,10 @@
# SPDX-License-Identifier: GPL-2.0-or-later
lib-y += \
- client.o \
- progress.o \
- hawkbitcfg.o \
- sendtohawkbit.o \
+ swupdate-client.o \
+ swupdate-progress.o \
+ swupdate-hawkbitcfg.o \
+ swupdate-sendtohawkbit.o \
swupdate-sysrestart.o
# # Uncomment the next lines to integrate the compiling/linking of
similarity index 100%
rename from tools/client.c
rename to tools/swupdate-client.c
similarity index 100%
rename from tools/hawkbitcfg.c
rename to tools/swupdate-hawkbitcfg.c
similarity index 100%
rename from tools/progress.c
rename to tools/swupdate-progress.c
similarity index 100%
rename from tools/sendtohawkbit.c
rename to tools/swupdate-sendtohawkbit.c
This adds a "swupdate-" prefix to all binary files in the tools directory. Binaries should not be installed as /usr/bin/client or /usr/bin/progress. On the one hand, it is risky for name conflicts. On the other hand, the name gives little indication of the meaning of the binary. This renaming is also required by Debian maintainers. Another reason for the renaming is that do_install in meta-swupdate is currently defective. The binaries are installed twice, once with and once without the swupdate prefix. If the binaries are already installed correctly named by "make install", the code that renames and duplicates the binaries can be deleted from meta-swupdate. This change also fixes an inconsistency in the "make install" target. The recently added service files call the binaries named swupdate-*. But these binaries have not yet been installed. The inconsistency was overlooked because meta-swupdate provides two copies of the binaries. The swupdate-sysrestart was missing in the .gitignore file. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> --- .gitignore | 9 +++++---- tools/Makefile | 8 ++++---- tools/{client.c => swupdate-client.c} | 0 tools/{hawkbitcfg.c => swupdate-hawkbitcfg.c} | 0 tools/{progress.c => swupdate-progress.c} | 0 tools/{sendtohawkbit.c => swupdate-sendtohawkbit.c} | 0 6 files changed, 9 insertions(+), 8 deletions(-) rename tools/{client.c => swupdate-client.c} (100%) rename tools/{hawkbitcfg.c => swupdate-hawkbitcfg.c} (100%) rename tools/{progress.c => swupdate-progress.c} (100%) rename tools/{sendtohawkbit.c => swupdate-sendtohawkbit.c} (100%)