diff --git a/Makefile b/Makefile index 18263cf521..d00613686f 100644 --- a/Makefile +++ b/Makefile @@ -934,6 +934,10 @@ install: all $(if $(BUILD_DOCS),install-doc) \ recurse-install ifneq ($(TOOLS),) $(call install-prog,$(TOOLS),$(DESTDIR)$(bindir)) + for t in $(TOOLS); do \ + tname=$$(basename $${t}); \ + mv $(DESTDIR)$(bindir)/$$tname $(DESTDIR)$(bindir)/zephyr-$$tname; \ + done endif ifneq ($(CONFIG_MODULES),) $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" @@ -954,6 +958,7 @@ ifneq ($(vhost-user-json-y),) endif ifdef CONFIG_TRACE_SYSTEMTAP $(INSTALL_PROG) "scripts/qemu-trace-stap" $(DESTDIR)$(bindir) + mv $(DESTDIR)$(bindir)/qemu-trace-stap $(DESTDIR)$(bindir)/zephyr-qemu-trace-stap endif ifneq ($(BLOBS),) set -e; for x in $(BLOBS); do \ diff --git a/Makefile.target b/Makefile.target index 8ed1eba95b..5d4bbe4051 100644 --- a/Makefile.target +++ b/Makefile.target @@ -248,6 +248,10 @@ endif install: all ifneq ($(PROGS),) $(call install-prog,$(PROGS),$(DESTDIR)$(bindir)) + for p in $(PROGS); do \ + pname=$$(basename $${p}); \ + mv $(DESTDIR)$(bindir)/$$pname $(DESTDIR)$(bindir)/zephyr-$$pname; \ + done endif ifdef CONFIG_TRACE_SYSTEMTAP $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset"