diff options
Diffstat (limited to 'images/Makefile.imx')
-rw-r--r-- | images/Makefile.imx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/images/Makefile.imx b/images/Makefile.imx index 6b44958157..cdbae8cdc8 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -14,6 +14,17 @@ $(obj)/%.imximg: $(obj)/% FORCE $(call if_changed,imx_image) endif +quiet_cmd_imx_sram_img ?= IMX-SRAM-IMG $@ + cmd_imx_sram_img ?= cat $(obj)/$(patsubst %.imx-sram-img,%.pblb,$(2)) > $@; \ + $(call size_append, $(obj)/barebox.z) >> $@; \ + $(CPP) $(imxcfg_cpp_flags) -o $(imximg-tmp) $(CFG_$(@F)) ; \ + $(objtree)/scripts/imx/imx-image -o $@ -b -c $(imximg-tmp) -f $@; \ + cat $(obj)/barebox.z >> $@; \ + $(objtree)/scripts/fix_size -f $@ + +$(obj)/%.imx-sram-img: $(obj)/%.pblb $(obj)/barebox.z FORCE + $(call if_changed,imx_sram_img,$(@F)) + # ----------------------- i.MX25 based boards --------------------------- pblx-$(CONFIG_MACH_TX25) += start_imx25_karo_tx25 FILE_barebox-karo-tx25.img = start_imx25_karo_tx25.pblx |