[PATCH 08/19] Makefile: add barebox.elf build target
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 5 07:43:16 PST 2026
On Mon, Jan 05, 2026 at 01:22:40PM +0100, Ahmad Fatoum wrote:
> > .SECONDEXPANSION:
> > $(symlink-y): $$(or $$(SYMLINK_DEP_$$(@F)),$$(SYMLINK_TARGET_$$(@F))) FORCE
> > @@ -1091,6 +1094,17 @@ barebox.fit: images/barebox-$(CONFIG_ARCH_LINUX_NAME).fit
> > barebox.srec: barebox
> > $(OBJCOPY) -O srec $< $@
> >
> > +OBJCOPYFLAGS_barebox.elf = --strip-debug --strip-unneeded \
>
> --strip-section-headers goes the farthest I think.
The objcopy from the toolchain I used (binutils-2.40) doesn't support
this option. A newer one I just upgraded to indeed does.
Sascha
> OBJCOPYFLAGS_$@ = $your_options.
>
>
> Sidenote: We should add --error-rwx-segments depending on
> CONFIG_PBL_IMAGE_ELF.
Is this a objcopy option? My objcopy doesn't seem to support this.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list