diff options
author | Pali Rohár <pali@kernel.org> | 2020-11-04 10:34:35 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-05 11:58:15 -0500 |
commit | 5edd2aef7f563d0ca69c4f7745a2d02b664c5fd2 (patch) | |
tree | b73451e0e425cee55c2bd7d3aae6922a23c55145 | |
parent | 7716c328c843d4365c9fe2703e66a7aeee557dfa (diff) | |
download | u-boot-WIP/05Nov2020.tar.gz |
Makefile: Fix calling make with V=1WIP/05Nov2020
Calling 'make V=1 all' on Ubuntu 18.04 with gcc version 9.2.1 and GNU Make
version 4.1 fails on error:
scripts/Kbuild.include:220: *** Recursive variable 'echo-cmd' references itself (eventually). Stop.
As a workaround expand 'echo-cmd' variable via 'call' construction instead
of expanding it directly.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reported-by: Patrick DELAUNAY <patrick.delaunay@st.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1309,7 +1309,7 @@ init_sp_bss_offset_check: u-boot.dtb FORCE fi endif -shell_cmd = { $(echo-cmd) $(cmd_$(1)); } +shell_cmd = { $(call echo-cmd,$(1)) $(cmd_$(1)); } quiet_cmd_objcopy_uboot = OBJCOPY $@ cmd_objcopy_uboot = $(cmd_objcopy) && $(call shell_cmd,static_rela,$<,$@,$(CONFIG_SYS_TEXT_BASE)) || rm -f $@ |