diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-08 08:26:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-08 08:26:35 +0100 |
commit | 6435fb09d8af3aeae7c6f8428f5e7ade15aca6f5 (patch) | |
tree | 47688a764f75d4c90ef2f233e214bea2d3110ffb /images | |
parent | 129fb7d893a067232b28a471c4d24a0638404c95 (diff) | |
parent | 1db47f7616b1b9940e34c9b1d3ba17de36e957a0 (diff) | |
download | barebox-6435fb09d8af3aeae7c6f8428f5e7ade15aca6f5.tar.gz barebox-6435fb09d8af3aeae7c6f8428f5e7ade15aca6f5.tar.xz |
Merge branch 'for-next/hab'
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile | 4 | ||||
-rw-r--r-- | images/Makefile.imx | 10 | ||||
-rw-r--r-- | images/Makefile.imxhabv4 | 48 |
3 files changed, 10 insertions, 52 deletions
diff --git a/images/Makefile b/images/Makefile index 6a44511215..da9cc8d396 100644 --- a/images/Makefile +++ b/images/Makefile @@ -104,7 +104,6 @@ objboard = $(objtree)/arch/$(ARCH)/boards include $(srctree)/images/Makefile.am33xx include $(srctree)/images/Makefile.imx -include $(srctree)/images/Makefile.imxhabv4 include $(srctree)/images/Makefile.mvebu include $(srctree)/images/Makefile.mxs include $(srctree)/images/Makefile.omap3 @@ -143,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 ea9346abaa..4ab2dcb57f 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -8,12 +8,18 @@ ifdef CONFIG_ARCH_IMX_XLOAD $(obj)/%.imximg: $(obj)/% FORCE $(call cmd,check_file_size,$<,$(CONFIG_ARCH_IMX_UNUSED_IRAM_SIZE)) - $(call if_changed,imx_image) + $(call if_changed,imx_image,$(CFG_$(@F)),) else $(obj)/%.imximg: $(obj)/% FORCE - $(call if_changed,imx_image) + $(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) >> $@; \ diff --git a/images/Makefile.imxhabv4 b/images/Makefile.imxhabv4 deleted file mode 100644 index 9eb9538417..0000000000 --- a/images/Makefile.imxhabv4 +++ /dev/null @@ -1,48 +0,0 @@ -# -*-makefile-*- -# -# barebox image generation Makefile for HABv4 images -# - -# default csf templates -havb4_imx6csf = $(srctree)/scripts/habv4/habv4-imx6.csf.in -habv4_imx2csf = $(srctree)/scripts/habv4/habv4-imx28.csf.in - -# %.imximg.prep - Convert in i.MX image, with preparation for signature -# ---------------------------------------------------------------- -quiet_cmd_imx_prep_image = IMX-PREP-IMG $@ - cmd_imx_prep_image = $(CPP) $(imxcfg_cpp_flags) -o $(imximg-tmp) $(word 2,$^) ; \ - $< -o $@ -b -c $(imximg-tmp) -p -f $(word 3,$^) - -.SECONDEXPANSION: -$(obj)/%.imximg.prep: $(objtree)/scripts/imx/imx-image $$(CFG_%.imximg) $(obj)/% - $(call if_changed,imx_prep_image) - -# %.habv4.csf - create Command Sequence File from template -# ---------------------------------------------------------------- -quiet_cmd_csf = CSF $@ - cmd_csf = TABLE_BIN=$(CONFIG_HABV4_TABLE_BIN) \ - CSF_CRT_PEM=$(CONFIG_HABV4_CSF_CRT_PEM) \ - IMG_CRT_PEM=$(CONFIG_HABV4_IMG_CRT_PEM) \ - $< -f $(word 2,$^) -c $(word 3,$^) -i $(word 4,$^) -o $@ - -.SECONDEXPANSION: -$(obj)/%.habv4.csf: $(srctree)/scripts/habv4/gencsf.sh $(obj)/%.prep $$(CFG_%) $$(CSF_%) - $(call if_changed,csf) - -# %.habv4.sig - create signature and pad to 0x2000 -# ---------------------------------------------------------------- -CST = cst -quiet_cmd_habv4_sig = HAB4SIG $@ - cmd_habv4_sig = $(CST) -o $(imximg-tmp) < $(word 2,$^) > /dev/null; \ - $(OBJCOPY) -I binary -O binary --pad-to 0x2000 --gap-fill=0x5a $(imximg-tmp) $@ - -$(obj)/%.habv4.sig: $(obj)/%.prep $(obj)/%.habv4.csf - $(call if_changed,habv4_sig) - -# %.imximg.signed - concatenate bootloader and signature -# ---------------------------------------------------------------- -quiet_cmd_cat = CAT $@ - cmd_cat = cat $^ > $@ - -$(obj)/%.imximg.signed: $(obj)/%.imximg.prep $(obj)/%.imximg.habv4.sig - $(call if_changed,cat) |