From e068a7ca860f35a171f608d55fb8a2a00ebd7561 Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Mon, 15 Jan 2024 16:16:07 +0000 Subject: [PATCH] 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 --- tools/renesas/rcar_layout_create/makefile | 4 ++-- tools/renesas/rzg_layout_create/makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/renesas/rcar_layout_create/makefile b/tools/renesas/rcar_layout_create/makefile index d5857549b..01b3d62f4 100644 --- a/tools/renesas/rcar_layout_create/makefile +++ b/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: diff --git a/tools/renesas/rzg_layout_create/makefile b/tools/renesas/rzg_layout_create/makefile index 2d438b923..92a0557c0 100644 --- a/tools/renesas/rzg_layout_create/makefile +++ b/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: