diff --git a/Makefile b/Makefile index 954a865381..a4c2adce3f 100644 --- a/Makefile +++ b/Makefile @@ -1605,6 +1605,13 @@ endif $(build)=$(build-dir) $(@:.ko=.o) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost +quiet_cmd_genenv = GENENV $@ +cmd_genenv = $(OBJCOPY) --dump-section .rodata.default_environment=$@ common/env_common.o; \ + sed --in-place -e 's/\x00/\x0A/g' $@ + +u-boot-initial-env: u-boot.bin + $(call if_changed,genenv) + # FIXME Should go into a make.lib or something # ===========================================================================