summaryrefslogtreecommitdiffstats
path: root/make/custom/portsw.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/custom/portsw.cfg')
-rw-r--r--make/custom/portsw.cfg75
1 files changed, 38 insertions, 37 deletions
diff --git a/make/custom/portsw.cfg b/make/custom/portsw.cfg
index e65ead7118..8d499f56df 100644
--- a/make/custom/portsw.cfg
+++ b/make/custom/portsw.cfg
@@ -4,9 +4,9 @@
# $Id$
#
-# Specify here the host and target "architectures"
-HOST_ARCH=o-$(RTEMS_HOST)
-TARGET_ARCH=o-$(RTEMS_BSP)
+# Note: This file is broken for sure
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=a29k
RTEMS_CPU_MODEL=a29205
@@ -14,42 +14,43 @@ RTEMS_CPU_MODEL=a29205
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=portsw
-# use the inline functions instead of the macros
-# ref: src/exec/generic/Makefile
-# Need INLINE_UPCASE set to uppercase value of INLINE variable
-# ref: make/compilers/gcc-force386.cfg
-INLINE=macros
-INLINE_UPCASE=
-
-# The makefiles all use PROJECT_xxx for variables.
-# Ie: $(PROJECT_RELEASE) is the install point.
-# Externally, we think of these as "RTEMS" variables.
-# Here is where we convert from RTEMS forms to PROJECT forms
-# See also make/main.cfg, which derives some more.
-PROJECT_ROOT=$(RTEMS_ROOT)/c
-
-# HOST Compiler config file
-# You may also want to specify where the compiler resides here.
-CC_$(HOST_ARCH)_DIR=$(RTEMS_GNUTOOLS_HOST)
-CONFIG.$(HOST_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc.cfg
-
-## Target compiler config file, if any
-CC_$(TARGET_ARCH)_DIR=$(RTEMS_GNUTOOLS)
-CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-$(RTEMS_BSP).cfg
-
-# 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.
+# This section makes the target dependent options file.
+
+# NDEBUG (C library)
+# if defined asserts do not generate code. This is commonly used
+# as a command line option.
#
-# Need "main" in BSP so can't link C++ sample test or you will get
-# duplicate symbol errors for main
+# RTEMS_TEST_NO_PAUSE (RTEMS tests)
+# do not pause between screens of output in the rtems tests
+#
+# RTEMS_DEBUG (RTEMS)
+# If defined, debug checks in RTEMS and support library code are enabled.
#
-HAS_CPLUSPLUS=no
-
-# This target does NOT support the TCP/IP stack so ignore requests
-# to enable it.
-HAS_NETWORKING=no
-# Define this to yes if this target wants the posix api
-HAS_POSIX_API=no
+define make-target-options
+ @echo "/* #define NDEBUG 1 */ " >>$@
+ @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
+ @echo "/* #define RTEMS_DEBUG 1 */" >>$@
+endef
+
+
+ifeq ($(RTEMS_USE_GCC272),yes)
+define make-exe
+ $(LD) $(LDFLAGS) -N -e _start \
+ -T$(PROJECT_RELEASE)/lib/linkcmds\
+ -o $(basename $@).exe \
+ $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
+ $(NM) -n $(basename $@).exe > $(basename $@).num
+ $(SIZE) $(basename $@).exe
+endef
+else
+define make-exe
+ $(CC) $(CPPFLAGS) -Wl,-Map,$(basename $@).map \
+ $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).exe \
+ $(LINK_OBJS) $(LINK_LIBS)
+ $(NM) -n $(basename $@).exe > $(basename $@).num
+ $(SIZE) $(basename $@).exe
+endef
+endif
# Miscellaneous additions go here