summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Tokarev2014-04-05 16:25:46 +0200
committerPeter Maydell2014-04-07 16:19:16 +0200
commit9c269f6d7bfb81cbbf501576b979831478dac5d9 (patch)
treed546e86a842d8f67f04a944253e70c6f22231554 /Makefile
parentchar/serial: Fix emptyness handling (diff)
downloadqemu-9c269f6d7bfb81cbbf501576b979831478dac5d9.tar.gz
qemu-9c269f6d7bfb81cbbf501576b979831478dac5d9.tar.xz
qemu-9c269f6d7bfb81cbbf501576b979831478dac5d9.zip
Makefile: remove bashism
When installing modules (when --enable-modules is specified for ./configure), Makefile uses the following construct to replace all slashes with dashes in module name: ${s//\//-} This is a bash-specific substitution mechanism. POSIX does not have it, and some operating systems (for example Debian) does not implement this construct in default shell (for example dash). Use more traditional way to perform the substitution: use `tr' tool. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Message-id: 1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec7403961a..d622799554 100644
--- a/Makefile
+++ b/Makefile
@@ -376,7 +376,7 @@ endif
ifneq ($(CONFIG_MODULES),)
$(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)"
for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \
- $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$${s//\//-}"; \
+ $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \
done
endif
ifneq ($(HELPERS-y),)