Changeset fa0533a in rtems for make/custom
- Timestamp:
- 12/17/07 00:35:52 (16 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- ba72882
- Parents:
- 2eeb648c
- Location:
- make/custom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
make/custom/mcf5235.cfg
r2eeb648c rfa0533a 33 33 # is currently required. 34 34 35 define bsp-link-c 36 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 37 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) 38 endef 39 40 define bsp-link-cxx 41 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \ 42 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) 43 endef 44 45 define bsp-post-link 46 $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) $(basename $@).nxe 47 $(SIZE) $(basename $@)$(EXEEXT) 48 endef 49 35 50 define make-exe 36 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 37 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 38 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ 39 $(SIZE) $(basename $@).nxe 51 $(bsp-link-c) 52 $(bsp-post-link) 40 53 endef 54 41 55 define make-cxx-exe 42 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \ 43 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 44 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ 45 $(SIZE) $(basename $@).nxe 56 $(bsp-link-cxx) 57 $(bsp-post-link) 46 58 endef 47 59 -
make/custom/mrm332.cfg
r2eeb648c rfa0533a 27 27 # in the image. 28 28 CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM 29 endif 29 30 30 31 # This is a good way to get debug information. The output file is large 31 32 # though and greatly slows the build process so only do this if needed. 32 33 # $(OBJDUMP) -dxC $(basename $@).nxe > $(basename $@).dump 34 # 35 # chrisj: This is questionable. Why not keep unstipped ELF files 36 # about the use objdump and nm to get at the debug 37 # information rather than subject everyone to this. 38 # 33 39 34 define make-exe35 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@) .pxe\40 define bsp-link-c 41 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \ 36 42 $(LINK_OBJS) $(LINK_LIBS) 43 endef 44 define bsp-link-cxx 45 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \ 46 $(LINK_OBJS) $(LINK_LIBS) 47 endef 48 49 ifeq ($(MRM_IN_ROM),yes) 50 define bsp-post-link 37 51 $(OBJCOPY) --adjust-section-vma \ 38 52 .data=`m68k-rtems-objdump --section-headers $(basename $@).pxe | \ … … 44 58 /\.text/ { base = $$4 ; size = $$3 };\ 45 59 END { printf("0x%x", h2d(base) + h2d(size)) }'\ 46 ` $(basename $@).pxe $(basename $@) .nxe47 $(OBJCOPY) -O srec $(basename $@) .nxe$(basename $@).srec60 ` $(basename $@).pxe $(basename $@)$(EXEEXT) 61 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 48 62 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 49 $(PACKHEX) > $(basename $@). exe63 $(PACKHEX) > $(basename $@).nxe 50 64 $(NM) -g -n $(basename $@).pxe > $(basename $@).pnum 51 65 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 52 $(SIZE) $(basename $@) .nxe66 $(SIZE) $(basename $@)$(EXEEXT) 53 67 endef 54 68 else 55 define make-exe 56 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 57 $(LINK_OBJS) $(LINK_LIBS) 58 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 69 define bsp-post-link 70 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 59 71 # m68k-rtems-objdump -dxC $(basename $@).nxe > $(basename $@).dump 60 72 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 61 $(PACKHEX) > $(basename $@). exe62 $(NM) -g -n $(basename $@) .nxe> $(basename $@).num63 $(SIZE) $(basename $@) .nxe73 $(PACKHEX) > $(basename $@).nxe 74 $(NM) -g -n $(basename $@)$(EXEEXT) > $(basename $@).num 75 $(SIZE) $(basename $@)$(EXEEXT) 64 76 endef 65 77 endif 66 78 79 define make-exe 80 $(bsp-link-c) 81 $(bsp-post-link) 82 endef 83 84 define make-cxx-exe 85 $(bsp-link-cxx) 86 $(bsp-post-link) 87 endef 88 67 89 # Miscellaneous additions go here -
make/custom/pc386.cfg
r2eeb648c rfa0533a 46 46 # is currently required. 47 47 48 define make-exe48 define bsp-link-c 49 49 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ 50 -o $(basename $@) .nxe\50 -o $(basename $@)$(EXEEXT) \ 51 51 $(LINK_OBJS) $(LINK_LIBS) 52 endef 53 54 define bsp-link-cxx 55 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ 56 -o $(basename $@)$(EXEEXT) \ 57 $(LINK_OBJS) $(LINK_LIBS) 58 endef 59 60 define bsp-post-link 52 61 $(OBJCOPY) -O elf32-i386 \ 53 62 --remove-section=.rodata \ 54 63 --remove-section=.comment \ 55 64 --remove-section=.note \ 56 --strip-unneeded $(basename $@) .nxe $@65 --strip-unneeded $(basename $@)$(EXEEXT) $(basename $@).nxe 57 66 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin 58 67 $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ … … 70 79 # -o $@ $(LINK_OBJS) $(LINK_LIBS) 71 80 endef 81 82 define make-exe 83 $(bsp-link-c) 84 $(bsp-post-link) 85 endef 86 72 87 define make-cxx-exe 73 $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \ 74 -Wl,-Ttext,$(RELOCADDR) -o $(basename $@).nxe \ 75 $(LINK_OBJS) $(LINK_LIBS) 76 $(OBJCOPY) -O elf32-i386 \ 77 --remove-section=.rodata \ 78 --remove-section=.comment \ 79 --remove-section=.note \ 80 --strip-unneeded $(basename $@).nxe $@ 81 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin 82 $(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\ 83 $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 84 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 85 $(SIZE) $(basename $@).nxe 88 $(bsp-link-cxx) 89 $(bsp-post-link) 86 90 endef 87 91
Note: See TracChangeset
for help on using the changeset viewer.