diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-20 21:22:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-20 21:22:27 +0000 |
commit | 8affb5a9ed3661f67c8394094df617d004a19334 (patch) | |
tree | 188819f5aeb0aa92c18e100032a0c44984a77fee /c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg | |
parent | 2010-08-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8affb5a9ed3661f67c8394094df617d004a19334.tar.bz2 |
2010-08-20 <yann.sionneau@telecom-sudparis.eu>
Add Milkymist BSP developed as part of GSOC 2010.
* ChangeLog, Makefile.am, README, bsp_specs, configure.ac,
preinstall.am, Documentation/uart.txt, include/.cvsignore,
include/bsp.h, include/system_conf.h, include/tm27.h,
make/custom/milkymist.cfg, startup/linkcmds: New files.
Diffstat (limited to 'c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg')
-rw-r--r-- | c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg b/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg new file mode 100644 index 0000000000..5571f7b113 --- /dev/null +++ b/c/src/lib/libbsp/lm32/milkymist/make/custom/milkymist.cfg @@ -0,0 +1,28 @@ +# +# Config file for the milkymist BSP +# + +# Choices for CPU_MODEL: +# tiny (no cache) +# standard (instruction cache) +# fast (instruction and data cache) + +RTEMS_CPU = lm32 +RTEMS_CPU_MODEL = lm32 + +include $(RTEMS_ROOT)/make/custom/default.cfg + +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +CPU_CFLAGS = -mbarrel-shift-enabled -mmultiply-enabled \ + -mdivide-enabled -msign-extend-enabled + +# optimize flag: typically -O2 +# ATM, doesn't work with optimization levels > 0 +CFLAGS_OPTIMIZE_V = -O2 -g + +define bsp-post-link + $(OBJCOPY) -O binary --strip-all $(basename $@).exe \ + -R entry -R exceptions $(basename $@)$(DOWNEXT) + $(default-bsp-post-link) +endef |