Changeset 6087a692 in rtems for make/custom
- Timestamp:
- 03/06/08 21:51:01 (16 years ago)
- Branches:
- 4.10, 4.11, 4.9, 5, master
- Children:
- 97a40898
- Parents:
- 44cc441
- Location:
- make/custom
- Files:
-
- 73 edited
Legend:
- Unmodified
- Added
- Removed
-
make/custom/Cygwin-posix.cfg
r44cc441 r6087a692 17 17 # optimize flag: typically -O2 18 18 CFLAGS_OPTIMIZE_V = -O2 -g 19 20 define make-exe21 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)22 $(NM) -g -n $@ > $(basename $@).num23 $(SIZE) $@24 endef25 26 # *****************************************************************27 # Miscellaneous additions go here -
make/custom/FreeBSD-posix.cfg
r44cc441 r6087a692 14 14 # optimize flag: typically -O2 15 15 CFLAGS_OPTIMIZE_V = -O2 -g 16 17 define make-exe18 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)19 $(NM) -g -n $@ > $(basename $@).num20 $(SIZE) $@21 endef22 23 # *****************************************************************24 # Miscellaneous additions go here -
make/custom/HPUX9-posix.cfg
r44cc441 r6087a692 18 18 # optimize flag: typically -O2 19 19 CFLAGS_OPTIMIZE_V = -O2 -g 20 21 define make-exe22 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)23 $(NM) -g -n $@ > $(basename $@).num24 $(SIZE) $@25 endef26 27 # Miscellaneous additions go here28 -
make/custom/Linux-posix.cfg
r44cc441 r6087a692 20 20 21 21 # optimize flag: typically -O2 22 CFLAGS_OPTIMIZE_V = -O2 -g 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) 26 $(NM) -g -n $@ > $(basename $@).num 27 $(SIZE) $@ 28 endef 29 30 # ***************************************************************** 31 # Miscellaneous additions go here 22 CFLAGS_OPTIMIZE_V = -O0 -g -
make/custom/Solaris-posix.cfg
r44cc441 r6087a692 21 21 # optimize flag: typically -O2 22 22 CFLAGS_OPTIMIZE_V = -O2 -g 23 24 define make-exe25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)26 $(NM) -g -n $@ > $(basename $@).num27 $(SIZE) $@28 endef29 30 # *****************************************************************31 32 # Miscellaneous additions go here -
make/custom/av5282.cfg
r44cc441 r6087a692 23 23 endif 24 24 25 26 # The following are definitions of make-exe which will work using ld as 27 # is currently required. 28 29 30 define make-exe 31 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 32 $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds 33 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ 34 $(SIZE) $(basename $@).nxe 25 define bsp-post-link 26 $(default-bsp-post-link) 27 $(OBJCOPY) -O binary --strip-all \ 28 $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 35 29 endef 36 define make-cxx-exe37 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \38 $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds39 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@40 $(SIZE) $(basename $@).nxe41 endef42 43 # Miscellaneous additions go here -
make/custom/bare.cfg
r44cc441 r6087a692 29 29 define make-exe 30 30 @echo "*** Cannot do a link with the bare bsp. ***" 31 @echo "#!/bin/sh" > $(basename $@) .exe32 @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@) .exe31 @echo "#!/bin/sh" > $(basename $@)$(EXEEXT) 32 @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@)$(EXEEXT) 33 33 endef 34 34 35 35 define make-cxx-exe 36 36 @echo "*** Cannot do a link with the bare bsp. ***" 37 @echo "#!/bin/sh" > $(basename $@) .exe38 @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@) .exe37 @echo "#!/bin/sh" > $(basename $@)$(EXEEXT) 38 @echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@)$(EXEEXT) 39 39 endef 40 40 -
make/custom/c3xsim.cfg
r44cc441 r6087a692 23 23 # this target has no start file 24 24 START_BASE= 25 26 # The following are definitions of make-exe which will work using ld as27 # is currently required.28 29 define make-exe30 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \31 $(LDLIBS) -o $@ \32 $(LINK_OBJS) $(LINK_LIBS)33 $(NM) -g -n $@ > $(basename $@).num34 $(SIZE) $@35 endef36 37 # Miscellaneous additions go here -
make/custom/c4xsim.cfg
r44cc441 r6087a692 23 23 # this target has no start file 24 24 START_BASE= 25 26 # The following are definitions of make-exe which will work using ld as27 # is currently required.28 29 define make-exe30 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \31 $(LDLIBS) -o $@ \32 $(LINK_OBJS) $(LINK_LIBS)33 $(NM) -g -n $@ > $(basename $@).num34 $(SIZE) $@35 endef36 37 # Miscellaneous additions go here -
make/custom/csb336.cfg
r44cc441 r6087a692 15 15 # This contains the compiler options necessary to select the CPU model 16 16 # and (hopefully) optimize for it. 17 #18 17 CPU_CFLAGS = -mcpu=arm920 -mstructure-size-boundary=8 19 18 20 19 # optimize flag: typically -O2 21 20 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 define make-exe24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \25 $(LINK_OBJS) $(LINK_LIBS)26 $(NM) -g -n $(basename $@).exe > $(basename $@).num27 $(SIZE) $(basename $@).exe28 endef29 30 # Miscellaneous additions go here -
make/custom/csb337.cfg
r44cc441 r6087a692 15 15 # This contains the compiler options necessary to select the CPU model 16 16 # and (hopefully) optimize for it. 17 #18 17 CPU_CFLAGS = -mcpu=arm920 -mstructure-size-boundary=8 19 18 20 19 # optimize flag: typically -O2 21 20 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 24 define make-exe25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \26 $(LINK_OBJS) $(LINK_LIBS)27 $(NM) -g -n $(basename $@).exe > $(basename $@).num28 $(SIZE) $(basename $@).exe29 endef30 31 # Miscellaneous additions go here -
make/custom/csb350.cfg
r44cc441 r6087a692 21 21 # optimize flag: typically -O2 22 22 CFLAGS_OPTIMIZE_V = -O2 -g 23 24 # The following are definitions of make-exe which will work using ld as25 # is currently required.26 27 define make-exe28 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \29 $(LDLIBS) -o $@ \30 $(LINK_OBJS) $(LINK_LIBS)31 $(NM) -g -n $@ > $(basename $@).num32 $(SIZE) $@33 endef34 35 # Miscellaneous additions go here36 -
make/custom/csb360.cfg
r44cc441 r6087a692 21 21 # optimize flag: typically -O2 22 22 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 23 24 # The following are definitions of make-exe which will work using ld as25 # is currently required.26 27 define make-exe28 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \29 $(LINK_OBJS) $(LINK_LIBS)30 $(NM) -g -n $@ > $(basename $@).num31 $(SIZE) $@32 endef33 34 # Miscellaneous additions go here -
make/custom/default.cfg
r44cc441 r6087a692 4 4 # 5 5 # Created by Jiri Gaisler, 16-03-97 (who is owed a debt of gratitude 6 # for converting RTEMS to autoconf. Thanks. --joel)6 # for the initial RTEMS autoconf support. Thanks. --joel) 7 7 # 8 8 # $Id$ … … 21 21 START_BASE=start 22 22 23 ## what to do about $(EXEEXT) --> $(EXEEXT) 24 ## -o $(basename $@)$(EXEEXT) OR 25 ## -o $(basename $@)$(EXEEXT) OR 26 27 EXEEXT=.exe 28 DOWNEXT=.ralf 29 30 define bsp-link-c 31 $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ 32 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) 33 endef 34 35 define bsp-link-cxx 36 $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ 37 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) 38 endef 39 40 define default-bsp-post-link 41 $(NM) -g -n $@ > $(basename $@).num 42 $(SIZE) $@ 43 endef 44 45 define bsp-post-link 46 $(default-bsp-post-link) 47 cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 48 endef 49 50 define make-exe 51 $(bsp-link-c) 52 $(bsp-post-link) 53 endef 54 55 define make-cxx-exe 56 $(bsp-link-cxx) 57 $(bsp-post-link) 58 endef -
make/custom/eZKit533.cfg
r44cc441 r6087a692 21 21 # gcc-4.2.0 segfaults on -OX > -O0 22 22 CFLAGS_OPTIMIZE_V = -O0 -g 23 24 # The following are definitions of make-exe which will work using ld as25 # is currently required.26 27 define make-exe28 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \29 $(LDLIBS) -o $@ \30 $(LINK_OBJS) $(LINK_LIBS)31 $(NM) -g -n $@ > $(basename $@).num32 $(SIZE) $@33 endef34 35 # Miscellaneous additions go here -
make/custom/edb7312.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 define make-exe24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \25 $(LINK_OBJS) $(LINK_LIBS)26 $(NM) -g -n $(basename $@).exe > $(basename $@).num27 $(SIZE) $(basename $@).exe28 endef29 30 # Miscellaneous additions go here -
make/custom/ep1a.cfg
r44cc441 r6087a692 19 19 # optimize flag: typically -O2 20 20 CFLAGS_OPTIMIZE_V = -O2 -g 21 22 define make-exe23 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \24 $(LINK_OBJS) $(LINK_LIBS)25 $(NM) -g -n $@ > $(basename $@).num26 $(SIZE) $@27 endef28 29 # Miscellaneous additions go here -
make/custom/erc32.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \28 $(LINK_OBJS) $(LINK_LIBS) -Wl,-Map,$(basename $@).map29 $(NM) -g -n $(basename $@).exe > $(basename $@).num30 $(SIZE) $(basename $@).exe31 endef32 # Miscellaneous additions go here -
make/custom/gba.cfg
r44cc441 r6087a692 22 22 CFLAGS_OPTIMIZE_V = -O2 -g 23 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 26 -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \ 27 $(LINK_OBJS) $(LINK_LIBS) 28 $(OBJCOPY) -O binary $(basename $@).nxe $@ 24 # Some GBA simulators want a .gba extension. 25 define bsp-post-link 29 26 $(OBJCOPY) -O binary --remove-section=.comment \ 30 27 --remove-section=.note --strip-unneeded \ 31 $(basename $@).nxe $(basename $@).gba 32 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 33 $(SIZE) $(basename $@).nxe 28 $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 29 $(default-bsp-post-link) 34 30 endef 35 36 define make-cxx-exe37 $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \38 -Wl,-Map,$(basename $@).map -o $(basename $@).nxe \39 $(LINK_OBJS) $(LINK_LIBS)40 $(OBJCOPY) -O binary $(basename $@).nxe $@41 $(OBJCOPY) -O binary --remove-section=.comment \42 --remove-section=.note --strip-unneeded \43 $(basename $@).nxe $(basename $@).gba44 $(NM) -g -n $(basename $@).nxe > $(basename $@).num45 $(SIZE) $(basename $@).nxe46 endef47 48 # Miscellaneous additions go here -
make/custom/gen5200.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 22 22 23 # The following are definitions of make-exe which will work using ld as 24 # is currently required. 25 26 define make-exe 27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 28 -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \ 29 $(LINK_OBJS) $(LINK_LIBS) 30 $(NM) -g -n $(basename $@).exe > $(basename $@).num 31 $(SIZE) $(basename $@).exe 32 endef 33 34 # Miscellaneous additions go here 23 AM_LDFLAGS += -qnolinkcmds -T $(RTEMS_LINKCMDS) -
make/custom/gen68302.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \28 $(LINK_OBJS) $(LINK_LIBS)29 $(NM) -g -n $@ > $(basename $@).num30 $(SIZE) $@31 endef32 # Miscellaneous additions go here -
make/custom/gen68340.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \28 -o $@ $(LINK_OBJS) $(LINK_LIBS)29 $(NM) -g -n $@ > $(basename $@).num30 $(SIZE) $@31 endef32 33 # Miscellaneous additions go here -
make/custom/gen68360.cfg
r44cc441 r6087a692 28 28 # optimize flag: typically -O2 29 29 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 30 31 # The following are definitions of make-exe which will work using ld as32 # is currently required.33 34 define make-exe35 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \36 $(LINK_OBJS) $(LINK_LIBS)37 $(NM) -g -n $@ > $(basename $@).num38 $(SIZE) $@39 endef40 41 # Miscellaneous additions go here -
make/custom/gen68360_040.cfg
r44cc441 r6087a692 13 13 14 14 include $(RTEMS_ROOT)/make/custom/gen68360.cfg 15 -
make/custom/gen83xx.cfg
r44cc441 r6087a692 26 26 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 27 27 28 # The following are definitions of make-exe which will work using ld as 29 # is currently required. 30 31 define make-exe 32 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 33 -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \ 34 $(LINK_OBJS) $(LINK_LIBS) 35 $(NM) -g -n $(basename $@).exe > $(basename $@).num 36 $(SIZE) $(basename $@).exe 37 endef 38 39 define make-cxx-exe 40 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \ 41 -qnolinkcmds -T $(RTEMS_LINKCMDS) -o $(basename $@).exe \ 42 $(LINK_OBJS) $(LINK_LIBS) 43 $(NM) -g -n $(basename $@).exe > $(basename $@).num 44 $(SIZE) $(basename $@).exe 45 endef 46 47 # Miscellaneous additions go here 28 AM_LDFLAGS+= -qnolinkcmds -T $(RTEMS_LINKCMDS) -
make/custom/genmongoosev.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \28 $(LDLIBS) -o $@ \29 $(LINK_OBJS) $(LINK_LIBS)30 $(NM) -g -n $@ > $(basename $@).num31 $(SIZE) $@32 endef33 34 # Miscellaneous additions go here35 -
make/custom/gensh1.cfg
r44cc441 r6087a692 25 25 # optimize flag: typically -O2 26 26 CFLAGS_OPTIMIZE_V = -O2 -g 27 28 # The following are definitions of make-exe which will work using ld as29 # is currently required.30 31 define make-exe32 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \33 -Wl,-Map,$(basename $@).map \34 $(LDLIBS) -o $@ \35 $(LINK_OBJS) $(LINK_LIBS)36 $(NM) -g -n $@ > $(basename $@).num37 $(SIZE) $@38 endef39 40 # Miscellaneous additions go here -
make/custom/gensh2.cfg
r44cc441 r6087a692 25 25 # optimize flag: typically -O2 26 26 CFLAGS_OPTIMIZE_V = -O2 -g 27 28 # The following are definitions of make-exe which will work using ld as29 # is currently required.30 31 define make-exe32 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \33 $(LDLIBS) -o $@ \34 $(LINK_OBJS) $(LINK_LIBS)35 $(NM) -g -n $@ > $(basename $@).num36 $(SIZE) $@37 endef38 39 # Miscellaneous additions go here -
make/custom/gensh4.cfg
r44cc441 r6087a692 32 32 # optimize flag: typically -O2 33 33 CFLAGS_OPTIMIZE_V = -O2 -g 34 35 # The following are definitions of make-exe which will work using ld as36 # is currently required.37 38 define make-exe39 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \40 $(LDLIBS) -o $@ \41 $(LINK_OBJS) $(LINK_LIBS)42 $(NM) -g -n $@ > $(basename $@).num43 $(SIZE) $@44 endef45 46 # Miscellaneous additions go here -
make/custom/gp32.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 22 23 define make-exe 24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \ 25 $(LINK_OBJS) $(LINK_LIBS) 26 $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).nxe 27 $(NM) -g -n $(basename $@).exe > $(basename $@).num 28 $(SIZE) $(basename $@).exe 23 define bsp-post-link 24 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 25 $(default-bsp-post-link) 29 26 endef 30 31 define make-cxx-exe32 $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) -o $@ \33 $(LINK_OBJS) $(LINK_LIBS)34 $(OBJCOPY) -O binary $(basename $@).exe $(basename $@).nxe35 $(NM) -g -n $(basename $@).exe > $(basename $@).num36 $(SIZE) $(basename $@).exe37 endef38 39 # Miscellaneous additions go here -
make/custom/h8sim.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \28 $(LDLIBS) -o $@ \29 $(LINK_OBJS) $(LINK_LIBS)30 $(NM) -g -n $@ > $(basename $@).num31 $(SIZE) $@32 endef33 34 # Miscellaneous additions go here35 -
make/custom/hurricane.cfg
r44cc441 r6087a692 19 19 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 20 20 21 # The following are definitions of make-exe which will work using ld as 22 # is currently required. 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 26 -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS) 21 define bsp-post-link 27 22 $(OBJCOPY) -O srec $@ $(basename $@).srec1 28 $(PACKHEX) < $(basename $@).srec1 > $(basename $@) .srec23 $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT) 29 24 $(RM) $(basename $@).srec1 30 $(NM) -g -n $@ > $(basename $@).num 31 $(SIZE) $@ 25 $(default-bsp-post-link) 32 26 endef 33 34 # Miscellaneous additions go here35 -
make/custom/i386ex.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 22 23 # Something like this should produce a map file but this does not work. 24 25 # The following are definitions of make-exe which will work using ld as 26 # is currently required. 27 28 define make-exe 29 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 30 $(LINK_OBJS) $(LINK_LIBS) 31 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 23 define bsp-post-link 24 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 32 25 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 33 $(PACKHEX) > $(basename $@).exe 34 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 35 $(SIZE) $(basename $@).nxe 26 $(PACKHEX) > $(basename $@)$(DOWNEXT) 27 $(default-bsp-post-link) 36 28 endef 37 38 # Miscellaneous additions go here39 -
make/custom/idp.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 22 22 23 # The following are definitions of make-exe which will work using ld as 24 # is currently required. 25 26 define make-exe 27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 28 $(LINK_OBJS) $(LINK_LIBS) 29 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 23 define bsp-post-link 24 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 30 25 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 31 $(PACKHEX) > $(basename $@) .exe32 $(NM) -g -n $(basename $@).nxe > $(basename $@).num33 $( SIZE) $(basename $@).nxe26 $(PACKHEX) > $(basename $@)$(DOWNEXT) 27 rm -f $(basename $@).srec 28 $(default-bsp-post-link) 34 29 endef 35 36 # Miscellaneous additions go here -
make/custom/jmr3904.cfg
r44cc441 r6087a692 23 23 # optimize flag: typically -O2 24 24 CFLAGS_OPTIMIZE_V = -O2 -g 25 26 # The following are definitions of make-exe which will work using ld as27 # is currently required.28 29 define make-exe30 $(LINK.c) $(AM_CFLAGS) -G0 $(AM_LDFLAGS) \31 $(LDLIBS) -o $@ \32 $(LINK_OBJS) $(LINK_LIBS)33 $(NM) -g -n $@ > $(basename $@).num34 $(SIZE) $@35 endef36 37 # Miscellaneous additions go here38 -
make/custom/leon2.cfg
r44cc441 r6087a692 18 18 # optimize flag: typically -O2 19 19 CFLAGS_OPTIMIZE_V = -O2 -g 20 21 # The following are definitions of make-exe which will work using ld as22 # is currently required.23 24 define make-exe25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \26 $(LINK_OBJS) $(LINK_LIBS)27 $(NM) -g -n $(basename $@).exe > $(basename $@).num28 $(SIZE) $(basename $@).exe29 endef30 # Miscellaneous additions go here -
make/custom/leon3.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \28 $(LINK_OBJS) $(LINK_LIBS)29 $(NM) -g -n $(basename $@).exe > $(basename $@).num30 $(SIZE) $(basename $@).exe31 endef32 # Miscellaneous additions go here33 -
make/custom/mbx8xx.cfg
r44cc441 r6087a692 46 46 CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) -D$(RTEMS_MBX_MODEL) 47 47 48 49 48 # optimize flag: typically -O2 50 49 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 51 52 define make-exe53 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \54 -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)55 $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm56 cp $(basename $@)_sym.exe $(basename $@).exe57 $(STRIP) $(basename $@).exe58 $(SIZE) $(basename $@)_sym.exe59 endef60 61 # Miscellaneous additions go here62 50 63 51 # Override default start file 64 52 START_BASE= 65 53 54 AM_LDFLAGS += $(MBX8xx_LDFLAGS) 55 56 define bsp-post-link 57 cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 58 $(STRIP) $(basename $@)$(DOWNEXT) 59 $(default-bsp-post-link) 60 endef -
make/custom/mcf5206elite.cfg
r44cc441 r6087a692 21 21 # optimize flag: typically -O2 22 22 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 23 24 # The following are definitions of make-exe which will work using ld as25 # is currently required.26 27 define make-exe28 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \29 $(LINK_OBJS) $(LINK_LIBS)30 $(NM) -g -n $@ > $(basename $@).num31 $(SIZE) $@32 endef33 34 # Miscellaneous additions go here -
make/custom/mcf5235.cfg
r44cc441 r6087a692 21 21 CPU_CFLAGS = -m528x 22 22 23 24 23 # optimize flag: typically -O2 25 24 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 26 27 25 28 26 ifndef MTARGET … … 30 28 endif 31 29 32 # Th e following are definitions of make-exe which will work using ld as30 # This defines the operations performed on the linked executable. 33 31 # is currently required. 34 35 define bsp-link-c36 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \37 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)38 endef39 40 define bsp-link-cxx41 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \42 -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)43 endef44 45 32 define bsp-post-link 46 $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) $(basename $@).nxe 33 $(OBJCOPY) -O binary --strip-all \ 34 $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 47 35 $(SIZE) $(basename $@)$(EXEEXT) 48 36 endef 49 50 define make-exe51 $(bsp-link-c)52 $(bsp-post-link)53 endef54 55 define make-cxx-exe56 $(bsp-link-cxx)57 $(bsp-post-link)58 endef59 60 # Miscellaneous additions go here -
make/custom/mcp750.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align 22 22 23 define make-exe 24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 25 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 26 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 27 $(SIZE) $(basename $@).nxe 28 $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems 23 define bsp-post-link 24 $(default-bsp-post-link) 25 $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems 29 26 gzip -vf9 rtems 30 $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ 31 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 32 -Map $(basename $@).map && chmod 755 $@ 27 $(LD) -o $(basename $@)$(DOWNEXT) \ 28 $ $(PROJECT_RELEASE)/lib/bootloader.o \ 29 --just-symbols=$(basename $@)$(EXEEXT) \ 30 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 31 -Map $(basename $@).map && chmod 755 $@ 33 32 rm -f rtems.gz 34 33 endef 35 36 # Miscellaneous additions go here -
make/custom/mpc8260ads.cfg
r44cc441 r6087a692 22 22 # optimize flag: typically -O2 23 23 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 24 25 # The following are definitions of make-exe which will work using ld as26 # is currently required.27 28 define make-exe29 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \30 $(LINK_OBJS) $(LINK_LIBS)31 $(NM) -g -n $@ > $(basename $@).num32 $(SIZE) $@33 endef34 35 # Miscellaneous additions go here -
make/custom/mrm332.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 21 21 22 # The following are definitions of make-exe which will work using ld as23 # is currently required.24 25 22 ifeq ($(MRM_IN_ROM),yes) 26 23 # Build a rommable image - move the .data section after the .text section … … 28 25 CPU_CFLAGS += -qnolinkcmds -T $(exec_prefix)/mrm332/lib/linkcmds_ROM 29 26 endif 30 31 # This is a good way to get debug information. The output file is large32 # though and greatly slows the build process so only do this if needed.33 # $(OBJDUMP) -dxC $(basename $@).nxe > $(basename $@).dump34 #35 # chrisj: This is questionable. Why not keep unstipped ELF files36 # about the use objdump and nm to get at the debug37 # information rather than subject everyone to this.38 #39 40 define bsp-link-c41 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \42 $(LINK_OBJS) $(LINK_LIBS)43 endef44 define bsp-link-cxx45 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)$(EXEEXT) \46 $(LINK_OBJS) $(LINK_LIBS)47 endef48 27 49 28 ifeq ($(MRM_IN_ROM),yes) … … 61 40 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 62 41 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 63 $(PACKHEX) > $(basename $@) .nxe42 $(PACKHEX) > $(basename $@)$(DOWNEXT) 64 43 $(NM) -g -n $(basename $@).pxe > $(basename $@).pnum 65 $(NM) -g -n $(basename $@).nxe > $(basename $@).num66 $( SIZE) $(basename $@)$(EXEEXT)44 rm -f $(basename $@).srec $(basename $@).srec 45 $(default-bsp-post-link) 67 46 endef 68 47 else 69 48 define bsp-post-link 70 49 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 71 # m68k-rtems-objdump -dxC $(basename $@).nxe > $(basename $@).dump72 50 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 73 $(PACKHEX) > $(basename $@) .nxe74 $(NM) -g -n $(basename $@)$(EXEEXT) > $(basename $@).num75 $( SIZE) $(basename $@)$(EXEEXT)51 $(PACKHEX) > $(basename $@)$(DOWNEXT) 52 rm -f $(basename $@).srec 53 $(default-bsp-post-link) 76 54 endef 77 55 endif 78 79 define make-exe80 $(bsp-link-c)81 $(bsp-post-link)82 endef83 84 define make-cxx-exe85 $(bsp-link-cxx)86 $(bsp-post-link)87 endef88 89 # Miscellaneous additions go here -
make/custom/mtx603e.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align 21 21 22 define make-exe 23 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 24 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 25 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 26 $(SIZE) $(basename $@).nxe 27 $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems 22 define bsp-post-link 23 $(default-bsp-post-link) 24 $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems 28 25 gzip -vf9 rtems 29 $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ 30 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 31 -Map $(basename $@).map && chmod 755 $@ 26 $(LD) -o $(basename $@)$(DOWNEXT) \ 27 $(PROJECT_RELEASE)/lib/bootloader.o \ 28 --just-symbols=$(basename $@)$(EXEEXT) \ 29 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 30 -Map $(basename $@).map && chmod 755 $@ 32 31 rm -f rtems.gz 33 32 endef -
make/custom/mvme136.cfg
r44cc441 r6087a692 22 22 CFLAGS_OPTIMIZE_V = -Os -g -fomit-frame-pointer -DNDEBUG 23 23 24 # The following are definitions of make-exe which will work using ld as 25 # is currently required. 24 define bsp-post-link 25 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 26 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 27 $(PACKHEX) > $(basename $@)$(DOWNEXT) 28 rm -f $(basename $@).srec 29 $(default-bsp-post-link) 30 endef 26 31 27 define make-exe28 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \29 $(LINK_OBJS) $(LINK_LIBS)30 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec31 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \32 $(PACKHEX) > $(basename $@).exe33 $(NM) -g -n $(basename $@).nxe > $(basename $@).num34 $(SIZE) $(basename $@).nxe35 endef36 # Miscellaneous additions go here37 -
make/custom/mvme147.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 21 21 22 # The following are definitions of make-exe which will work using ld as 23 # is currently required. 24 25 define make-exe 26 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 27 $(LINK_OBJS) $(LINK_LIBS) 28 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 22 define bsp-post-link 23 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).srec 29 24 sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 30 $(PACKHEX) > $(basename $@) .exe31 $(NM) -g -n $(basename $@).nxe > $(basename $@).num32 $( SIZE) $(basename $@).nxe25 $(PACKHEX) > $(basename $@)$(DOWNEXT) 26 rm -f $(basename $@).srec 27 $(default-bsp-post-link) 33 28 endef 34 # Miscellaneous additions go here35 -
make/custom/mvme162.cfg
r44cc441 r6087a692 24 24 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 25 25 26 # The following are definitions of make-exe which will work using ld as 27 # is currently required. 28 29 define make-exe 30 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 31 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 32 #$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 33 #sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 34 # $(PACKHEX) > $(basename $@).exe 35 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe 36 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 37 $(SIZE) $(basename $@).nxe 26 define bsp-post-link 27 $(default-bsp-post-link) 28 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 38 29 endef 39 40 # Miscellaneous additions go here41 30 42 31 # BSP-specific tools -
make/custom/mvme162lx.cfg
r44cc441 r6087a692 30 30 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 31 31 32 # The following are definitions of make-exe which will work using ld as 33 # is currently required. 34 35 define make-exe 36 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 37 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 38 #$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).srec 39 #sed -e 's/.$$//' -e '/^S0/d' $(basename $@).srec | \ 40 # $(PACKHEX) > $(basename $@).exe 41 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe 42 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 43 $(SIZE) $(basename $@).nxe 32 define bsp-post-link 33 $(default-bsp-post-link) 34 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 44 35 endef 45 46 # Miscellaneous additions go here47 36 48 37 # BSP-specific tools -
make/custom/mvme167.cfg
r44cc441 r6087a692 28 28 CFLAGS_OPTIMIZE_V = -O2 -g -fno-omit-frame-pointer 29 29 30 # Here is the rule to actually build a $(ARCH)/foo.exe31 # It also builds $(ARCH)/foo.nm32 # Usage ref: src/tests/sptest/sp1/Makefile33 #34 30 # We use TFTP to transfer files to the MVME167. We generate binary files 35 31 # rather than S-records. We skip the header during downloads. 36 37 # The following are definitions of make-exe which will work using ld as38 # is currently required.39 32 40 33 # The MC68040 does not implement all MC68881/MC68882 instructions, so use … … 48 41 # Floating-point support will then be limited. See the mvme167 README file 49 42 # for more details. 50 define make-exe 51 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \ 52 $(LINK_OBJS) $(LINK_LIBS) 53 $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm 54 cp $(basename $@)_sym.exe $(basename $@).exe 55 $(STRIP) $(basename $@).exe 56 $(SIZE) $(basename $@)_sym.exe 43 define bsp-post-link 44 $(default-bsp-post-link) 45 cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 46 $(STRIP) $(basename $@)$(DOWNEXT) 57 47 endef 58 59 # Miscellaneous additions go here -
make/custom/mvme2100.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -mmultiple -mstring -mstrict-align 21 21 22 define make-exe 23 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 24 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 25 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 26 $(SIZE) $(basename $@).nxe 27 $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems 22 define bsp-post-link 23 $(default-bsp-post-link) 24 $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems 28 25 gzip -vf9 rtems 29 $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ 30 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 31 -Map $(basename $@).map && chmod 755 $@ 26 $(LD) -o $(basename $@)$(DOWNEXT) \ 27 $(PROJECT_RELEASE)/lib/bootloader.o \ 28 --just-symbols=$(basename $@)$(EXEEXT) \ 29 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 30 -Map $(basename $@).map && chmod 755 $@ 32 31 rm -f rtems.gz 33 32 endef 34 35 define make-cxx-exe36 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \37 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)38 $(NM) -g -n $(basename $@).nxe > $(basename $@).num39 $(SIZE) $(basename $@).nxe40 $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems41 gzip -vf9 rtems42 $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \43 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \44 -Map $(basename $@).map && chmod 755 $@45 rm -f rtems.gz46 endef47 48 # Miscellaneous additions go here -
make/custom/mvme2307.cfg
r44cc441 r6087a692 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 22 23 define make-exe 24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 25 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 26 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 27 $(SIZE) $(basename $@).nxe 28 $(OBJCOPY) -O binary -R .comment -S $(basename $@).nxe rtems 23 define bsp-post-link 24 $(default-bsp-post-link) 25 $(OBJCOPY) -O binary -R .comment -S $(basename $@)$(EXEEXT) rtems 29 26 gzip -vf9 rtems 30 $(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \ 31 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 32 -Map $(basename $@).map && chmod 755 $@ 27 $(LD) -o $(basename $@)$(DOWNEXT) $(PROJECT_RELEASE)/lib/bootloader.o \ 28 --just-symbols=$(basename $@)$(EXEEXT) \ 29 -b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \ 30 -Map $(basename $@).map && chmod 755 $@ 33 31 rm -f rtems.gz 34 32 endef 35 33 36 # Miscellaneous additions go here37 38 34 # No start file 39 35 START_BASE= -
make/custom/mvme3100.cfg
r44cc441 r6087a692 29 29 CFLAGS_DEBUG_V = -O1 -g 30 30 31 define make-exe 32 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS) 33 $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num 34 $(SIZE) $(@:%.exe=%.nxe) 35 # test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin 36 $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe 37 endef 38 39 define make-cxx-exe 40 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(@:%.exe=%.nxe) $(LINK_OBJS) $(LINK_LIBS) 41 $(NM) -g -n $(@:%.exe=%.nxe) > $(basename $(@:%.exe=%.nxe)).num 42 $(SIZE) $(@:%.exe=%.nxe) 43 # test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin 44 $(OBJCOPY) -Obinary $(@:%.exe=%.nxe) $(@:%.exe=%)$(LIB_VARIANT).exe 45 endef 31 define bsp-post-link 32 $(default-bsp-post-link) 33 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 34 endif 46 35 47 36 # Miscellaneous additions go here -
make/custom/mvme5500.cfg
r44cc441 r6087a692 23 23 CFLAGS_OPTIMIZE_V = -O2 -g 24 24 25 define make-exe 26 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) 27 $(NM) -g -n $@ > $(basename $@).num 28 $(SIZE) $@ 29 $(OBJCOPY) -Obinary $@ $(@:%.exe=%)$(LIB_VARIANT).bin 25 define bsp-post-link 26 $(default-bsp-post-link) 27 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 30 28 endef 31 32 # Miscellaneous additions go here33 29 34 30 # No start file -
make/custom/nios2_iss.cfg
r44cc441 r6087a692 24 24 CFLAGS_OPTIMIZE_V = -O0 -g 25 25 26 # The following are definitions of make-exe which will work using ld as 27 # is currently required. 28 29 define make-exe 30 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 31 $(LINK_OBJS) $(LINK_LIBS) 32 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@ 33 $(SIZE) $(basename $@).nxe 26 define bsp-post-link 27 $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \ 28 -R entry -R exceptions $(basename $@)$(DOWNEXT) 29 $(default-bsp-post-link) 34 30 endef 35 define make-cxx-exe36 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \37 $(LINK_OBJS) $(LINK_LIBS)38 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe -R entry -R exceptions $@39 $(SIZE) $(basename $@).nxe40 endef41 42 # Miscellaneous additions go here -
make/custom/ods68302.cfg
r44cc441 r6087a692 28 28 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 29 29 30 # The following are definitions of make-exe which will work using ld as31 # is currently required.32 33 define make-exe34 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \35 -o $@ \36 $(LINK_OBJS) $(LINK_LIBS)37 $(NM) -g -n $@ > $(basename $@).num38 $(SIZE) $@39 endef40 41 # Miscellaneous additions go here42 43 30 ifeq ($(RTEMS_DEBUGGER),yes) 44 31 LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom -
make/custom/pc386.cfg
r44cc441 r6087a692 24 24 CFLAGS_OPTIMIZE_V = -O2 -g 25 25 26 # Here is the rule to actually build a $(ARCH)/foo .exe26 # Here is the rule to actually build a $(ARCH)/foo$(EXEEXT) 27 27 # It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm 28 28 # Usage ref: src/tests/sptest/sp1/Makefile … … 43 43 HEADERADDR=0x00097E00 44 44 45 # The following are definitions of make-exe which will work using ld as 46 # is currently required. 47 48 define bsp-link-c 49 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ 50 -o $(basename $@)$(EXEEXT) \ 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 45 AM_LDFLAGS+= -Wl,-Ttext,$(RELOCADDR) 59 46 60 47 define bsp-post-link 48 $(default-bsp-post-link) 61 49 $(OBJCOPY) -O elf32-i386 \ 62 50 --remove-section=.rodata \ … … 65 53 --strip-unneeded $(basename $@)$(EXEEXT) $(basename $@).nxe 66 54 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).bin 67 $(PROJECT_TOOLS)/bin2boot -v $(basename $@) .bt$(HEADERADDR)\55 $(PROJECT_TOOLS)/bin2boot -v $(basename $@)$(DOWNEXT) $(HEADERADDR)\ 68 56 $(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0 69 $(NM) -g -n $(basename $@)$(EXEEXT) > $(basename $@).num 70 $(SIZE) $(basename $@)$(EXEEXT) 71 # test -d ${PROJECT_RELEASE}/BootImgs \ 72 # || mkdir ${PROJECT_RELEASE}/BootImgs 73 # f=`basename $@ .exe`; \ 74 # cp $(basename $@).bt \ 75 # ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt \ 76 # && chmod 755 \ 77 # ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt 78 # $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \ 79 # -o $@ $(LINK_OBJS) $(LINK_LIBS) 57 rm -f $(basename $@).nxe 80 58 endef 81 82 define make-exe83 $(bsp-link-c)84 $(bsp-post-link)85 endef86 87 define make-cxx-exe88 $(bsp-link-cxx)89 $(bsp-post-link)90 endef91 92 # Miscellaneous additions go here93 59 94 60 # BSP-specific tools -
make/custom/posix.cfg
r44cc441 r6087a692 18 18 START_BASE= 19 19 20 # Here is the rule to actually build a $(ARCH)/foo .exe20 # Here is the rule to actually build a $(ARCH)/foo$(EXEEXT) 21 21 # It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm 22 22 # Usage ref: src/tests/sptest/sp1/Makefile -
make/custom/psim.cfg
r44cc441 r6087a692 21 21 # optimize flag: typically -O2 22 22 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 23 24 define make-exe25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \26 $(LINK_OBJS) $(LINK_LIBS)27 $(NM) -g -n $@ > $(basename $@).num28 $(SIZE) $@29 endef30 31 # Miscellaneous additions go here -
make/custom/rbtx4925.cfg
r44cc441 r6087a692 19 19 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 20 20 21 # The following are definitions of make-exe which will work using ld as 22 # is currently required. 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 26 -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS) 21 define bsp-post-link 27 22 $(OBJCOPY) -O srec $@ $(basename $@).srec1 28 $(PACKHEX) < $(basename $@).srec1 > $(basename $@) .srec23 $(PACKHEX) < $(basename $@).srec1 > $(basename $@)$(DOWNEXT) 29 24 $(RM) $(basename $@).srec1 30 $(NM) -g -n $@ > $(basename $@).num 31 $(SIZE) $@ 25 $(default-bsp-post-link) 32 26 endef 33 34 # Miscellaneous additions go here35 -
make/custom/rbtx4938.cfg
r44cc441 r6087a692 19 19 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 20 20 21 # The following are definitions of make-exe which will work using ld as 22 # is currently required. 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 26 -o $@ -Xlinker -Map -Xlinker $(basename $@).map $(LINK_OBJS) $(LINK_LIBS) 27 $(OBJCOPY) --srec-len=30 -O srec $@ $(basename $@).srec 21 define bsp-post-link 22 $(OBJCOPY) --srec-len=30 -O srec $@ $(basename $@)$(DOWNEXT) 23 $(default-bsp-post-link) 28 24 endef 29 30 # Miscellaneous additions go here31 -
make/custom/rtl22xx.cfg
r44cc441 r6087a692 23 23 # -O2 so far. 24 24 CFLAGS_OPTIMIZE_V = -Os -g -DNDEBUG 25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \28 $(LINK_OBJS) $(LINK_LIBS) -Wl,-Map,$(basename $@).map29 $(NM) -g -n $(basename $@).exe > $(basename $@).num30 $(SIZE) $(basename $@).exe31 endef32 33 # Miscellaneous additions go here -
make/custom/score603e.cfg
r44cc441 r6087a692 26 26 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 27 27 28 define make-exe 29 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 30 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 31 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 32 $(SIZE) $(basename $@).nxe 33 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).s1 28 define bsp-post-link 29 $(default-bsp-post-link) 30 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@).s1 34 31 sed -e 's/.$$//' $(basename $@).s1 | \ 35 $(PACKHEX) >$(basename $@) .exe32 $(PACKHEX) >$(basename $@)$(DOWNEXT) 36 33 rm -f $(basename $@).s1 37 34 endef 38 39 # Miscellaneous additions go here -
make/custom/shsim.cfg
r44cc441 r6087a692 20 20 # optimize flag: typically -O2 21 21 CFLAGS_OPTIMIZE_V = -O2 -g 22 23 # The following are definitions of make-exe which will work using ld as24 # is currently required.25 26 define make-exe27 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \28 $(LDLIBS) -o $@ \29 $(LINK_OBJS) $(LINK_LIBS)30 $(NM) -g -n $@ > $(basename $@).num31 $(SIZE) $@32 endef33 34 # Miscellaneous additions go here35 -
make/custom/sim68000.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 21 21 22 # The following are definitions of make-exe which will work using ld as 23 # is currently required. 24 25 define make-exe 26 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 27 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 28 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe 29 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 30 $(SIZE) $(basename $@).nxe 22 define bsp-post-link 23 $(default-bsp-post-link) 24 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 31 25 endef 32 # Miscellaneous additions go here -
make/custom/simcpu32.cfg
r44cc441 r6087a692 20 20 CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer 21 21 22 # The following are definitions of make-exe which will work using ld as 23 # is currently required. 24 25 define make-exe 26 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ 27 -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS) 28 $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe 29 $(NM) -g -n $@ > $(basename $@).num 30 $(SIZE) $@ 22 define bsp-post-link 23 $(default-bsp-post-link) 24 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 31 25 endef 32 33 # Miscellaneous additions go here -
make/custom/simsh4.cfg
r44cc441 r6087a692 29 29 CPU_CFLAGS = -m4 -ml 30 30 31 32 31 # optimize flag: typically -O2 33 32 CFLAGS_OPTIMIZE_V = -O2 -g 34 35 # The following are definitions of make-exe which will work using ld as36 # is currently required.37 38 define make-exe39 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \40 $(LDLIBS) -o $@ \41 $(LINK_OBJS) $(LINK_LIBS)42 $(NM) -g -n $@ > $(basename $@).num43 $(SIZE) $@44 endef45 46 # Miscellaneous additions go here -
make/custom/simsh7032.cfg
r44cc441 r6087a692 22 22 # optimize flag: typically -O2 23 23 CFLAGS_OPTIMIZE_V = -O2 -g 24 25 # Miscellaneous additions go here -
make/custom/simsh7045.cfg
r44cc441 r6087a692 22 22 # optimize flag: typically -O2 23 23 CFLAGS_OPTIMIZE_V = -O2 -g 24 25 # Miscellaneous additions go here -
make/custom/sis.cfg
r44cc441 r6087a692 6 6 7 7 include $(RTEMS_ROOT)/make/custom/erc32.cfg 8 -
make/custom/ss555.cfg
r44cc441 r6087a692 28 28 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 29 29 30 define make-exe 31 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(SS555_LDFLAGS) \ 32 -o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS) 33 $(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm 34 cp $(basename $@)_sym.exe $(basename $@).exe 35 $(STRIP) $(basename $@).exe 36 $(SIZE) $(basename $@)_sym.exe 30 define bsp-post-link 31 $(default-bsp-post-link) 32 cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 33 $(STRIP) $(basename $@)$(DOWNEXT) 37 34 endef 38 39 # Miscellaneous additions go here40 35 41 36 # Override default start file -
make/custom/ts_386ex.cfg
r44cc441 r6087a692 22 22 CFLAGS_OPTIMIZE_V = -O2 -g 23 23 24 define make-exe 25 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 26 $(LINK_OBJS) $(LINK_LIBS) 27 $(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe 28 $(NM) -g -n $(basename $@).nxe > $(basename $@).num 29 $(SIZE) $(basename $@).nxe 24 define bsp-post-link 25 $(default-bsp-post-link) 26 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 30 27 endef 31 32 # Miscellaneous additions go here33 -
make/custom/uC5282.cfg
r44cc441 r6087a692 18 18 CFLAGS_OPTIMIZE_V = -O2 -g 19 19 20 # The following are definitions of make-exe which will work using ld as 21 # is currently required. 22 23 define make-exe 24 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ 25 $(LINK_OBJS) $(LINK_LIBS) 26 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ 27 $(SIZE) $(basename $@).nxe 20 define bsp-post-link 21 $(default-bsp-post-link) 22 $(OBJCOPY) -O binary $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 28 23 endef 29 define make-cxx-exe30 $(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \31 $(LINK_OBJS) $(LINK_LIBS)32 $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@33 $(SIZE) $(basename $@).nxe34 endef35 36 # Miscellaneous additions go here -
make/custom/virtex.cfg
r44cc441 r6087a692 3 3 # 4 4 # $Id$ 5 #6 # this is derived from:7 #8 # Config file for a PowerPC 403 based helas403 card9 #10 # Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp11 #12 5 # 13 6 … … 30 23 CFLAGS_OPTIMIZE_V = -O2 -g -fno-keep-inline-functions 31 24 32 33 25 # No start file 34 26 START_BASE= 35 27 36 # The following are definitions of make-exe which will work using ld as 37 # is currently required. It is expected that as of gcc 2.8, the end user 38 # will be able to override parts of the compilers specs and link using gcc. 39 40 define make-exe 41 $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) 42 $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec 43 $(NM) -g -n $@ > $(basename $@).num 44 $(SIZE) $@ 28 define bsp-post-link 29 $(default-bsp-post-link) 30 $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) 45 31 endef 46 47 # $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec48 define make-cxx-exe49 $(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \50 -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)51 $(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec52 $(NM) -g -n $@ > $(basename $@).num53 $(SIZE) $@54 endef55 56 # Miscellaneous additions go here57
Note: See TracChangeset
for help on using the changeset viewer.