diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-05-12 19:50:56 +1000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-05-12 20:28:57 +1000 |
commit | b959655822df6c5610372c9da54ea93f93ac87e9 (patch) | |
tree | f24104fb9da7a911ba7c9fb8a3e0137ddc7d1eac /tools/root.make | |
parent | 65c6a14e5fa41906176f93aa04512508e719d970 (diff) | |
download | rockbox-b959655822df6c5610372c9da54ea93f93ac87e9.tar.gz rockbox-b959655822df6c5610372c9da54ea93f93ac87e9.zip |
Fix unsafe substitutions in Makefile.
Strange things can happen in the (unlikely) case that ROOTDIR=/rockbox
Change-Id: I085f928fd859b307667e8fccf40b29a9c325f7ae
Diffstat (limited to 'tools/root.make')
-rw-r--r-- | tools/root.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/root.make b/tools/root.make index 2deae8cc82..c9f4a2eb65 100644 --- a/tools/root.make +++ b/tools/root.make | |||
@@ -157,7 +157,7 @@ endif # CORE_GCSECTIONS | |||
157 | OBJ := $(SRC:.c=.o) | 157 | OBJ := $(SRC:.c=.o) |
158 | OBJ := $(OBJ:.S=.o) | 158 | OBJ := $(OBJ:.S=.o) |
159 | OBJ += $(BMP:.bmp=.o) | 159 | OBJ += $(BMP:.bmp=.o) |
160 | OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ)) | 160 | OBJ := $(call full_path_subst,$(ROOTDIR)/%,$(BUILDDIR)/%,$(OBJ)) |
161 | 161 | ||
162 | build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) | 162 | build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) |
163 | 163 | ||