summaryrefslogtreecommitdiffstats
path: root/tools/database
diff options
context:
space:
mode:
authorVencislav Atanasov <user890104@freemyipod.org>2019-07-28 19:44:23 +0300
committerFranklin Wei <franklin@rockbox.org>2019-07-28 21:00:57 +0200
commit7f9fc20afa3bcff007da941041ceb0c0d84d8fc3 (patch)
treec28397eb6de5f942e36811b3f4dbe717e4065d05 /tools/database
parentd8330c9c18ac227800ed7dc9c6ae72946e92e4fb (diff)
downloadrockbox-7f9fc20afa3bcff007da941041ceb0c0d84d8fc3.tar.gz
rockbox-7f9fc20afa3bcff007da941041ceb0c0d84d8fc3.tar.bz2
rockbox-7f9fc20afa3bcff007da941041ceb0c0d84d8fc3.zip
Use full_path_subst on more places, to avoid replacing the wrong occurrences in
paths. If ROOTDIR=/rockbox and BUILDDIR=/rockbox/build-something, it is now possible to successfully build both target binaries and simulators. Change-Id: If12d1d5933c5a15feebf627a4f1636dc1e3a67fa
Diffstat (limited to 'tools/database')
-rw-r--r--tools/database/database.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/database/database.make b/tools/database/database.make
index 970aeb5581..c29dd47f9b 100644
--- a/tools/database/database.make
+++ b/tools/database/database.make
@@ -14,7 +14,7 @@ createsrc = $(shell cat $(1) > $(3); echo "\#if CONFIG_CODEC == SWCODEC" >> $(3)
echo "\#endif" >> $(3); \
echo $(3))
-METADATAS := $(subst $(ROOTDIR), ../.., $(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c))
+METADATAS := $(call full_path_subst,$(ROOTDIR)/%,../../%,$(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c))
SRCFILE := $(call createsrc, $(TOOLSDIR)/database/SOURCES, \
$(METADATAS), \