diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-01 15:27:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-04 14:38:33 +0100 |
commit | efd400504cdf4ae5622480cd91086340c50342cf (patch) | |
tree | d30937757dc2e02f8d3b7d8b5fdd2276f5cbc405 /images | |
parent | 796694c0b203507f976dbafb214818ee1a702c6c (diff) | |
download | barebox-efd400504cdf4ae5622480cd91086340c50342cf.tar.gz barebox-efd400504cdf4ae5622480cd91086340c50342cf.tar.xz |
images: imx: Add targets for signed images and signed usb images
Add .simximg target for signed images and .usimximg for signed
images suitable for USB upload
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile | 3 | ||||
-rw-r--r-- | images/Makefile.imx | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile index 2422969b55..da9cc8d396 100644 --- a/images/Makefile +++ b/images/Makefile @@ -142,5 +142,6 @@ $(flash-list): $(image-y-path) clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \ start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \ - *.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd + *.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd \ + start_*.simximg start_*.usimximg clean-files += pbl.lds diff --git a/images/Makefile.imx b/images/Makefile.imx index e581dbe103..4ab2dcb57f 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -14,6 +14,12 @@ $(obj)/%.imximg: $(obj)/% FORCE $(call if_changed,imx_image,$(CFG_$(@F)),) endif +$(obj)/%.simximg: $(obj)/% FORCE + $(call if_changed,imx_image,$(CFG_$(patsubst %.simximg,%.imximg,$(@F))),-s) + +$(obj)/%.usimximg: $(obj)/% FORCE + $(call if_changed,imx_image,$(CFG_$(patsubst %.usimximg,%.imximg,$(@F))),-s -u) + 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) >> $@; \ |