Browse Source

fix(rcar): fix implicit rule invocations in tools

The `rzg_layout_create` and `rcar_layout_create` tools have a rule to
build object files from C files, but it depends on object files in the
parent directory when it should depend on object files in the current
directory. Consequently, the rule is not triggering and the implicit C
compilation rule is executed instead. This rule works, so I have
replaced the broken rule with exactly the same command as what the
implicit rule is executing and fixed the dependency.

Change-Id: Ib8d640361adff8c4d660738dda230e5536bec629
Signed-off-by: Chris Kay <chris.kay@arm.com>
pull/1999/merge
Chris Kay 10 months ago
parent
commit
e068a7ca86
  1. 4
      tools/renesas/rcar_layout_create/makefile
  2. 4
      tools/renesas/rzg_layout_create/makefile

4
tools/renesas/rcar_layout_create/makefile

@ -113,8 +113,8 @@ $(OUTPUT_FILE_SA6) : $(MEMORY_DEF_SA6) $(OBJ_FILE_SA6)
# Compile
###################################################
%.o:../%.c
$(CC) -c -I $< -o $@
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
.PHONY: clean
clean:

4
tools/renesas/rzg_layout_create/makefile

@ -110,8 +110,8 @@ $(OUTPUT_FILE_SA6) : $(MEMORY_DEF_SA6) $(OBJ_FILE_SA6)
# Compile
###################################################
%.o:../%.c
$(CC) -c -I $< -o $@
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
.PHONY: clean
clean:

Loading…
Cancel
Save