From: Joel Stanley Date: Fri, 18 Jun 2021 02:05:59 +0000 (+0930) Subject: Makefile: Conditionally add defaultenv_h to envtools target X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=2a2896b17fa47168b87590a1e9b42765c598e3c7;p=u-boot.git Makefile: Conditionally add defaultenv_h to envtools target When building the envtools target with CONFIG_USE_DEFAULT_ENV_FILE=y, the tools require generated/defaultenv_autogenerated.h. In file included from tools/env/fw_env.c:126: include/env_default.h:115:10: fatal error: generated/defaultenv_autogenerated.h: No such file or directory 115 | #include "generated/defaultenv_autogenerated.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Joel Stanley --- diff --git a/Makefile b/Makefile index c6b8c591d3..bc404c8f98 100644 --- a/Makefile +++ b/Makefile @@ -1871,6 +1871,8 @@ endif ifeq ($(CONFIG_USE_DEFAULT_ENV_FILE),y) prepare1: $(defaultenv_h) + +envtools: $(defaultenv_h) endif archprepare: prepare1 scripts_basic