Xi Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48201 )
Change subject: Makefile.inc: Fix $(@) shows empty issue ......................................................................
Makefile.inc: Fix $(@) shows empty issue
When passing $(@) to printf, $(@) is replaced by empty string, need to add extra '$'.
For example: cbfs-files-processor-struct= \ $(eval $(2): $(1) $(obj)/build.h $(KCONFIG_AUTOHEADER); \ # ** @(@) is empty string instead of $(2) ** printf " CC+STRIP $(@) \n"; \ # ** $$(@) == $(2) ** printf " CC+STRIP $$(@) \n"; \ ......)
Signed-off-by: Xi Chen xixi.chen@mediatek.com Change-Id: Id6a66e25d7dfe8fe6410e517593ed22a438d2f82 --- M Makefile.inc 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/48201/1
diff --git a/Makefile.inc b/Makefile.inc index 9273961..38af658 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -336,7 +336,7 @@ # arg2: binary file cbfs-files-processor-struct= \ $(eval $(2): $(1) $(obj)/build.h $(KCONFIG_AUTOHEADER); \ - printf " CC+STRIP $(@)\n"; \ + printf " CC+STRIP $$(<) --> $$(@) \n"; \ $(CC_ramstage) -MMD $(CPPFLAGS_ramstage) $(CFLAGS_ramstage) $$(ramstage-c-ccopts) -include $(KCONFIG_AUTOHEADER) -MT $(2) -o $(2).tmp -c $(1) && \ $(OBJCOPY_ramstage) -O binary $(2).tmp $(2); \ rm -f $(2).tmp) \