]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: Conditionally add defaultenv_h to envtools target
authorJoel Stanley <joel@jms.id.au>
Fri, 18 Jun 2021 02:05:59 +0000 (11:35 +0930)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jul 2021 20:57:35 +0000 (16:57 -0400)
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 <joel@jms.id.au>
Makefile

index c6b8c591d3f1d98aff3c4fda1e591c81ef8733cf..bc404c8f989569bac742957094d441ea189913a0 100644 (file)
--- 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