Makefile.inc: Fix empty output when processing C struct files in CBFS
commit63eb64be26bfa30f1cc18d75ec98d63b3e8b4f26
authorXi Chen <xixi.chen@mediatek.com>
Tue, 1 Dec 2020 08:17:24 +0000 (1 16:17 +0800)
committerNico Huber <nico.h@gmx.de>
Wed, 9 Dec 2020 23:18:10 +0000 (9 23:18 +0000)
tree6618f03a74fa869d67797e63e569552979b343f1
parent5c08c31775cb7f705b58e8be59a482754fa40df7
Makefile.inc: Fix empty output when processing C struct files in CBFS

When passing $(@) to eval command, $(@) is replaced by empty string,
Also, the $(@) in cbfs-files-processor-struct is a temporary file name,
so we should quote it by an extra '$' or use the arg ($1 or $2)
directly.

For example:
  cbfs-files-processor-struct= \
      $(eval $(2): $(1) $(obj)/build.h $(KCONFIG_AUTOHEADER); \
# **  $(@) is empty string instead of $(2)   **
printf "    CC+STRIP   $(@)  \n"; \
# **  $(1) contains the name of source file  **
printf "    CC+STRIP   $(1) \n"; \
......)

Signed-off-by: Xi Chen <xixi.chen@mediatek.com>
Change-Id: Id6a66e25d7dfe8fe6410e517593ed22a438d2f82
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48201
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Makefile.inc