[PATCH v2] bsp/pc386: Remove bin2boot support

Chris Johns chrisj at rtems.org
Thu Apr 26 05:47:34 UTC 2018


On 26/04/2018 15:36, Sebastian Huber wrote:
> 
> diff --git a/bsps/i386/pc386/config/pc386.cfg b/bsps/i386/pc386/config/pc386.cfg
> index dd7f554cbc..52f77a3abe 100644
> --- a/bsps/i386/pc386/config/pc386.cfg
> +++ b/bsps/i386/pc386/config/pc386.cfg
> @@ -20,11 +20,6 @@ CFLAGS_OPTIMIZE_V = -O2 -g
>  CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
>   
>  LDFLAGS = -Wl,--gc-sections
> -
> -# Here is the rule to actually build a $(ARCH)/foo$(EXEEXT)
> -# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
> -# Usage ref: src/tests/sptest/sp1/Makefile
> -
>  #+--------------------------------------------------------------------------+
>  #| Set the value of RELOCADDR to the address where you want your image to
>  #| load. If you'll be using GRUB to load the images it will have to be >=
> @@ -36,23 +31,4 @@ LDFLAGS = -Wl,--gc-sections
>  #+--------------------------------------------------------------------------+
>    RELOCADDR=0x00100000

This is important and is a tweak in the rtems-waf.git repo because it is not
available outside of this config.

> -START16FILE=$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin
> -START16ADDR=0x00097C00
> -HEADERADDR=0x00097E00
> -
>  LDFLAGS += -Wl,-Ttext,$(RELOCADDR)
> -
> -define bsp-post-link
> -	$(default-bsp-post-link)
> -	$(OBJCOPY) -O elf32-i386 \
> -	    --remove-section=.comment \
> -	    --remove-section=.note \
> -	    --strip-unneeded $(basename $@)$(EXEEXT) $(basename $@).nxe
> -	$(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin
> -	$(PROJECT_TOOLS)/bin2boot -v $(basename $@)$(DOWNEXT) $(HEADERADDR)\
> -	  $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
> -	rm -f $(basename $@).nxe
> -endef
> -
> -# BSP-specific tools
> -BIN2BOOT=$(PROJECT_TOOLS)/bin2boot

I am OK with this post link detail being removed. It exists on the 4.11 if we
need it again. I doubt we will.

Chris



More information about the devel mailing list