diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-16 10:15:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-16 10:16:09 +0100 |
commit | 5c0e16591d9471a345b77a41fde76de34f301f6b (patch) | |
tree | 41536b266914636bca310d244e998acae434dd01 | |
parent | 9348be5c1800b7cac5ec0e6996abcb3875cd6041 (diff) | |
download | barebox-5c0e16591d9471a345b77a41fde76de34f301f6b.tar.gz barebox-5c0e16591d9471a345b77a41fde76de34f301f6b.tar.xz |
images: Drop unnecessary fix_size
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>
-rw-r--r-- | arch/arm/lib/pbl.lds.S | 2 | ||||
-rw-r--r-- | 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) |