diff options
author | Andrew Davis <afd@ti.com> | 2023-09-15 09:43:23 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-09 15:24:31 -0400 |
commit | ce743f168a31526508a06280e2c6b9c531a0360c (patch) | |
tree | 6f98c0adaf4d868087a51195038b5b33012f76a0 /Makefile | |
parent | d9bb6d779b69c2548891e568e5e2a23e1b7eedaa (diff) | |
download | u-boot-ce743f168a31526508a06280e2c6b9c531a0360c.zip u-boot-ce743f168a31526508a06280e2c6b9c531a0360c.tar.gz u-boot-ce743f168a31526508a06280e2c6b9c531a0360c.tar.bz2 |
Makefile: Force regeneration of env.txt
If the source .env file changes to one that is also older than the
generated env.txt file then the .env file is not regenerated. This
means when switching board configs we do not regenerate the env.
This can be tested with:
$ make j721e_evm_a72_defconfig
$ make # this may fail to complete but that is okay for this test
$ make am64x_evm_a53_defconfig
$ make
$ vim include/generated/env.txt
Note this is still the J721e env not the AM64 config as expected.
As ENV_FILE is set based on configuration, regenerate anytime
autoconf.h changes.
Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1831,7 +1831,7 @@ quiet_cmd_envc = ENVC $@ touch $@ ; \ fi -include/generated/env.txt: $(wildcard $(ENV_FILE)) +include/generated/env.txt: $(wildcard $(ENV_FILE)) include/generated/autoconf.h $(call cmd,envc) # Write out the resulting environment, converted to a C string |