Commit d014ea6c authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

Build: strip trailing slashes from directory paths more simply



Append . then strip /. seems clumsy.  Just use $(patsubst %/,%, ).
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent a6ca7888
...@@ -300,9 +300,8 @@ define MAKE_BL ...@@ -300,9 +300,8 @@ define MAKE_BL
# ordering is not relevant but sort removes duplicates. # ordering is not relevant but sort removes duplicates.
$(eval TEMP_OBJ_DIRS := $(sort $(BUILD_DIR)/ $(dir ${OBJS} ${LINKERFILE}))) $(eval TEMP_OBJ_DIRS := $(sort $(BUILD_DIR)/ $(dir ${OBJS} ${LINKERFILE})))
# The $(dir ) function leaves a trailing / on the directory names # The $(dir ) function leaves a trailing / on the directory names
# We append a . then strip /. from each, to remove the trailing / characters # Rip off the / to match directory names with make rule targets.
# This gives names suitable for use as make rule targets. $(eval OBJ_DIRS := $(patsubst %/,%,$(TEMP_OBJ_DIRS)))
$(eval OBJ_DIRS := $(subst /.,,$(addsuffix .,$(TEMP_OBJ_DIRS))))
# Create generators for object directory structure # Create generators for object directory structure
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment