diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-04-28 19:51:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-04-28 19:51:00 +0000 |
commit | d554ca0bf9e1d7bdb2177934499e366c4ca684c3 (patch) | |
tree | 16089e9adfbced6dd5c85e21dbde48227f604b02 /make | |
parent | Temporarily disable libxdr until the complete patch is in. (diff) | |
download | rtems-d554ca0bf9e1d7bdb2177934499e366c4ca684c3.tar.bz2 |
Patch from John M. Mills <jmills@tga.com> to do some cleanup and use
-O4 at both debug and optimized levels. There is still a speed setting
problem but the sample tests run.
Diffstat (limited to 'make')
-rw-r--r-- | make/custom/gensh2.cfg | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/make/custom/gensh2.cfg b/make/custom/gensh2.cfg index ed83ed3946..09299bba6f 100644 --- a/make/custom/gensh2.cfg +++ b/make/custom/gensh2.cfg @@ -28,9 +28,12 @@ BSP_CPPFLAGS=-DHZ=$(HZ) # CPU_CFLAGS= -m2 -# debug flags: typically none, but we use -O1 as it produces better code - -CFLAGS_DEBUG_V = -O1 +# debug flags: opt. is needed to fit in RAM. '-O1' has shown bad side- +# effects by failing to set up some hardware I/O registers in +# c/src/lib/libbsp/sh/gensh2/startup/hw_init.c (and perhaps elsewhere), +# which prevented proper chip initialization and muted SCI1 output. +# CFLAGS_DEBUG_V = -O4 --save-temps +CFLAGS_DEBUG_V = -O4 -g # optimize flag: typically -0, could use -O4 or -fast # -O4 is ok for RTEMS @@ -52,8 +55,8 @@ CFLAGS_OPTIMIZE_V = -O4 # This switch compiles code to jump-start from FLASH, without a monitor # # START_HW_INIT -# This switch selects whether 'hw_initialize()' is called from -# 'start.S' or from 'bsp_start()' +# This switch selects whether 'early_hw_init()' is called from +# 'start.S'; 'bsp_hw_init()' is always called from 'bspstart.c' # define make-target-options @@ -61,7 +64,7 @@ define make-target-options @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ @echo "#define RTEMS_TEST_IO_STREAM 1" >>$@ @echo "/* #define STANDALONE_EVB 1 */" >>$@ - @echo "/* #define START_HW_INIT 1 */" >>$@ + @echo "#define START_HW_INIT 1" >>$@ @echo "/* #define RTEMS_DEBUG 1 */" >>$@ endef |