]> git.baikalelectronics.ru Git - uboot.git/commit
Replace echo -n's used in environment processing with touch
authorqthedev <qthedev@protonmail.com>
Sat, 5 Feb 2022 10:25:16 +0000 (10:25 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 11 Feb 2022 16:28:47 +0000 (11:28 -0500)
commit681911beb2842efd8e661e8428a575f9f14aff53
tree8ebb7c30592690fd601d7dd02a24dc8bf683b66c
parent486a2d392eac829f918976df796ec8f2e77e2b1e
Replace echo -n's used in environment processing with touch

echo -n does not give the intended effect when invoked in macOS through
/bin/sh, which is the shell make uses by default, see
"https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working"
for a detailed explanation. In this case, it resulted in "-n" being
written to env.txt and env.in even though they should be empty, which
caused compilation to fail with "Your board uses a text-file
environment, so must not define CONFIG_EXTRA_ENV_SETTINGS".

This patch prevents the error by replacing echo -n's with touch, as they
are used to create empty files in these cases.
Makefile