aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Rini2022-04-08 08:27:50 -0400
committerTom Rini2022-04-08 08:27:50 -0400
commit03a8a797e5dccaffe172d3b5224bc3c3fcd304d6 (patch)
tree86204244c902ae70775c787d23427da8961f77d1 /Makefile
parent545eceb52062cdc995c45b9581174b7ae66b0e6f (diff)
parent6910dbe3413e684bff9a194945df60345ecbc623 (diff)
Merge branch '2022-04-08-env-updates'
- Assorted env tooling updates - Bug fix around multiple possible env locations and ENV_IS_NOWHERE - Add 'indirect' sub-command to env - Allow for FAT env to have the location overridden by the board code.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4b347d3603a..9b25536c301 100644
--- a/Makefile
+++ b/Makefile
@@ -2459,7 +2459,8 @@ endif
quiet_cmd_genenv = GENENV $@
cmd_genenv = $(OBJCOPY) --dump-section .rodata.default_environment=$@ env/common.o; \
- sed --in-place -e 's/\x00/\x0A/g' $@
+ sed --in-place -e 's/\x00/\x0A/g' $@; sed --in-place -e '/^\s*$$/d' $@; \
+ sort --field-separator== -k1,1 --stable $@ -o $@
u-boot-initial-env: u-boot.bin
$(call if_changed,genenv)