From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] images: Drop unnecessary fix_size
Date: Wed, 16 Jan 2019 10:17:27 +0100 [thread overview]
Message-ID: <20190116091727.20447-1-s.hauer@pengutronix.de> (raw)
Now that we compile the compressed binary into the decompressor we
no longer need fix_size but can use the linker to fill in the image
size into the binary.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/lib/pbl.lds.S | 2 +-
images/Makefile | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S
index 53c9ce0fe6..e7a94f912e 100644
--- a/arch/arm/lib/pbl.lds.S
+++ b/arch/arm/lib/pbl.lds.S
@@ -95,6 +95,6 @@ SECTIONS
.image_end : { *(.__image_end) }
- _barebox_image_size = __image_end - BASE;
+ _barebox_image_size = __piggydata_end - BASE;
_barebox_pbl_size = __bss_start - BASE;
}
diff --git a/images/Makefile b/images/Makefile
index 9bd3caa578..aaf7479a70 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -44,8 +44,7 @@
quiet_cmd_objcopy_bin = OBJCOPYB $@
cmd_objcopy_bin = \
- $(OBJCOPY) -O binary $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ && \
- $(objtree)/scripts/fix_size -f $@
+ $(OBJCOPY) -O binary $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
pbl-lds := $(obj)/pbl.lds
extra-y += $(pbl-lds)
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2019-01-16 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-16 9:17 Sascha Hauer [this message]
2019-01-16 11:01 ` Sam Ravnborg
2019-01-17 8:39 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190116091727.20447-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox