summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-01-28 11:08:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-31 18:51:53 +0100
commitbf6846cacc417d261da96058df12023d98db70a8 (patch)
tree48c503e722da8ee230a58711783fc132b9fe265e /images
parente3ed260db7c26aa3893c840191a0365f7f3f2837 (diff)
downloadbarebox-bf6846cacc417d261da96058df12023d98db70a8.tar.gz
barebox-bf6846cacc417d261da96058df12023d98db70a8.tar.xz
images: fix image size in pblx
The pblx is a self extracting barebox binary. This doesn't have the size of the image correctly set because the linker doesn't generate it for relocatable binaries. This currently only works on ARM, but this is the only architecture supporting multi images anyway. TO make it work on other architectures fix_size would have to be extended to recognize other images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile
index 4ff06025b1..3e707e870f 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -70,7 +70,8 @@ $(obj)/%.pblb: $(obj)/%.pbl FORCE
quiet_cmd_pblx ?= PBLX $@
cmd_pblx ?= cat $(obj)/$(patsubst %.pblx,%.pblb,$(2)) > $@; \
$(call size_append, $(obj)/barebox.z) >> $@; \
- cat $(obj)/barebox.z >> $@
+ cat $(obj)/barebox.z >> $@; \
+ $(objtree)/scripts/fix_size -f $@
$(obj)/%.pblx: $(obj)/%.pblb $(obj)/barebox.z FORCE
$(call if_changed,pblx,$(@F))