diff --git a/Makefile b/Makefile index 742b1653f3..415a1654e2 100644 --- a/Makefile +++ b/Makefile @@ -1592,6 +1592,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 # ===========================================================================