[Bug 1675] mcf5329 BSP post-link conversion broken

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Aug 20 16:56:29 CDT 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1675

--- Comment #11 from Chris Johns <chrisj at rtems.org> 2010-08-20 16:56:27 CDT ---
How do we move a BSP post link macro to a script ?

An example I changed today to remove the .exe is:

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

It is from the pc386 BSP. I can script something to extract this to a command
but I do not know now to fill in the various macro variables used.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the rtems-bugs mailing list