5
Rev | Line | |
---|
[5c91615e] | 1 | # |
---|
| 2 | # Config file for a PowerPC 405 based card |
---|
| 3 | # mhamel |
---|
| 4 | # |
---|
| 5 | |
---|
| 6 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
| 7 | |
---|
| 8 | RTEMS_CPU=powerpc |
---|
| 9 | |
---|
| 10 | # This contains the compiler options necessary to select the CPU model |
---|
| 11 | # and (hopefully) optimize for it. |
---|
| 12 | # |
---|
[01da0ac] | 13 | CPU_CFLAGS = -mcpu=405 |
---|
[5c91615e] | 14 | |
---|
| 15 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 16 | # -O4 is ok for RTEMS |
---|
| 17 | # NOTE: some level of -O may be actually required by inline assembler |
---|
| 18 | CFLAGS_OPTIMIZE_V = -O1 -g |
---|
[4e98ffa0] | 19 | |
---|
[c5ce9c3c] | 20 | # FIXME: Disabled because linkcmds lacks proper KEEP() directives. See #2561. |
---|
| 21 | # The following two lines enable compiling and linking on per element. |
---|
| 22 | # CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections |
---|
| 23 | # LDFLAGS = -Wl,--gc-sections |
---|
[5c91615e] | 24 | |
---|
| 25 | define bsp-post-link |
---|
| 26 | $(default-bsp-post-link) |
---|
[efdda565] | 27 | $(OBJCOPY) -O srec $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) |
---|
[5c91615e] | 28 | endef |
---|
Note: See
TracBrowser
for help on using the repository browser.