Patch rtems-rc-19990709-6-diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>

applied.  This modified many Makefiles and custom files and makes many more
settings (network, multiprocessing, etc) gnerated by autoconf.
This commit is contained in:
Joel Sherrill
1999-08-06 17:55:25 +00:00
parent 22544db9d8
commit 3a8915e6ee
252 changed files with 5494 additions and 2496 deletions

View File

@@ -6,9 +6,7 @@ AUTOMAKE_OPTIONS = foreign 1.4
EXTRA_DIST = \
Makefile.dir \
Makefile.inc.in \
Makefile.leaf \
Makefile.lib
# -------------------------------------------------------
include $(top_srcdir)/automake/local.am

View File

@@ -87,7 +87,7 @@ target_subdirs = @target_subdirs@
AUTOMAKE_OPTIONS = foreign 1.4
EXTRA_DIST = Makefile.dir Makefile.inc.in Makefile.leaf Makefile.lib
EXTRA_DIST = Makefile.dir Makefile.leaf Makefile.lib
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
@@ -208,8 +208,6 @@ depend-am:
depend: depend-am
.PHONY: depend depend-am
# -------------------------------------------------------
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -1,48 +0,0 @@
#
#
# Target specific settings. To be included in application Makefiles.
#
prefix = @prefix@
CC_FOR_TARGET = @program_prefix@gcc
AS_FOR_TARGET = @program_prefix@as
AR_FOR_TARGET = @program_prefix@ar
NM_FOR_TARGET = @program_prefix@nm
LD_FOR_TARGET = @program_prefix@ld
SIZE_FOR_TARGET = @program_prefix@size
OBJCOPY_FOR_TARGET = @program_prefix@objcopy
CC= $(CC_FOR_TARGET)
AS= $(AS_FOR_TARGET)
LD= $(LD_FOR_TARGET)
NM= $(NM_FOR_TARGET)
AR= $(AR_FOR_TARGET)
SIZE= $(SIZE_FOR_TARGET)
OBJCOPY= $(OBJCOPY_FOR_TARGET)
export CC
export AS
export LD
export NM
export AR
export SIZE
export OBJCOPY
RTEMS_HOST = @RTEMS_HOST@
RTEMS_CUSTOM = $(prefix)/make/custom/$(RTEMS_BSP).cfg
PROJECT_ROOT = $(prefix)/
RTEMS_USE_OWN_PDIR = no
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
export RTEMS_BSP
export RTEMS_CUSTOM
export PROJECT_ROOT
# FIXME: The following shouldn't be here
RTEMS_ROOT = $(PROJECT_ROOT)
export RTEMS_ROOT

View File

