[PATCH 1/8] Makefile.lib: Fix i.MX image size after generation
Andrey Smirnov
andrew.smirnov at gmail.com
Sun May 3 13:13:12 PDT 2015
If called with '-b' option 'imx-image' tool prepends barebox header to
the image, but the tool does not fill the data at image size offset
correctly. Call 'fix_size', right after 'imx-image' to fix that.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
scripts/Makefile.lib | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index e991f33..c140d16 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -431,7 +431,8 @@ imximg-tmp = $(subst $(comma),_,$(dot-target).imxcfg.tmp)
quiet_cmd_imx_image = IMX-IMG $@
cmd_imx_image = $(CPP) $(imxcfg_cpp_flags) -o $(imximg-tmp) $(CFG_$(@F)) ; \
- $(objtree)/scripts/imx/imx-image -o $@ -b -c $(imximg-tmp) -f $<
+ $(objtree)/scripts/imx/imx-image -o $@ -b -c $(imximg-tmp) -f $<; \
+ $(objtree)/scripts/fix_size -f $@
quiet_cmd_kwb_image = KWB $@
cmd_kwb_image = scripts/kwbimage -p $< $(OPTS_$(@F)) -o $@
--
2.1.4
More information about the barebox
mailing list