Skip to content

Commit

Permalink
Makefile: Prefix installed executables with 'zephyr-'
Browse files Browse the repository at this point in the history
This commit updates the Makefile to prefix the "install"-ed Zephyr QEMU
executables with `zephyr-`.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
stephanosio committed May 26, 2020
1 parent c35de76 commit 8f112e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8f112e0

Please sign in to comment.