@@ -87,10 +87,7 @@ endif
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
HAS_CPLUSPLUS=yes
CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
else
HAS_CPLUSPLUS=no
endif
# debug flag;
@@ -287,15 +284,13 @@ endif
LINK_OBJS =\
$(CONSTRUCTOR) \
$(OBJS) \
$(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \
$(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA)
$(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel)
LINK_FILES =\
$(START_FILE) \
$(CONSTRUCTOR) \
$(OBJS) \
$(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \
$(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) \
$(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA)
ifeq ($(RTEMS_USE_GCC272),yes)

View File

@@ -26,18 +26,10 @@ LIBC_DEFINES += -DHEAPSPACE_MB=1
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
HAS_CPLUSPLUS=yes
ifeq ($(HAS_CPLUSPLUS),yes)
CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
endif
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This target does NOT support the POSIX API.
HAS_POSIX_API=no
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2

View File

@@ -33,13 +33,6 @@ LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This target does NOT support the POSIX API.
HAS_POSIX_API=no
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2

View File

@@ -27,18 +27,10 @@ LIBC_DEFINES += -DHEAPSPACE_MB=1
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
HAS_CPLUSPLUS=yes
ifeq ($(HAS_CPLUSPLUS),yes)
CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
endif
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This target does NOT support the POSIX API.
HAS_POSIX_API=no
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2

View File

@@ -25,18 +25,10 @@ DEFINES += -D__EXTENSIONS__ -Dsolaris2
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
HAS_CPLUSPLUS=yes
ifeq ($(HAS_CPLUSPLUS),yes)
CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
endif
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This target does NOT support the POSIX API.
HAS_POSIX_API=no
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2

View File

@@ -25,10 +25,6 @@ CPU_CFLAGS=-mca
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -40,34 +40,6 @@ CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
## GCC specs extension file location
RTEMS_BSP_SPECS = $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/bsp_specs
## LIBC support
## Specify the one you want here and fill in the blanks.
## Currently CYGNUS newlib is supported.
## NOTE: RTEMS libcsupport.a includes RTEMS versions of stuff like
## malloc, gettimeofday, etc.
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
HAS_CPLUSPLUS=yes
else
HAS_CPLUSPLUS=no
endif
# Define this to yes if this target wants the TCP/IP stack
ifeq ($(RTEMS_HAS_NETWORKING),yes)
HAS_NETWORKING=yes
else
HAS_NETWORKING=no
endif
# Define this to yes if this target wants the posix api
ifeq ($(RTEMS_HAS_POSIX_API),yes)
HAS_POSIX_API=yes
else
HAS_POSIX_API=no
endif
# Base name of start file
START_BASE=start

View File

@@ -23,10 +23,6 @@ CPU_CFLAGS =
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)
# if defined asserts do not generate code. This is commonly used

View File

@@ -19,10 +19,6 @@ CPU_CFLAGS = -mcpu32
# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# Override default start file
START_BASE=start332

View File

@@ -21,10 +21,6 @@ CPU_CFLAGS = -m68000 -msoft-float
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# Override default start file
START_BASE=start68k

View File

@@ -22,10 +22,6 @@ CPU_CFLAGS =
# -fomit-frame-pointer breaks debugging and C++ exceptions
CFLAGS_OPTIMIZE_V=-O4
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -22,10 +22,6 @@ CPU_CFLAGS=-m68302 -msoft-float
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -24,10 +24,6 @@ RTEMS_BSP_FAMILY=gensh1
#
CPU_CFLAGS=-m1
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# debug flags: typically none, but we use -O1 as it produces better code
CFLAGS_DEBUG_V = -O1

View File

@@ -54,10 +54,6 @@ endif # i486dx
# -fomit-frame-pointer breaks debugging and C++ exceptions
CFLAGS_OPTIMIZE_V=-O4
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# Base name of start file
# go32 does not use the rtems start file
START_BASE=

View File

@@ -22,10 +22,6 @@ RTEMS_BSP_FAMILY=helas403
#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
# -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -12,10 +12,6 @@ RTEMS_CPU_MODEL=m68ec040
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=idp
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -22,10 +22,6 @@ CPU_CFLAGS =
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -19,10 +19,6 @@ CPU_CFLAGS=
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -42,10 +42,6 @@ endif # mc68lc040
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -23,10 +23,6 @@ CPU_CFLAGS = -m68040
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# This target does NOT support the TCP/IP stack (yet) so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)
# if defined asserts do not generate code. This is commonly used

View File

@@ -20,8 +20,4 @@ RTEMS_BSP_FAMILY=no_bsp
#
HAS_CPLUSPLUS=no
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# Miscellaneous additions go here

View File

@@ -33,10 +33,6 @@ CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
# debugging please
CFLAGS_DEBUG_V+=-g
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# 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.
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)

View File

@@ -14,10 +14,6 @@ CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=p4000
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -21,10 +21,6 @@ START_BASE=idt_csu
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -20,10 +20,6 @@ START_BASE=idt_csu
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -16,10 +16,6 @@ RTEMS_BSP_FAMILY=papyrus
#CPU_DEFINES=-DPPC_ABI=PPC_ABI_POWEROPEN \
# -DPPC_ASM=PPC_ASM_ELF -DPPC_VECTOR_FILE_BASE=0x0100
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This section makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -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=
# This section makes the target dependent options file.
# 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.
# 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 make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
@echo "/* #define RTEMS_DEBUG 1 */" >>$@
endef
# Define this to yes if this target wants the posix api
HAS_POSIX_API=no
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

View File

@@ -79,10 +79,6 @@ CPU_CFLAGS = -mcpu=603
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
# This target does not support the TCP/IP stack so ignore requests
# to enable it.
# HAS_NETWORKING=no
# The following is a linkcmds file which will work without using the
# -specs system in gcc 2.8.
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \

View File

@@ -120,10 +120,6 @@ CPU_CFLAGS = -mcpu=603
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
# CFLAGS_OPTIMIZE_V=-O0
# This target does not support the ka9q tcp/ip stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# The following is a linkcmds file which will work without using the
# -specs system in gcc 2.8.
# $(LD) $(XLDFLAGS) -T $(LINKCMDS) \

View File

@@ -35,10 +35,6 @@ CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall -ansi -fasm -mgas
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
# This target does NOT support the TCP/IP stack so ignore requests
# to enable it.
HAS_NETWORKING=no
# This makes the target dependent options file.
# NDEBUG (C library)

View File

@@ -47,11 +47,6 @@ GCCSED = @GCCSED@
# reliable but late model ksh's are usually OK.
KSH=@KSH@
#
# RCS support
#
RCS_CLEAN=$(PROJECT_BIN)/rcs-clean
#
# Rule to install a shell script with the proper shell to run it.
#

View File

@@ -6,10 +6,6 @@
# Make(1) configuration file include'd by all leaf-node Makefiles
#
# get most stuff done
# include $(RTEMS_ROOT)/make/main.cfg
#
# list of all known managers
# This list is used, along with $(MANAGERS) (set by app makefile)
@@ -112,7 +108,6 @@ LIBSUFFIX_VA = $(LIB_VARIANT).a
clean-am: clean-generic
-$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND)
-$(RM) -r $(VARIANTS)
# -$(RM) -r $(IMPORT_SOURCE)
distclean-am: distclean-generic clean-am
-$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND)