summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 08:28:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-01-18 08:28:54 +0000
commitc51004a089461e6f10106a7edf03a82b537b7795 (patch)
treeab9fcec26cbd13bdb8087cff42449391b866b3df
parentAdd comment on CFLAGS_OPTIMIZE_V. (diff)
downloadrtems-c51004a089461e6f10106a7edf03a82b537b7795.tar.bz2
Misc cleanups.
-rw-r--r--make/custom/Linux-posix.cfg2
-rw-r--r--make/custom/Solaris-posix.cfg2
-rw-r--r--make/custom/bare.cfg2
-rw-r--r--make/custom/c3xsim.cfg3
-rw-r--r--make/custom/c4xsim.cfg3
-rw-r--r--make/custom/csb360.cfg9
-rw-r--r--make/custom/erc32.cfg2
-rw-r--r--make/custom/erc32nfp.cfg2
-rw-r--r--make/custom/gen68340.cfg16
-rw-r--r--make/custom/gen68360.cfg5
-rw-r--r--make/custom/leon2.cfg7
-rw-r--r--make/custom/leon3.cfg6
-rw-r--r--make/custom/mcf5206elite.cfg5
-rw-r--r--make/custom/mvme147.cfg3
-rw-r--r--make/custom/nios2_iss.cfg5
-rw-r--r--make/custom/no_bsp.cfg8
-rw-r--r--make/custom/pc386dx.cfg3
-rw-r--r--make/custom/pc486.cfg8
-rw-r--r--make/custom/pc586.cfg8
-rw-r--r--make/custom/pc686.cfg8
-rw-r--r--make/custom/pck6.cfg6
-rw-r--r--make/custom/sim68000.cfg3
-rw-r--r--make/custom/simcpu32.cfg3
23 files changed, 54 insertions, 65 deletions
diff --git a/make/custom/Linux-posix.cfg b/make/custom/Linux-posix.cfg
index 5c9279ecc7..91e21283df 100644
--- a/make/custom/Linux-posix.cfg
+++ b/make/custom/Linux-posix.cfg
@@ -14,6 +14,8 @@ RTEMS_BSP_FAMILY=posix
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 = -D_BSD_SOURCE -D_POSIX_C_SOURCE
# optimize flag: typically -O2
diff --git a/make/custom/Solaris-posix.cfg b/make/custom/Solaris-posix.cfg
index 9ebe4cddb4..96d5d5e6ab 100644
--- a/make/custom/Solaris-posix.cfg
+++ b/make/custom/Solaris-posix.cfg
@@ -14,6 +14,8 @@ RTEMS_BSP_FAMILY=posix
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 += -Dsolaris2 -D__EXTENSIONS__
# optimize flag: typically -O2
diff --git a/make/custom/bare.cfg b/make/custom/bare.cfg
index f359005d5d..da33ae34a1 100644
--- a/make/custom/bare.cfg
+++ b/make/custom/bare.cfg
@@ -11,6 +11,8 @@ RTEMS_BSP=bare
RTEMS_CPU_MODEL=$(BARE_CPU_MODEL)
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS =$(BARE_CPU_CFLAGS)
include $(RTEMS_ROOT)/make/custom/default.cfg
diff --git a/make/custom/c3xsim.cfg b/make/custom/c3xsim.cfg
index 1fa5cfe722..22c41daf43 100644
--- a/make/custom/c3xsim.cfg
+++ b/make/custom/c3xsim.cfg
@@ -7,6 +7,9 @@
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU_MODEL=c32
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=32
# This is the actual bsp directory used during the build process.
diff --git a/make/custom/c4xsim.cfg b/make/custom/c4xsim.cfg
index 51f656d277..0a91abea1c 100644
--- a/make/custom/c4xsim.cfg
+++ b/make/custom/c4xsim.cfg
@@ -7,6 +7,9 @@
include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU_MODEL=c40
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=40 #-msmall
# This is the actual bsp directory used during the build process.
diff --git a/make/custom/csb360.cfg b/make/custom/csb360.cfg
index 9cb9bd7c5f..e3c118dcab 100644
--- a/make/custom/csb360.cfg
+++ b/make/custom/csb360.cfg
@@ -14,15 +14,12 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=csb360
-#
-# You must use versions of gcc and gas that support the -m5200 option.
-#
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -m5200
# optimize flag: typically -O2
-# It looks like any optimization level > 0 causes problems
-# with gcc-3.4.0. Until they are fixed, we'll use -O0
-CFLAGS_OPTIMIZE_V = -O0 -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V = -O2 -fomit-frame-pointer
# The following are definitions of make-exe which will work using ld as
# is currently required.
diff --git a/make/custom/erc32.cfg b/make/custom/erc32.cfg
index 99990454a0..4d99ebbcfb 100644
--- a/make/custom/erc32.cfg
+++ b/make/custom/erc32.cfg
@@ -13,6 +13,8 @@ RTEMS_CPU_MODEL=erc32
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=erc32
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=cypress
# optimize flag: typically -O2
diff --git a/make/custom/erc32nfp.cfg b/make/custom/erc32nfp.cfg
index 01acc1e412..0b33524b0f 100644
--- a/make/custom/erc32nfp.cfg
+++ b/make/custom/erc32nfp.cfg
@@ -14,6 +14,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=erc32
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
diff --git a/make/custom/gen68340.cfg b/make/custom/gen68340.cfg
index 92eb447ae0..1f75bd9fbc 100644
--- a/make/custom/gen68340.cfg
+++ b/make/custom/gen68340.cfg
@@ -13,6 +13,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen68340
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu32
# optimize flag: typically -O2
@@ -27,19 +29,5 @@ define make-exe
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
-# if you want to make a prom image
-# m68k-rtems-objcopy --adjust-section-vma \
-# .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
-# awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
-# for (p=digits; p>0; p--) \
-# s += (16^(p-1)) * ( index("0123456789ABCDEF",\
-# substr(x,1+digits-p,1)) -1 );\
-# return s } ;\
-# /\.text/ { base = $$4 ; size = $$3 };\
-# END { printf("0x%x", h2d(base) + h2d(size)) }'\
-# ` $(basename $@).exe
-# if you want to convert it to ieee
-# m68k-rtems-objcopy --output-target=ieee --debugging \
-# $(basename $@).exe $(basename $@).ieee
# Miscellaneous additions go here
diff --git a/make/custom/gen68360.cfg b/make/custom/gen68360.cfg
index ca947d3bfa..60d24c8478 100644
--- a/make/custom/gen68360.cfg
+++ b/make/custom/gen68360.cfg
@@ -17,9 +17,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen68360
-#
-# You must use versions of gcc and gas that support the -mcpu32 option.
-#
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
CPU_CFLAGS = -m68040
else
diff --git a/make/custom/leon2.cfg b/make/custom/leon2.cfg
index 0b0922ee2f..e53ca06c06 100644
--- a/make/custom/leon2.cfg
+++ b/make/custom/leon2.cfg
@@ -11,10 +11,8 @@ RTEMS_CPU_MODEL=leon2
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=leon2
-# This had been used with gcc-2.7.2
-# CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT)
-# -mcpu=cypress says to optimize for a Cypress 60x chipset
-#CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT)
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
@@ -30,4 +28,3 @@ define make-exe
$(SIZE) $(basename $@).exe
endef
# Miscellaneous additions go here
-
diff --git a/make/custom/leon3.cfg b/make/custom/leon3.cfg
index e24e8ec468..73a14d10cd 100644
--- a/make/custom/leon3.cfg
+++ b/make/custom/leon3.cfg
@@ -13,10 +13,8 @@ RTEMS_CPU_MODEL=leon3
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=leon3
-# This had been used with gcc-2.7.2
-# CPU_CFLAGS = -mno-v8 -mcypress $(MSOFT_FLOAT)
-# -mcpu=cypress says to optimize for a Cypress 60x chipset
-#CPU_CFLAGS = -mcpu=cypress $(MSOFT_FLOAT)
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
diff --git a/make/custom/mcf5206elite.cfg b/make/custom/mcf5206elite.cfg
index 42c297bcfe..2f5c61328e 100644
--- a/make/custom/mcf5206elite.cfg
+++ b/make/custom/mcf5206elite.cfg
@@ -14,9 +14,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mcf5206elite
-#
-# You must use versions of gcc and gas that support the -m5200 option.
-#
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -m5200
# optimize flag: typically -O2
diff --git a/make/custom/mvme147.cfg b/make/custom/mvme147.cfg
index dc1fd05237..c578a83bd2 100644
--- a/make/custom/mvme147.cfg
+++ b/make/custom/mvme147.cfg
@@ -12,7 +12,8 @@ RTEMS_CPU_MODEL=m68030
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme147
-# default flags
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS =
# optimize flag: typically -O2
diff --git a/make/custom/nios2_iss.cfg b/make/custom/nios2_iss.cfg
index c5e450f7fd..72cfc45f43 100644
--- a/make/custom/nios2_iss.cfg
+++ b/make/custom/nios2_iss.cfg
@@ -15,9 +15,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY = nios2_iss
-# "-Gx" tells gcc to put objects of up to x bytes into sections sdata/sbss
-# where they could be addressed using the global pointer gp. -G0 effectively
-# disables the use of gp.
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mno-hw-mul -mno-hw-div
# optimize flag: typically -O2
diff --git a/make/custom/no_bsp.cfg b/make/custom/no_bsp.cfg
index 3c196d8861..82f7434513 100644
--- a/make/custom/no_bsp.cfg
+++ b/make/custom/no_bsp.cfg
@@ -12,12 +12,4 @@ RTEMS_CPU_MODEL=no_cpu_model
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=no_bsp
-# Define this to yes if C++ is included in the development environment.
-# This requires that at least the GNU C++ compiler and libg++ be installed.
-#
-# Need "main" in BSP so can't link C++ sample test or you will get
-# duplicate symbol errors for main
-#
-HAS_CPLUSPLUS=no
-
# Miscellaneous additions go here
diff --git a/make/custom/pc386dx.cfg b/make/custom/pc386dx.cfg
index c74732afb4..2268eaecb2 100644
--- a/make/custom/pc386dx.cfg
+++ b/make/custom/pc386dx.cfg
@@ -5,6 +5,9 @@
#
RTEMS_CPU_MODEL=i386dx
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -msoft-float -mno-fp-ret-in-387
include $(RTEMS_ROOT)/make/custom/pc386.cfg
diff --git a/make/custom/pc486.cfg b/make/custom/pc486.cfg
index 43ec7896c0..e62187b180 100644
--- a/make/custom/pc486.cfg
+++ b/make/custom/pc486.cfg
@@ -5,11 +5,9 @@
#
RTEMS_CPU_MODEL=i486dx
-# gcc 2.95.x and 3.0
-#CPU_CFLAGS = -m486
-# gcc 3.1 and newer
-# CPU_CFLAGS = -mcpu=i486
-# gcc 4.0 and newer
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mtune=i486
include $(RTEMS_ROOT)/make/custom/pc386.cfg
diff --git a/make/custom/pc586.cfg b/make/custom/pc586.cfg
index 9c64f708a9..0959a4c3c0 100644
--- a/make/custom/pc586.cfg
+++ b/make/custom/pc586.cfg
@@ -5,11 +5,9 @@
#
RTEMS_CPU_MODEL=pentium
-# gcc 2.95.x and 3.0
-#CPU_CFLAGS = -mpentium
-# gcc 3.1 and newer
-# CPU_CFLAGS = -mcpu=pentium
-# gcc 4.0 and newer
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mtune=pentium
include $(RTEMS_ROOT)/make/custom/pc386.cfg
diff --git a/make/custom/pc686.cfg b/make/custom/pc686.cfg
index 4c66e28b8e..7c0d85d22a 100644
--- a/make/custom/pc686.cfg
+++ b/make/custom/pc686.cfg
@@ -5,11 +5,9 @@
#
RTEMS_CPU_MODEL=pentiumpro
-# gcc 2.95.x and 3.0
-#CPU_CFLAGS = -mpentiumpro
-# gcc 3.1 and newer
-# CPU_CFLAGS = -mcpu=pentiumpro
-# gcc 4.0 and newer
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mtune=pentiumpro
include $(RTEMS_ROOT)/make/custom/pc386.cfg
diff --git a/make/custom/pck6.cfg b/make/custom/pck6.cfg
index 7cfbfa8358..edbbeeb20f 100644
--- a/make/custom/pck6.cfg
+++ b/make/custom/pck6.cfg
@@ -5,9 +5,9 @@
#
RTEMS_CPU_MODEL=pentium
-# gcc 3.1 and newer
-# CPU_CFLAGS = -mcpu=k6
-# gcc 4.0 and newer
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mtune=k6
include $(RTEMS_ROOT)/make/custom/pc386.cfg
diff --git a/make/custom/sim68000.cfg b/make/custom/sim68000.cfg
index 63cd76d176..2b0d3abd04 100644
--- a/make/custom/sim68000.cfg
+++ b/make/custom/sim68000.cfg
@@ -8,6 +8,9 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68000
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -m68000
# This is the actual bsp directory used during the build process.
diff --git a/make/custom/simcpu32.cfg b/make/custom/simcpu32.cfg
index e0625ba8a6..489f6acd3f 100644
--- a/make/custom/simcpu32.cfg
+++ b/make/custom/simcpu32.cfg
@@ -8,6 +8,9 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=mcpu32
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu32
# This is the actual bsp directory used during the build process.