OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/rtems-20020807/make
    from Rev 1028 to Rev 1765
    Reverse comparison

Rev 1028 → Rev 1765

/custom/Makefile.in
0,0 → 1,288
# Makefile.in generated by automake 1.6.2 from Makefile.am.
# @configure_input@
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
 
@SET_MAKE@
SHELL = @SHELL@
 
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
 
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
 
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
 
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
 
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AWK = @AWK@
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
BARE_CPU_MODEL = @BARE_CPU_MODEL@
BUILD_SUBDIRS = @BUILD_SUBDIRS@
DEPDIR = @DEPDIR@
ENDIF = @ENDIF@
GCC_SPECS = @GCC_SPECS@
HAS_NETWORKING = @HAS_NETWORKING@
HAS_RDBG = @HAS_RDBG@
HOST_SUBDIRS = @HOST_SUBDIRS@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
MAINT = @MAINT@
MAKE = @MAKE@
PACKAGE = @PACKAGE@
PACKHEX = @PACKHEX@
PROJECT_INCLUDE = @PROJECT_INCLUDE@
PROJECT_RELEASE = @PROJECT_RELEASE@
PROJECT_ROOT = @PROJECT_ROOT@
PROJECT_TOPdir = @PROJECT_TOPdir@
RTEMS_BSP = @RTEMS_BSP@
RTEMS_BSP_SPECS = @RTEMS_BSP_SPECS@
RTEMS_CPU = @RTEMS_CPU@
RTEMS_HAS_ITRON_API = @RTEMS_HAS_ITRON_API@
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
RTEMS_ROOT = @RTEMS_ROOT@
RTEMS_TOPdir = @RTEMS_TOPdir@
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
STRIP = @STRIP@
TARGET_SUBDIRS = @TARGET_SUBDIRS@
VERSION = @VERSION@
am__include = @am__include@
am__quote = @am__quote@
bsplibdir = @bsplibdir@
build_configdirs = @build_configdirs@
buildargs = @buildargs@
hostargs = @hostargs@
install_sh = @install_sh@
targetargs = @targetargs@
 
rtems_makedir = $(prefix)/make
rtems_make_customdir = $(rtems_makedir)/custom
 
rtems_make_custom_DATA = default.cfg
 
EXTRA_DIST = Cygwin-posix.cfg FreeBSD-posix.cfg HPUX9-posix.cfg \
Linux-posix.cfg Solaris-posix.cfg bare.cfg cvme961.cfg dmv152.cfg \
dmv177.cfg efi332.cfg efi68k.cfg erc32.cfg erc32nfp.cfg eth_comm.cfg \
gen68302.cfg gen68340.cfg gen68360.cfg gen68360_040.cfg gensh1.cfg \
helas403.cfg i386ex.cfg idp.cfg jmr3904.cfg leon1.cfg leon2.cfg \
mcp750.cfg mvme136.cfg mvme147.cfg mvme147s.cfg \
mvme162.cfg mvme162lx.cfg mvme167.cfg mvme2307.cfg no_bsp.cfg \
ods68302.cfg p4000.cfg p4600.cfg p4650.cfg pc386.cfg \
portsw.cfg posix.cfg ppcn_60x.cfg psim.cfg score603e.cfg shsim.cfg \
simhppa.cfg ts_386ex.cfg
 
subdir = make/custom
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DATA = $(rtems_make_custom_DATA)
 
DIST_COMMON = Makefile.am Makefile.in
all: all-am
 
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/automake/host.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign make/custom/Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
uninstall-info-am:
rtems_make_customDATA_INSTALL = $(INSTALL_DATA)
install-rtems_make_customDATA: $(rtems_make_custom_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
@list='$(rtems_make_custom_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(rtems_make_customDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_make_customdir)/$$f"; \
$(rtems_make_customDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_make_customdir)/$$f; \
done
 
uninstall-rtems_make_customDATA:
@$(NORMAL_UNINSTALL)
@list='$(rtems_make_custom_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(rtems_make_customdir)/$$f"; \
rm -f $(DESTDIR)$(rtems_make_customdir)/$$f; \
done
tags: TAGS
TAGS:
 
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
 
installdirs:
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
 
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
 
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
 
clean-generic:
 
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
 
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
 
clean-am: clean-generic mostlyclean-am
 
distclean: distclean-am
 
distclean-am: clean-am distclean-generic
 
dvi: dvi-am
 
dvi-am:
 
info: info-am
 
info-am:
 
install-data-am: install-rtems_make_customDATA
 
install-exec-am:
 
install-info: install-info-am
 
install-man:
 
installcheck-am:
 
maintainer-clean: maintainer-clean-am
 
maintainer-clean-am: distclean-am maintainer-clean-generic
 
mostlyclean: mostlyclean-am
 
mostlyclean-am: mostlyclean-generic
 
uninstall-am: uninstall-info-am uninstall-rtems_make_customDATA
 
.PHONY: all all-am check check-am clean clean-generic distclean \
distclean-generic distdir dvi dvi-am info info-am install \
install-am install-data install-data-am install-exec \
install-exec-am install-info install-info-am install-man \
install-rtems_make_customDATA install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
uninstall uninstall-am uninstall-info-am \
uninstall-rtems_make_customDATA
 
 
debug:
@echo
@echo "\"make debug\" is obsolete, instead use:"
@echo " make VARIANT=DEBUG"
@echo
 
.PHONY: debug
 
profile:
@echo
@echo "\"make profile\" is obsolete, instead use:"
@echo " make VARIANT=PROFILE"
@echo
 
preinstall-am: $(PREINSTALL_FILES)
preinstall: preinstall-am
.PHONY: preinstall preinstall-am
 
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:
/custom/vegaplus.cfg
0,0 → 1,50
#
# Config file for VEGAPLUS ARM BOARD --
#
# vegaplus.cfg,v 1.6 2002/08/07 06:13:46 ralf Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=arm
RTEMS_CPU_MODEL=arm7tdmi
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=vegaplus
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
#CPU_CFLAGS = -mcpu=arm7tdmi
CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE2: some level of -O may be actually required by inline assembler (at least
# -O2 so far.
CFLAGS_OPTIMIZE_V=
#CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
 
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1
#CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-static -Wl,-Map,$(basename $@).map -o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary \
--only-section=.text \
--only-section=.data \
--only-section=.rodata \
--strip-unneeded $(basename $@).obj $(basename $@).exe
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
# test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
# f=`basename $@ .exe`; \
# cp $(basename $@).bin $(basename $@).exe
# cp $(basename $@).bin ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
endef
 
# Miscellaneous additions go here
/custom/efi332.cfg
0,0 → 1,36
#
# Config file for the efi332 BSP
#
# efi332.cfg,v 1.21 2002/08/06 20:15:43 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68332
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=efi332
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu32
 
# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
/custom/ppcn_60x.cfg
0,0 → 1,36
#
# Config file for a Radstone Technology Plc. PowerPC 60x based VME board
#
# $Id: ppcn_60x.cfg
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc603e
 
# This is the actual bsp directory used during the build process.
 
RTEMS_BSP_FAMILY=ppcn_60x
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603e -D_OLD_EXCEPTIONS -Dppc603e
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O0 -fno-keep-inline-functions -fvolatile-global -fvolatile
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
 
# Miscellaneous additions go here
 
DRIVER_ARCHITECTURE=vmebus
/custom/simsh7032.cfg
0,0 → 1,30
#
# simsh7032.cfg
#
# default configuration for gdb-simulation of Hitachi sh7032 processors
#
# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
#
# simsh7032.cfg,v 1.1 2001/01/22 14:03:44 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/shsim.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7032
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-m1
 
# debug flags: typically none, but we use -O1 as it produces better code
# CFLAGS_DEBUG_V = -O1
CFLAGS_DEBUG_V =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# Miscellaneous additions go here
/custom/mvme147.cfg
0,0 → 1,36
#
# Config file for the mvme147 BSP
#
# mvme147.cfg,v 1.16 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68030
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme147
 
# default flags
CPU_CFLAGS=
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
# Miscellaneous additions go here
 
/custom/gen405.cfg
0,0 → 1,56
#
# Config file for a generic PowerPC 405 based card
#
# gen405.cfg,v 1.6 2002/04/18 13:07:35 joel Exp
#
# this is derived from:
#
# Config file for a PowerPC 403 based helas403 card
#
# Id: helas403.cfg,v 1.8 2000/07/13 15:05:38 joel Exp
#
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc405
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen405
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -g
 
 
# No start file
START_BASE=
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# $(OBJCOPY) -O srec --srec-len 120 $(basename $@).exe $(basename $@).srec
define make-cxx-exe
$(LINK.c) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/gen68360_040.cfg
0,0 → 1,15
#
# Configuration file for a 68040 using the 68360 in companion mode
#
# gen68360_040.cfg,v 1.1 1998/01/20 19:30:28 joel Exp
#
 
#
# All gen68360 configurations share the same base file, only the cpu model
# differs.
#
 
RTEMS_GEN68360_COMPANION_MODE=yes
 
include $(RTEMS_ROOT)/make/custom/gen68360.cfg
 
/custom/idp.cfg
0,0 → 1,38
#
# Config file for the IDP BSP
#
# idp.cfg,v 1.17 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68ec040
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=idp
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -msoft-float
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
/custom/erc32.cfg
0,0 → 1,32
#
# Config file for the European Space Agency ERC32
# a V7 SPARC processor derived from the Cypress 601/602 set.
#
# erc32.cfg,v 1.27 2002/04/03 14:16:20 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sparc
RTEMS_CPU_MODEL=erc32
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=erc32
 
CPU_CFLAGS = -mcpu=cypress
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
# Miscellaneous additions go here
/custom/dmv152.cfg
0,0 → 1,44
#
# Config file for the dmv152 BSP
#
# dmv152.cfg,v 1.18 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68020
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=dmv152
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
 
CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
# Usage ref: src/tests/sptest/sp1/Makefile
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $@
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
/custom/mvme2307.cfg
0,0 → 1,51
#
# Config file for the PowerPC 604 based mvme2307
#
# mvme2307.cfg,v 1.14 2002/04/18 13:07:35 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc604
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=motorola_powerpc
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=604 -mmultiple -mstring -mstrict-align -Dmpc604
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V = -O4
 
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1
 
# profile flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_PROFILE_V = -O1
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
$(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S
gzip -vf9 rtems
$(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
-b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
-Map $(basename $@).map && chmod 755 $@
rm -f rtems.gz
endef
 
# Miscellaneous additions go here
 
# No start file
START_BASE=
/custom/mvme147s.cfg
0,0 → 1,16
#
# Config file for the mvme147s BSP
#
# mvme147s.cfg,v 1.2 1998/11/23 17:38:09 joel Exp
#
 
#
# mvme147s and mvme147 use the same toolset
#
 
include $(RTEMS_ROOT)/make/custom/mvme147.cfg
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme147s
 
# Miscellaneous additions go here
/custom/mrm332.cfg
0,0 → 1,63
#
# Config file for the mrm332 BSP
#
# mrm332.cfg,v 1.5 2002/08/06 20:15:43 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68332
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mrm332
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mcpu32
 
# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
ifeq ($(MRM_IN_ROM),yes)
# Build a rommable image - move the .data section after the .text section
# in the image.
CPU_CFLAGS += -qnolinkcmds -T $(PROJECT_ROOT)/mrm332/lib/linkcmds_ROM
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).pxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) --adjust-section-vma \
.data=`m68k-rtems-objdump --section-headers $(basename $@).pxe | \
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 $@).pxe $(basename $@).nxe
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).pxe > $(basename $@).pnum
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
else
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
endif
 
# Miscellaneous additions go here
/custom/helas403.cfg
0,0 → 1,42
#
# Config file for a PowerPC 403 based helas403 card
#
# helas403.cfg,v 1.14 2002/04/18 13:07:35 joel Exp
#
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc403
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=helas403
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=403 -D_OLD_EXCEPTIONS -Dppc403
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
# No start file
START_BASE=
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/shsim.cfg
0,0 → 1,38
#
# Config file for the sh simulator in gdb
#
# shsim.cfg,v 1.3 2001/11/14 18:43:32 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7032
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=shsim
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-m1
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
CFLAGS_OPTIMIZE_V=-O2 -g
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/ts_386ex.cfg
0,0 → 1,43
#
# Config file for the ts-386ex BSP
#
# ts_386ex.cfg,v 1.14 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i386
RTEMS_CPU_MODEL=i386_nofp
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=ts_386ex
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it. Enables software floating-point
# emulation since we don't have a i387 co-processor.
#
CPU_CFLAGS =-msoft-float -mno-fp-ret-in-387
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# -fomit-frame-pointer breaks debugging and C++ exceptions
CFLAGS_OPTIMIZE_V= -O4
 
# Something like this should produce a map file but this does not work.
 
# -Xlinker "-Map $(basename $@).map" $(LINK_OBJS)
#
# This is a good way to get debug information. The rdmp file is large
# though (1.9 Mb for hello) and greatly slows the build process.
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).elf \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary $(basename $@).elf $(basename $@).exe
$(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).elf
endef
 
# Miscellaneous additions go here
 
/custom/mpc8260ads.cfg
0,0 → 1,48
#
# Config file for MPC8260 based Motorola ADS board
#
# mpc8260ads.cfg,v 1.7 2002/08/02 00:08:01 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc8260
8XX_CPU_TYPE=8260
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mpc8260ads
 
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
# This BSP was initially developed using the PowerOpen ABI.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -mstrict-align
CPU_CFLAGS = -mcpu=603e -mstrict-align -Dmpc8260 \
-DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/ods68302.cfg
0,0 → 1,53
#
# Config file for a "ODS 68302" BSP
#
# Differs from the gen68302 by providing most of the boot code as C
# code. This allows separate board definitions to be based on C
# header files. The file is based on the VARIANT defined.
#
# ods68302.cfg,v 1.20 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68302
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=ods68302
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68302 -msoft-float
CPU_CFLAGS = -m68302
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# debugging please
CFLAGS_DEBUG_V =
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
ifeq ($(RTEMS_DEBUGGER),yes)
LINKCMDS=$(PROJECT_RELEASE)/lib/debugrom
else
LINKCMDS=$(PROJECT_RELEASE)/lib/rom
endif
 
/custom/efi68k.cfg
0,0 → 1,40
#
# Config file for the efi68k BSP
#
# efi68k.cfg,v 1.17 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68000
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=efi68k
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68000 -msoft-float
CPU_CFLAGS = -m68000
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $@
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
/custom/mbx8xx.cfg
0,0 → 1,71
#
# Config file for a PowerPC MPC821- or MPC860-based MBX card
#
# This file is derived from:
#
# Config file for a PowerPC 403 based helas403 card
# Config file for MPC860 based Ethernet Comm Board
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc$(8XX_CPU_TYPE)
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mbx8xx
 
# This section makes the target dependent options file.
#
# Note that RTEMS_BSP matches the RTEMS_MBX_MODEL. Its value must be
# defined in targopts.h, so the few places that require different code
# for different MBX models can be distinguished. The value of
# RTEMS_BSP is already defined in targopts.h and is one of:
# mbx860_001 mbx821_001
# mbx860_002 mbx821_002
# mbx860_003 mbx821_003
# mbx860_004 mbx821_004
# mbx860_005 mbx821_005
# mbx860_001b mbx821_001b
# mbx860_002b mbx821_002b
# mbx860_003b mbx821_003b
# mbx860_004b mbx821_004b
# mbx860_005b mbx821_005b
# mbx860_006b mbx821_006b
 
# The specific CPU model is defined, so the few places that require
# different code for the MPC860 and MPC821 can be distinguished.
# Either mpc860 or mpc821 is defined.
#
# MBX8xx-specific options:
#
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) -D$(RTEMS_MBX_MODEL)
 
CFLAGS_DEBUG_V += -ggdb
CXXFLAGS_DEBUG_V += -ggdb
 
# optimize flag: typically -O, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
# CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
CXXFLAGS_OPTIMIZE_V=-O4
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
-o $(basename $@)_sym.exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
cp $(basename $@)_sym.exe $(basename $@).exe
$(STRIP) $(basename $@).exe
$(SIZE) $(basename $@)_sym.exe
endef
 
# Miscellaneous additions go here
 
# Override default start file
START_BASE=
 
/custom/Linux-posix.cfg
0,0 → 1,39
#
# Config file for the Linux 1.x based RTEMS UNIX
#
# Linux-posix.cfg,v 1.27 2002/01/04 18:08:57 joel Exp
#
 
RTEMS_CPU=unix
RTEMS_CPU_FAMILY=i386
RTEMS_CPU_MODEL=i486dx
RTEMS_UNIX_FLAVOR=linux
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=posix
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
LIBC_DEFINES =-D_POSIX_C_SOURCE
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX
 
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
 
DEFINES += -D_BSD_SOURCE
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
 
# *****************************************************************
# Miscellaneous additions go here
/custom/i960sim.cfg
0,0 → 1,38
#
# Config file for the i960 simulator in gdb
#
# i960sim.cfg,v 1.7 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i960
RTEMS_CPU_MODEL=i960ka
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=i960sim
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-mka -g
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
CFLAGS_OPTIMIZE_V=-O0 -g
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/Cygwin-posix.cfg
0,0 → 1,39
#
# Config file for the Cygwin based RTEMS UNIX
#
# Cygwin-posix.cfg,v 1.10 2002/01/04 18:08:57 joel Exp
#
 
RTEMS_CPU=unix
RTEMS_CPU_FAMILY=i386
RTEMS_CPU_MODEL=i486dx
RTEMS_UNIX_FLAVOR=cygwin
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=posix
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
LIBC_DEFINES =-D_POSIX_C_SOURCE
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX
 
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
 
DEFINES += -D_BSD_SOURCE
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
 
# *****************************************************************
# Miscellaneous additions go here
/custom/mvme162lx.cfg
0,0 → 1,51
#
# Configuration file for a MVME162LX
#
# This is an MVME162 model with ...
#
# mvme162lx.cfg,v 1.2 2001/12/18 14:11:02 joel Exp
#
 
#
# All mvme162 configurations share the same base file, only the cpu model
# differs.
#
 
RTEMS_MVME162_MODEL=mvme162lx
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68lc040
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme162
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -m68040 -msoft-float
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
#$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
#sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
# $(PACKHEX) > $(basename $@).exe
$(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
 
# BSP-specific tools
SLOAD=$(PROJECT_TOOLS)/sload
/custom/pck6.cfg
0,0 → 1,10
#
# Configuration file for a PC using an AMD k6 Class CPU
#
# pck6.cfg,v 1.1 2000/08/25 17:29:00 joel Exp
#
 
RTEMS_CPU_MODEL=pentium
CPU_CFLAGS = -mcpu=k6
 
include $(RTEMS_ROOT)/make/custom/pc386.cfg
/custom/simsh7045.cfg
0,0 → 1,30
#
# simsh7045.cfg
#
# default configuration for gdb-simulation of Hitachi sh7045 processors
#
# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
#
# simsh7045.cfg,v 1.1 2001/01/22 14:03:44 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/shsim.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7045
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-m2
 
# debug flags: typically none, but we use -O1 as it produces better code
# CFLAGS_DEBUG_V = -O1
CFLAGS_DEBUG_V =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# Miscellaneous additions go here
/custom/pc486.cfg
0,0 → 1,14
#
# Configuration file for a PC using an i486DX Class CPU
#
# pc486.cfg,v 1.3 2002/07/24 13:31:21 joel Exp
#
 
RTEMS_CPU_MODEL=i486dx
# gcc 2.95.x and 3.0
#CPU_CFLAGS = -m486
# gcc 3.1 and newer
CPU_CFLAGS=-mcpu=i486
 
include $(RTEMS_ROOT)/make/custom/pc386.cfg
 
/custom/simcpu32.cfg
0,0 → 1,35
#
# Configuration file for a simcpu32 in BSCV
#
# simcpu32.cfg,v 1.4 2001/11/14 18:59:05 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=mcpu32
CPU_CFLAGS = -mcpu32
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=sim68000
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# debugging please
CFLAGS_DEBUG_V =
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/pc686.cfg
0,0 → 1,14
#
# Configuration file for a PC using a PentiumPro Class CPU
#
# pc686.cfg,v 1.3 2002/07/24 13:31:21 joel Exp
#
 
RTEMS_CPU_MODEL=pentiumpro
# gcc 2.95.x and 3.0
#CPU_CFLAGS = -mpentiumpro
# gcc 3.1 and newer
CPU_CFLAGS=-mcpu=pentiumpro
 
include $(RTEMS_ROOT)/make/custom/pc386.cfg
 
/custom/c3xsim.cfg
0,0 → 1,12
#
# Configuration file for the GDB C4x simulator as a C3x
#
# c3xsim.cfg,v 1.2 2000/02/29 16:35:45 joel Exp
#
 
RTEMS_BSP=c3xsim
RTEMS_CPU_MODEL=c32
CPU_CFLAGS = -mcpu=32
 
include $(RTEMS_ROOT)/make/custom/c4xsim.cfg
 
/custom/c4xsim.cfg
0,0 → 1,42
#
# Configuration file for the GDB C4x simulator
#
# c4xsim.cfg,v 1.5 2001/12/07 12:32:09 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
ifeq ($(RTEMS_CPU_MODEL),)
RTEMS_BSP=c4xsim
RTEMS_CPU_MODEL=c40
CPU_CFLAGS=-mcpu=40 #-msmall
endif
 
# XXX add this temporarily until c4x-rtems target defines this.
CPU_CFLAGS += -D__rtems__
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=c4xsim
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# -O4 is broken for the moment on the C4x gcc
#CFLAGS_OPTIMIZE_V=-O4
CFLAGS_OPTIMIZE_V=-O1
 
# this target has no start file
START_BASE=
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/psim.cfg
0,0 → 1,33
#
# Config file for the PowerPC 60x simulator - psim
#
# psim.cfg,v 1.24 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc603e
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=psim
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603e -D_OLD_EXCEPTIONS -Dppc603e
#-ffunction-sections
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/jmr3904.cfg
0,0 → 1,40
#
# Config file for the jmr3904 board which has a simulator in gdb
#
# jmr3904.cfg,v 1.8 2002/06/14 17:31:20 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=mips
RTEMS_CPU_MODEL=tx3904
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=jmr3904
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# gcc 2.95.x and 3.0
#CPU_CFLAGS=-m3900 -G0
# gcc 3.1 and newer
CPU_CFLAGS=-march=r3900 -G0
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O2 -g
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/FreeBSD-posix.cfg
0,0 → 1,34
#
# Config file for the FreeBSD 2.x based RTEMS UNIX
 
RTEMS_CPU=unix
RTEMS_CPU_FAMILY=i386
RTEMS_CPU_MODEL=i486dx
RTEMS_UNIX_FLAVOR=freebsd
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=posix
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
LIBC_DEFINES =-D_POSIX_C_SOURCE
LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX
 
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
 
# *****************************************************************
# Miscellaneous additions go here
/custom/arm_bare_bsp.cfg
0,0 → 1,50
#
# Config file for ARM BOARD --
#
# arm_bare_bsp.cfg,v 1.6 2001/06/19 14:27:43 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=arm
RTEMS_CPU_MODEL=arm7tdmi
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=arm_bare_bsp
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
#CPU_CFLAGS = -mcpu=arm7tdmi
CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE2: some level of -O may be actually required by inline assembler (at least
# -O2 so far.
CFLAGS_OPTIMIZE_V=
#CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
 
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1
#CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O binary \
--only-section=.text \
--only-section=.data \
--only-section=.rodata \
--strip-unneeded $(basename $@).obj $(basename $@).bin
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
f=`basename $@ .exe`; \
cp $(basename $@).bin $(basename $@).exe
cp $(basename $@).bin ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
 
endef
 
# Miscellaneous additions go here
/custom/gen68302.cfg
0,0 → 1,37
#
# Config file for a "generic 68302" BSP
#
# gen68302.cfg,v 1.15 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68302
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen68302
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# 68000+softfloat results in gcc 2.95.2 giving default libraries.
# CPU_CFLAGS = -m68302 -msoft-float
CPU_CFLAGS = -m68302
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
# Miscellaneous additions go here
/custom/gen68340.cfg
0,0 → 1,47
#
# Config file for a "generic 68340" BSP
#
# gen68340.cfg,v 1.13 2002/08/06 20:15:43 joel Exp
#
 
RTEMS_CPU=m68k
 
RTEMS_CPU_MODEL=m68340
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gen68340
 
CPU_CFLAGS = -mcpu32
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
$(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
/custom/rxgen960.cfg
0,0 → 1,40
#
# Config file for the generix RAMiX boards with i960
#
# rxgen960.cfg,v 1.13 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i960
RTEMS_CPU_MODEL=i960rp
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=rxgen960
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# CPU_CFLAGS = -mrp -D__i960RP__ -D__i960_RP__
CPU_CFLAGS = -mrp
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(OBJCOPY) -O binary $@ $(basename $@).bin
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
START_BASE=
START_FILE=
/custom/erc32nfp.cfg
0,0 → 1,33
#
# Config file for the European Space Agency ERC32
# a V7 SPARC processor derived from the Cypress 601/602 set.
#
# erc32nfp.cfg,v 1.4 2002/04/03 14:16:20 joel Exp
#
 
# ERC32 without FPU
 
RTEMS_CPU_MODEL=erc32nfp
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=erc32
 
CPU_CFLAGS = -mcpu=cypress -msoft-float
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
# Miscellaneous additions go here
/custom/default.cfg
0,0 → 1,35
# Default target settings
#
# Some of these values are redefined in the target specific .cfg files.
#
# Created by Jiri Gaisler, 16-03-97 (who is owed a debt of gratitude
# for converting RTEMS to autoconf. Thanks. --joel)
#
# default.cfg,v 1.14 2001/04/11 13:49:47 joel Exp
#
 
include $(exec_prefix)/make/target.cfg
include $(RTEMS_ROOT)/make/host.cfg
 
include $(RTEMS_ROOT)/make/main.cfg
include $(exec_prefix)/$(RTEMS_BSP)/make/bsp.cfg
 
# use the inline functions instead of the macros
# ref: src/exec/generic/Makefile
ifeq ($(RTEMS_USE_MACROS),yes)
INLINE=macros
INLINE_UPCASE=
else
INLINE=inline
INLINE_UPCASE=INLINE
endif
 
## Target compiler config file, if any
CONFIG.CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
 
## GCC specs extension file location
RTEMS_BSP_SPECS = $(PROJECT_ROOT)/$(RTEMS_BSP)/lib/bsp_specs
 
# Base name of start file
START_BASE=start
 
/custom/gensh1.cfg
0,0 → 1,46
#
# gensh1.cfg
#
# default configuration for Hitachi sh1 processors
#
# Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
#
# gensh1.cfg,v 1.29 2001/11/15 16:55:00 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7032
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gensh1
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-m1
 
# debug flags: typically none, but we use -O1 as it produces better code
# CFLAGS_DEBUG_V = -O1
CFLAGS_DEBUG_V =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/gensh2.cfg
0,0 → 1,47
#
# gensh2.cfg
#
# default configuration for Hitachi sh1 processors
#
# Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
#
# gensh2.cfg,v 1.17 2001/11/15 16:55:00 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7045
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gensh2
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS= -m2
 
# 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 -g
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/i386ex.cfg
0,0 → 1,48
#
# Config file for the i386ex BSP
#
# i386ex.cfg,v 1.21 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i386
RTEMS_CPU_MODEL=i386_nofp
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=i386ex
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -msoft-float
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# -fomit-frame-pointer breaks debugging and C++ exceptions
CFLAGS_OPTIMIZE_V=-O4
 
# Something like this should produce a map file but this does not work.
 
# -Xlinker "-Map $(basename $@).map" $(LINK_OBJS)
#
# This is a good way to get debug information. The rdmp file is large
# though (1.9 Mb for hello) and greatly slows the build process.
# $(OBJDUMP) -x -m i386 -d $(basename $@).coff > $(basename $@).rdmp
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).coff \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).coff $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).coff > $(basename $@).num
$(SIZE) $(basename $@).coff
endef
 
# Miscellaneous additions go here
 
/custom/gensh4.cfg
0,0 → 1,51
#
# gensh4.cfg
#
# default configuration for Hitachi SH7750 board
#
# Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
# Author: Victor V. Vengerov <vvv@oktet.ru>
#
# gensh4.cfg,v 1.4 2001/12/07 12:32:09 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7750
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=gensh4
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# Seems to be good without initialisation FPSCR.
# Also works with SH4_FPSCR_DN bit set.
#CPU_CFLAGS= -m4-single-only -mfmovd -ml
#CPU_CFLAGS= -m4-single -ml
#
# It works with SH4_FPSCR_PR bit set
CPU_CFLAGS= -m4 -ml
 
# debug flags:
CFLAGS_DEBUG_V = -O0 -ggdb
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/cvme961.cfg
0,0 → 1,37
#
# Config file for the Cyclone i960ca CVME961 BSP
#
# cvme961.cfg,v 1.20 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i960
RTEMS_CPU_MODEL=i960ca
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=cvme961
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-mca
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/eth_comm.cfg
0,0 → 1,50
#
# Config file for MPC860 based Ethernet Comm Board
#
# eth_comm.cfg,v 1.17 2002/08/02 00:08:01 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc8xx
8XX_CPU_TYPE=860
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=eth_comm
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
 
# PPC_ABI (PowerPC)
# This defines the calling convention (Application Binary Interface)
# used in this configuration. EABI is the only one supported.
# This BSP was initially developed using the PowerOpen ABI.
#
# PPC_ASM (PowerPC)
# This defines the assembly language format used in this configuration.
# ELF is the only one supported.
#
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=$(8XX_CPU_TYPE) -Dmpc$(8XX_CPU_TYPE) \
-DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/mvme162.cfg
0,0 → 1,45
#
# Config file for the mvme162 BSP
#
# mvme162.cfg,v 1.20 2001/12/18 14:11:02 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
 
RTEMS_MVME162_MODEL=mvme162
RTEMS_CPU_MODEL=m68040
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme162
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
 
CPU_CFLAGS = -m68040
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
#$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
#sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
# $(PACKHEX) > $(basename $@).exe
$(OBJCOPY) -O binary $(basename $@).nxe $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
 
# BSP-specific tools
SLOAD=$(PROJECT_TOOLS)/sload
/custom/pc386dx.cfg
0,0 → 1,11
#
# Configuration file for a PC using an i386 Class CPU w/o FPU
#
# pc386dx.cfg,v 1.1 2001/02/21 14:20:01 joel Exp
#
 
RTEMS_CPU_MODEL=i386dx
CPU_CFLAGS = -msoft-float -mno-fp-ret-in-387
 
include $(RTEMS_ROOT)/make/custom/pc386.cfg
 
/custom/posix.cfg
0,0 → 1,35
#
# Config file for the posix based RTEMS
#
# posix.cfg,v 1.8 2001/04/26 16:41:44 joel Exp
#
 
include $(RTEMS_ROOT)/make/host.cfg
 
# Set them here, otherwise gcc-target-default.cfg will set them to values
# not working on some os variants (linux-RH5.0, glibc versions 2.0.0 - 2.0.7)
# These should be available on all unices
LIBC_LIBC=-lc
LIBC_LIBM=-lm
 
include $(RTEMS_ROOT)/make/custom/$(RTEMS_HOST)-posix.cfg
 
# Not applicable - let's override 'em
LINKCMDS=
START_FILE=
START_BASE=
 
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
# Usage ref: src/tests/sptest/sp1/Makefile
#
# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile)
# If NODE is set as an environment variable, don't trust it, zero it out.
# (NODE turns out to be a very common environment variable)
ifeq (,$(NODE))
NODE=0
else
ifeq "$(origin NODE)" "environment"
NODE=0
endif
endif
/custom/mvme167.cfg
0,0 → 1,81
#
# Config file for the mvme167 BSP
#
# mvme167.cfg,v 1.17 2002/03/28 13:51:54 joel Exp
#
 
# THIS BSP USES ELF IMAGES. IT WILL NOT WORK WITH COFF UNLESS CHANGES
# ARE MADE TO THE LINKCMDS FILE.
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68040
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme167
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it. We also specify the BSP during compilation.
# This should really get its own flag, but it works here.
#
 
CPU_CFLAGS = -m68040
 
# BSP specific preprocessor flags.
# These should only be used in BSP dependent directories.
#
# CONSOLE_MINOR
# Port to use for the RTEMS console
# 0 - /dev/tty0, Serial Port 1/Console on the MVME712M.
# 1 - /dev/tty1, Serial Port 2/TTY01 on the MVME712M.
# 2 - /dev/tty2, Serial Port 3 on the MVME712M.
# 3 - /dev/tty3, Serial Port 4 on the MVME712M.
#
# PRINTK_MINOR
# Port to use for printk debugging output.
# 0 - /dev/tty0, Serial Port 1/Console on the MVME712M.
# 1 - /dev/tty1, Serial Port 2/TTY01 on the MVME712M.
# 2 - /dev/tty2, Serial Port 3 on the MVME712M.
# 3 - /dev/tty3, Serial Port 4 on the MVME712M.
 
BSP_CPPFLAGS += -DCONSOLE_MINOR=1 -DPRINTK_MINOR=1
CFLAGS_DEBUG_V += -ggdb
 
# optimize flag: typically -O, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fno-omit-frame-pointer
 
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.nm
# Usage ref: src/tests/sptest/sp1/Makefile
#
# We use TFTP to transfer files to the MVME167. We generate binary files
# rather than S-records. We skip the header during downloads.
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
# The MC68040 does not implement all MC68881/MC68882 instructions, so use
# either the gcc floating-point software support (msoft-float libraries), or
# use the Motorola FPSP floating-point emulator in
# rtems/c/src/lib/libcpu/m68k/m68040/fpsp
# The default is to use the FPSP.
# To use the msoft-float libraries, uncomment the three lines below.
# You then should comment the M68KFPSPInstallExceptionHandlers() statement
# in rtems/c/src/lib/libbsp/m68k/mvme167/startup/bststart.c in bsp_start().
# Floating-point support will then be limited. See the mvme167 README file
# for more details.
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@)_sym.exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@)_sym.exe > $(basename $@).nm
cp $(basename $@)_sym.exe $(basename $@).exe
$(STRIP) $(basename $@).exe
$(SIZE) $(basename $@)_sym.exe
endef
 
# Miscellaneous additions go here
/custom/p4000.cfg
0,0 → 1,40
#
# Config file for the algorithmics p4000 evaluation board
#
# p4000.cfg,v 1.18 2002/03/28 13:51:54 joel Exp
#
 
# NOTE: This file is shared between the mips and mips64orion
# "ports". The following defines are needed by the mips64orion
# but not the mips.
ifeq ($(RTEMS_CPU),mips64orion)
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
endif
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=p4000
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mips3 -G0
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
$(RM) $(basename $@).srec1
$(NM) -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
 
# Miscellaneous additions go here
 
/custom/mcf5206elite.cfg
0,0 → 1,39
#
# Config file for a MCF5206eLITE board BSP
#
# Author: Victor V. Vengerov <vvv@oktet.ru>
#
# mcf5206elite.cfg,v 1.3 2002/03/28 13:51:54 joel Exp
#
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=mcf5206
 
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.
#
CPU_CFLAGS = -m5200
CPU_ASFLAGS = -m5200
ASFLAGS = -m5200
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/armulator.cfg
0,0 → 1,40
#
# Config file for ARMulator
#
# armulator.cfg,v 1.5 2001/12/18 14:11:02 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=arm
RTEMS_CPU_MODEL=arm7tdmi
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=armulator
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
#CPU_CFLAGS = -mcpu=arm7tdmi
CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE2: some level of -O may be actually required by inline assembler (at least
# -O2 so far.
CFLAGS_OPTIMIZE_V=
#CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
 
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1
#CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
 
# Miscellaneous additions go here
/custom/genmongoosev.cfg
0,0 → 1,37
#
# Config file for "generic" Mongoose-V board
#
# genmongoosev.cfg,v 1.4 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=mips
RTEMS_CPU_MODEL=mongoosev
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=genmongoosev
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-mips1 -G0
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O2 -g
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/p4600.cfg
0,0 → 1,47
#
# Config file for the algorithmics p4000 evaluation board with R4600 cpu
#
# p4600.cfg,v 1.21 2002/06/14 17:31:20 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU_MODEL=R4600
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=p4000
 
# gcc 2.95.x and 3.0
#CPU_CFLAGS = -m4600 -mips3 -G0
# gcc 3.1 and newer
CPU_CFLAGS = -march=4600 -G0
CCMIPS_CFLAGS_CPU=-cpu=r4600
 
ifeq ($(RTEMS_CPU),mips64orion)
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
endif
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
CPU_CFLAGS = -mips3 -G0
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $@ $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $@ $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
$(RM) $(basename $@).srec1
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/Solaris-posix.cfg
0,0 → 1,37
#
# Config file for the Solaris based RTEMS UNIX
#
# Solaris-posix.cfg,v 1.26 2002/01/04 18:08:57 joel Exp
#
 
RTEMS_CPU=unix
RTEMS_CPU_FAMILY=sparc
RTEMS_CPU_MODEL=sparc_v8
RTEMS_UNIX_FLAVOR=solaris
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=posix
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
LIBC_DEFINES +=-DRTEMS_UNIXLIB -DRTEMS_UNIX
 
DEFINES += -D__EXTENSIONS__ -Dsolaris2
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
 
# *****************************************************************
 
# Miscellaneous additions go here
/custom/HPUX9-posix.cfg
0,0 → 1,43
#
# Config file for HPUX running the posix bsp
#
# HPUX9-posix.cfg,v 1.23 2002/01/04 18:08:57 joel Exp
#
 
# Specify here the host and target "architectures"
RTEMS_CPU=unix
RTEMS_CPU_FAMILY=hppa1_1
RTEMS_CPU_MODEL=hppa7200
RTEMS_UNIX_FLAVOR=hpux
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=posix
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# use the macros instead of the inline functions
# The macros work better when mixed with other compilers.
INLINE=macros
INLINE_UPCASE=MACRO
 
# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX
 
# The following define the memory reserved in the executable for the
# RTEMS Workspace and the C Program Heap.
# NOTE: some of the timing tests need > 1M workspace
LIBC_DEFINES += -DWORKSPACE_MB=2
LIBC_DEFINES += -DHEAPSPACE_MB=1
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O2
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
$(NM) -ng $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/leon1.cfg
0,0 → 1,12
#
# Config file for the European Space Agency LEON SPARC processor.
#
# leon1.cfg,v 1.1 2000/11/13 22:48:24 joel Exp
#
 
# LEON without FPU
 
RTEMS_CPU_MODEL=leon1
 
include $(RTEMS_ROOT)/make/custom/leon2.cfg
 
/custom/leon2.cfg
0,0 → 1,42
#
# Config file for the European Space Agency ERC32 SPARC processor.
#
# leon2.cfg,v 1.6 2002/04/03 14:16:20 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sparc
 
ifeq ($(RTEMS_CPU_MODEL),leon1)
MSOFT_FLOAT = -msoft-float
else
RTEMS_CPU_MODEL=leon2
endif
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=leon
 
# The -mflat avoids the use of save/restore instructions. It has
# a negative impact on the performance of RTEMS and should not be used.
 
# 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)
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
# Miscellaneous additions go here
 
/custom/no_bsp.cfg
0,0 → 1,23
#
# Configuration file for the "no_bsp" board
#
# no_bsp.cfg,v 1.8 1999/08/06 17:55:20 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=no_cpu
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
/custom/dmv177.cfg
0,0 → 1,40
#
# Config file for a PowerPC 603e based DY-4 VMEbus Single Board Computer.
# This BSP should work with the following models:
#
# + SVME-171/DMV-171
# + SVME-176/DMV-176
#
# dmv177.cfg,v 1.24 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc603e
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=dmv177
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603e -D_OLD_EXCEPTIONS -Dppc603e
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
$(STRIP) $(basename $@).nxe
endef
 
# Miscellaneous additions go here
/custom/sim68000.cfg
0,0 → 1,34
#
# Config file for a BSVC m68k simulator
#
# sim68000.cfg,v 1.7 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68000
CPU_CFLAGS = -m68000
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=sim68000
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# debugging please
CFLAGS_DEBUG_V =
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $@
endef
# Miscellaneous additions go here
/custom/h8sim.cfg
0,0 → 1,38
#
# Config file for the i960 simulator in gdb
#
# h8sim.cfg,v 1.6 2002/01/06 20:09:43 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=h8300
RTEMS_CPU_MODEL=h8300h
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=h8sim
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS=-mh -mint32
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# CFLAGS_OPTIMIZE_V=-O4 -mleaf-procedures
CFLAGS_OPTIMIZE_V=-O0
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
/custom/portsw.cfg
0,0 → 1,25
#
# Custom file for "portsw" -- AMD 29205 based board
#
# portsw.cfg,v 1.13 2002/03/28 13:51:54 joel Exp
#
 
# Note: This file is broken for sure
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=a29k
RTEMS_CPU_MODEL=a29205
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=portsw
 
define make-exe
$(LINK.c) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/mvme136.cfg
0,0 → 1,39
#
# Config file for the mvme136 BSP
#
# mvme136.cfg,v 1.17 2002/08/01 23:51:16 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=m68k
RTEMS_CPU_MODEL=m68020
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=mvme136
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
sed -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
$(PACKHEX) > $(basename $@).exe
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
endef
# Miscellaneous additions go here
 
/custom/orp.cfg
0,0 → 1,22
#
# Configuration file for the "bender" chip which is simulated
# by or1ksim.
#
# orp.cfg,v 1.2 2002/08/07 16:18:31 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=or32
RTEMS_CPU_MODEL=or1k_model
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=orp
 
# Miscellaneous additions go here
define make-exe
$(LINK.c) -W,l$(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS) -W,l -e ___rst
$(NM) -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
/custom/mbx821_001.cfg
0,0 → 1,13
#
# Config file for a PowerPC MPC860-based MBX821-001 card.
#
 
#
# All MBX8xx configurations share the same base file, only a few
# parameters differ.
#
 
RTEMS_MBX_MODEL=mbx821_001
8XX_CPU_TYPE=821
 
include $(RTEMS_ROOT)/make/custom/mbx8xx.cfg
/custom/simhppa.cfg
0,0 → 1,92
#
# Config file for the 7100 pa-risc simulator
#
# simhppa.cfg,v 1.20 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=hppa1.1
RTEMS_CPU_MODEL=hppa7200
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=simhppa
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# Possibles:
# -mpa-risc-1-1 -- HPPA 1.1 instead of 1.0
# -mportable-runtime
#
CPU_CFLAGS = -mpa-risc-1-1 -mportable-runtime
 
# Possibles:
# -Wall -- lots of warnings
# -pipe -- compiler uses pipes to talk to phases (usually faster)
# -mgas -- we are using gas as assembler
# -fno-keep-inline-functions -- do not emit any inlines as static
CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall -mgas
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
 
# GNU ld options
# `-Tbss ORG'
# `-Tdata ORG'
# `-Ttext ORG'
# Use ORG as the starting address for--respectively--the `bss',
# `data', or the `text' segment of the output file. ORG must be a
# single hexadecimal integer; for compatibility with other linkers,
# you may omit the leading `0x' usually associated with hexadecimal
# values.
 
# 'NODE' is set to 1 or 2 for multi cpu tests (ref: mptests/mp01/node1/Makefile)
# If NODE is set as an environment variable, don't trust it, zero it out.
# (NODE turns out to be a very common environment variable)
ifeq (,$(NODE))
NODE=0
else
ifeq "$(origin NODE)" "environment"
NODE=0
endif
endif
 
# XXX some/all of this should move into 'linkcmds'
# single processor
DATA_0_BASE=0x40001000
TEXT_0_BASE=0x00001000
 
# first node (mptests number them from 1)
DATA_1_BASE=$(DATA_0_BASE)
TEXT_1_BASE=$(TEXT_0_BASE)
 
# second node (mptests number them from 1)
DATA_2_BASE=0x48001000
TEXT_2_BASE=0x08001000
 
# for hpux ld
#LD_LOC_OPTIONS=-D $(DATA_$(NODE)_BASE) -R $(TEXT_$(NODE)_BASE)
# for gnu ld
LD_LOC_OPTIONS=-Tdata $(DATA_$(NODE)_BASE) -Ttext $(TEXT_$(NODE)_BASE)
GCC_LD_LOC_OPTIONS=-W,l-T -W,ldata -W,l$(DATA_$(NODE)_BASE) \
-W,l-T -W,ltext -W,l$(TEXT_$(NODE)_BASE)
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(GCC_LD_LOC_OPTIONS) \
-o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
 
# BSP-specific tools
PRINTDUMP=$(PROJECT_TOOLS)/print_dump
/custom/pc386.cfg
0,0 → 1,94
#
# Config file for the PC 386 BSP
#
# pc386.cfg,v 1.32 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=i386
ifeq ($(RTEMS_CPU_MODEL),)
RTEMS_CPU_MODEL=i386_fp
endif
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=pc386
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# NOTE: CPU_CFLAGS is set by pc386 variants.
# CPU_CFLAGS =
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# -fomit-frame-pointer breaks debugging and C++ exceptions
CFLAGS_OPTIMIZE_V=-O4
 
# Here is the rule to actually build a $(ARCH)/foo.exe
# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm
# Usage ref: src/tests/sptest/sp1/Makefile
 
#+--------------------------------------------------------------------------+
#| Set the value of RELOCADDR to the address where you want your image to
#| load. If you'll be using GRUB to load the images it will have to be >=
#| 0x100000 (1024K). If you are using NetBoot to load the images it can be
#| >= 0x10000 (64K) AND <= 0x97C00 (607K) OR >= 0x100000 (1024K). The memory
#| top is of course another limit. Make sure there is enough space before the
#| upper memory limits for the image and the memory allocated by it to fit.
#| Make sure the value you choose is aligned to 4 bytes.
#+--------------------------------------------------------------------------+
RELOCADDR=0x00100000
 
START16FILE=$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin
START16ADDR=0x00097C00
HEADERADDR=0x00097E00
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
-o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \
--remove-section=.comment \
--remove-section=.note \
--strip-unneeded $(basename $@).obj $@
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin
$(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
# test -d ${PROJECT_RELEASE}/BootImgs \
# || mkdir ${PROJECT_RELEASE}/BootImgs
# f=`basename $@ .exe`; \
# cp $(basename $@).bt \
# ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt \
# && chmod 755 \
# ${PROJECT_RELEASE}/BootImgs/$${f}$(LIB_VARIANT).bt
# $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Ttext,$(RELOCADDR) \
# -o $@ $(LINK_OBJS) $(LINK_LIBS)
endef
define make-cxx-exe
$(LINK.cc) $(AM_CFLAGS) $(AM_CXXFLAGS) $(AM_LDFLAGS) \
-Wl,-Ttext,$(RELOCADDR) -o $(basename $@).obj \
$(LINK_OBJS) $(LINK_LIBS)
$(OBJCOPY) -O elf32-i386 \
--remove-section=.rodata \
--remove-section=.comment \
--remove-section=.note \
--strip-unneeded $(basename $@).obj $@
$(OBJCOPY) -O binary $(basename $@).obj $(basename $@).bin
$(PROJECT_TOOLS)/bin2boot -v $(basename $@).bt $(HEADERADDR)\
$(START16FILE) $(START16ADDR) 0 $(basename $@).bin $(RELOCADDR) 0
$(NM) -g -n $(basename $@).obj > $(basename $@).num
$(SIZE) $(basename $@).obj
endef
 
# Miscellaneous additions go here
 
# BSP-specific tools
BIN2BOOT=$(PROJECT_TOOLS)/bin2boot
/custom/pc586.cfg
0,0 → 1,14
#
# Configuration file for a PC using a Pentium Class CPU
#
# pc586.cfg,v 1.3 2002/07/24 13:31:21 joel Exp
#
 
RTEMS_CPU_MODEL=pentium
# gcc 2.95.x and 3.0
#CPU_CFLAGS = -mpentium
# gcc 3.1 and newer
CPU_CFLAGS=-mcpu=pentium
 
include $(RTEMS_ROOT)/make/custom/pc386.cfg
 
/custom/mbx860_002.cfg
0,0 → 1,13
#
# Config file for a PowerPC MPC860-based MBX860-002 card.
#
 
#
# All MBX8xx configurations share the same base file, only a few
# parameters differ.
#
 
RTEMS_MBX_MODEL=mbx860_002
8XX_CPU_TYPE=860
 
include $(RTEMS_ROOT)/make/custom/mbx8xx.cfg
/custom/simsh4.cfg
0,0 → 1,51
#
# simsh4.cfg
#
# default configuration for Hitachi SH4 architecture simulator
#
# Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
# Author: Victor V. Vengerov <vvv@oktet.ru>
#
# simsh4.cfg,v 1.5 2002/03/28 13:51:54 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7750
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=simsh4
 
#
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# Seems to be good without initialisation FPSCR.
# Also works with SH4_FPSCR_DN bit set.
#CPU_CFLAGS= -m4-single-only -ml
#
# It works with SH4_FPSCR_PR bit set
CPU_CFLAGS= -m4 -ml
 
 
# debug flags:
CFLAGS_DEBUG_V = -O0 -ggdb
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V = -O4
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
/custom/bare.cfg
0,0 → 1,41
#
# Config file for the "bare" BSP
#
# bare.cfg,v 1.10 2001/12/07 12:32:09 joel Exp
#
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=bare
 
RTEMS_BSP=bare
 
RTEMS_CPU_MODEL=$(BARE_CPU_MODEL)
 
CPU_CFLAGS=$(BARE_CPU_CFLAGS)
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# this target has no start file
START_BASE=
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
@echo "*** Cannot do a link with the bare bsp. ***"
@echo "#!/bin/sh" > $(basename $@).exe
@echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe
endef
 
define make-cxx-exe
@echo "*** Cannot do a link with the bare bsp. ***"
@echo "#!/bin/sh" > $(basename $@).exe
@echo "echo \"Cannot do a link with the bare bsp.\"" >> $(basename $@).exe
endef
 
# Miscellaneous additions go here
/custom/score603e.cfg
0,0 → 1,44
#
# Config file for a PowerPC 603e based Vista VMEbus Single Board Computer.
# This BSP should work with the following models:
#
# + Vista SCORE 603e
#
# score603e.cfg,v 1.15 2002/05/14 15:51:29 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=ppc603e
 
# This is the actual bsp directory used during the build process.
 
RTEMS_BSP_FAMILY=score603e
 
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603e -D_OLD_EXCEPTIONS -Dppc603e
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE: some level of -O may be actually required by inline assembler
CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
# CFLAGS_OPTIMIZE_V=-O0
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).elf $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).elf > $(basename $@).num
$(SIZE) $(basename $@).elf
$(OBJCOPY) -O srec $(basename $@).elf $(basename $@).s1
sed -e 's/.$$//' $(basename $@).s1 | \
$(PACKHEX) >$(basename $@).exe
rm -f $(basename $@).s1
endef
 
# Miscellaneous additions go here
 
DRIVER_ARCHITECTURE=vmebus
/custom/mbx860_005b.cfg
0,0 → 1,18
#
# Config file for a PowerPC MPC860-based MBX860-005b card.
#
 
#
# All MBX8xx configurations share the same base file, only a few
# parameters differ.
#
 
RTEMS_MBX_MODEL=mbx860_005b
8XX_CPU_TYPE=860
 
# The 860_005b has 16M ram : org = 0x0, l = 16M
MBX8xx_LDFLAGS=-Wl,--defsym -Wl,HeapSize=0x100000
 
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
 
include $(RTEMS_ROOT)/make/custom/mbx8xx.cfg
/custom/mcp750.cfg
0,0 → 1,52
#
# Config file for Motorola MCP750 -- a MPC750 CompactPCI board
#
# mcp750.cfg,v 1.24 2002/04/18 13:07:35 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU=powerpc
RTEMS_CPU_MODEL=mpc750
RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=motorola_powerpc
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
# NOTE : cheking egcc 1.1.1 source code shows that the last know processor
# is the 604 model and that this is the default generation option.
#
CPU_CFLAGS = -mcpu=750 -Dmpc750
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
# NOTE2: some level of -O may be actually required by inline assembler (at least
# -O2 so far.
# NOTE2 Apparently nobody really knows the status or r2 and r13.
# As far as I know, small data are pointer impose a very specific compliation
# model => not used.
# Currently the sdata2 and sbss2 sections are empty => r2 is not used...
CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align
#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions -fvolatile-global -fvolatile -mstrict-align -mcpu=750
 
# debug flags: typically none, but at least -O1 is required due to this
# BSP using inlined code
CFLAGS_DEBUG_V = -O1 -mmultiple -mstring -mstrict-align
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $(basename $@).nxe > $(basename $@).num
$(SIZE) $(basename $@).nxe
$(OBJCOPY) $(basename $@).nxe rtems -O binary -R .comment -S
gzip -vf9 rtems
$(LD) -o $@ $(PROJECT_RELEASE)/lib/bootloader.o --just-symbols=$(basename $@).nxe \
-b binary rtems.gz -T $(PROJECT_RELEASE)/lib/ppcboot.lds \
-Map $(basename $@).map && chmod 755 $@
rm -f rtems.gz
endef
 
# Miscellaneous additions go here
/custom/Makefile.am
0,0 → 1,23
##
## Makefile.am,v 1.10 2002/03/28 00:54:29 joel Exp
##
 
 
rtems_makedir = $(prefix)/make
rtems_make_customdir = $(rtems_makedir)/custom
 
rtems_make_custom_DATA = default.cfg
 
EXTRA_DIST = Cygwin-posix.cfg FreeBSD-posix.cfg HPUX9-posix.cfg \
Linux-posix.cfg Solaris-posix.cfg bare.cfg cvme961.cfg dmv152.cfg \
dmv177.cfg efi332.cfg efi68k.cfg erc32.cfg erc32nfp.cfg eth_comm.cfg \
gen68302.cfg gen68340.cfg gen68360.cfg gen68360_040.cfg gensh1.cfg \
helas403.cfg i386ex.cfg idp.cfg jmr3904.cfg leon1.cfg leon2.cfg \
mcp750.cfg mvme136.cfg mvme147.cfg mvme147s.cfg \
mvme162.cfg mvme162lx.cfg mvme167.cfg mvme2307.cfg no_bsp.cfg \
ods68302.cfg p4000.cfg p4600.cfg p4650.cfg pc386.cfg \
portsw.cfg posix.cfg ppcn_60x.cfg psim.cfg score603e.cfg shsim.cfg \
simhppa.cfg ts_386ex.cfg
 
## -------------------------------------------------------
include $(top_srcdir)/automake/host.am
/custom/p4650.cfg
0,0 → 1,45
#
# Config file for the algorithmics p4000 evaluation board with R4650 cpu
#
# p4650.cfg,v 1.22 2002/07/01 22:08:39 joel Exp
#
 
include $(RTEMS_ROOT)/make/custom/default.cfg
 
RTEMS_CPU_MODEL=R4650
 
# This is the actual bsp directory used during the build process.
RTEMS_BSP_FAMILY=p4000
 
CCMIPS_CFLAGS_CPU=-cpu=r4650
 
ifeq ($(RTEMS_CPU),mips64orion)
CPU_DEFINES+=-DP4000 -DCPU_R4000 -DP3_DIAG -D_R4000 -D__mips=3
endif
 
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
# gcc 2.95.x and 3.0
#CPU_CFLAGS = -m4650 -mips3 -G0
# gcc 3.1 and newer
CPU_CFLAGS = -mcpu=4650 -G0 -mips3
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
$(LINK_OBJS) $(LINK_LIBS) $(LD_LIBS)
$(OBJCOPY) -O srec $(basename $@).exe $(basename $@).srec1
$(PACKHEX) < $(basename $@).srec1 > $(basename $@).srec
$(RM) $(basename $@).srec1
$(NM) -n $(basename $@).exe > $(basename $@).num
$(SIZE) $(basename $@).exe
endef
 
# Miscellaneous additions go here
/custom/gen68360.cfg
0,0 → 1,44
#
# Config file for a "generic 68360" BSP
#
# gen68360.cfg,v 1.24 2002/08/06 20:15:43 joel Exp
#
 
RTEMS_CPU=m68k
 
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
RTEMS_CPU_MODEL=m68040
else
RTEMS_CPU_MODEL=m68360
endif
 
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.
#
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
CPU_CFLAGS= -m68040
else
CPU_CFLAGS = -mcpu32
endif
 
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
 
# The following are definitions of make-exe which will work using ld as
# is currently required. It is expected that as of gcc 2.8, the end user
# will be able to override parts of the compilers specs and link using gcc.
 
define make-exe
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ \
$(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
 
# Miscellaneous additions go here
custom Property changes : Added: svn:ignore ## -0,0 +1,3 ## +Makefile +Makefile.in +bare-*.cfg Index: compilers/gcc-target-default.cfg =================================================================== --- compilers/gcc-target-default.cfg (nonexistent) +++ compilers/gcc-target-default.cfg (revision 1765) @@ -0,0 +1,304 @@ +# +# Shared compiler for all GNU tools configurations +# +# gcc-target-default.cfg,v 1.35 2002/01/22 17:35:22 joel Exp +# + +## +# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we +# would want the corresponding macros to be set to. +# +# CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf +# Makefiles by the 'debug:' and 'profile:' targets to their _V values. +# + +# default flags +# XCPPFLAGS, XCFLAGS, XCXXFLAGS, XASFLAGS +# are used to add flags from the shell +# cf. make.info ("Implicit rules/variables" for details) + +# NOTE: Should these go to CPPFLAGS ? +CFLAGS_DEFAULT=-g -Wall + +# NOTE: CPU_CFLAGS should probably be renamed to CPU_CPPFLAGS +# NOTE: CPU_DEFINES should probably be merged with CPU_CFLAGS +CPPFLAGS += $(CPU_DEFINES) $(CPU_CFLAGS) $(DEFINES) $(XCPPFLAGS) +CFLAGS = $(CFLAGS_DEFAULT) $(XCFLAGS) +CXXFLAGS = $(CFLAGS_DEFAULT) $(XCXXFLAGS) +ASFLAGS = $(CPU_ASFLAGS) $(XASFLAGS) + +ifeq ($(RTEMS_USE_GCC272),yes) +ifeq ($(RTEMS_CROSS_TARGET),no) + +ifdef RTEMS_LIBC_DIR +RTEMS_LIBC_INCLUDES := -I$(RTEMS_LIBC_DIR)/include +endif + +# Used for posix bsps +CPPFLAGS += \ + -I$(PROJECT_INCLUDE) \ + $(RTEMS_LIBC_INCLUDES) +else +# Used for embedded bsps +# Ask gcc where it finds its own include files +GCC_INCLUDE=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=include $(GCCSED)) + +CPPFLAGS += -nostdinc \ + -I$(PROJECT_INCLUDE) \ + -I$(GCC_INCLUDE) \ + -I$(RTEMS_LIBC_DIR)/sys-include \ + -I$(RTEMS_LIBC_DIR)/include +endif + +# default location of Standard C Library +ifndef LIBC_LIBC +LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/libc.a +endif + +ifndef LIBC_LIBM +LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/libm.a +endif + +else +# NOTE: GCCSPECS probably belongs to CPPFLAGS +# Unfortunately, many custom/*.cfg files do not pass CPPFLAGS +# to their gcc-2.8 make-exe rules +GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems + +CC += $(GCCSPECS) +CXX += $(GCCSPECS) + +CPPFLAGS += + +# default location of Standard C Library +ifndef LIBC_LIBC +LIBC_LIBC=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=libc.a $(GCCSED)) +endif + +ifndef LIBC_LIBM +LIBC_LIBM=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=libm.a $(GCCSED)) +endif +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 ($(HAS_CPLUSPLUS),yes) +CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) +endif + +# debug flag; +CFLAGS_DEBUG_V+=-Wno-unused +CXXFLAGS_DEBUG_V+= + +ifeq ($(RTEMS_USE_GCC272),no) +CFLAGS_DEBUG_V+=-qrtems_debug +CXXFLAGS_DEBUG_V+=-qrtems_debug +endif + +# when debugging, optimize flag: typically empty +# some compilers do allow optimization with their "-g" +CFLAGS_OPTIMIZE_V=-g +CXXFLAGS_OPTIMIZE_V=-g + +# profile flag; use gprof(1) +CFLAGS_PROFILE_V=-pg +CXXFLAGS_PROFILE_V=-pg + +ifndef AUTOMAKE +# default is to optimize +CFLAGS_OPTIMIZE =$(CFLAGS_OPTIMIZE_V) +CXXFLAGS_OPTIMIZE=$(CXXFLAGS_OPTIMIZE_V) +endif + +ifndef AUTOMAKE +CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) +CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG) $(CXXFLAGS_PROFILE) +endif + +# List of library paths without -L +LD_PATHS= $(PROJECT_RELEASE)/lib + +# libraries you want EVERYONE to link with +#LD_LIBS= + +# ld flag to ensure pure-text +#LDFLAGS_MUST_BE_PURE_V = + +# ld flag for [un]shared objects +#LDFLAGS_STATIC_LIBRARIES_V = +#LDFLAGS_SHARED_LIBRARIES_V = + +# ld flag for incomplete link +LDFLAGS_INCOMPLETE = -r + +# Special linker options when building lib.so +LDFLAGS_DYNAMIC_V = ?? + +# Some dynamic linking systems want the preferred name recorded in the binary +# ref: src/libxil/Makefile +LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME) + +# ld flags for profiling, debugging +LDFLAGS_PROFILE_V = +LDFLAGS_DEBUG_V = + +LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %) + +# +# Stuff to clean and clobber for the compiler and its tools +# + +CLEAN_CC = a.out *.o *.BAK +CLOBBER_CC = + +# +# Client compiler and support tools +# + +# CPP command to write file to standard output +CPP=$(CC) -E -w -Wp,-$$ + +# egrep regexp to ignore symbol table entries in ar archives. +# Only used to make sure we skip them when coalescing libraries. +# skip __.SYMDEF and empty names (maybe bug in ranlib??). +AR_SYMBOL_TABLE="HIGHLY-UNLIKELY-TO-CONFLICT" +ARFLAGS=ruv + +# +# How to compile stuff into ${ARCH} subdirectory +# + +${ARCH}/%.o: %.c + ${COMPILE.c} $(AM_CPPFLAGS) $(AM_CFLAGS) -o $@ $< + +${ARCH}/%.o: %.cc + ${COMPILE.cc} $(AM_CPPFLAGS) $(AM_CXXFLAGS) -o $@ $< + +${ARCH}/%.o: %.cpp + ${COMPILE.cc} $(AM_CPPFLAGS) $(AM_CXXFLAGS) -o $@ $< + +${ARCH}/%.o: %.cxx + ${COMPILE.cc} $(AM_CPPFLAGS) $(AM_CXXFLAGS) -o $@ $< + +${ARCH}/%.o: %.C + ${COMPILE.cc} $(AM_CPPFLAGS) $(AM_CXXFLAGS) -o $@ $< + +${ARCH}/%.o: %.S + ${COMPILE.S} $(AM_CPPFLAGS) -DASM -o $@ $< + +# Make foo.rel from foo.o +${ARCH}/%.rel: ${ARCH}/%.o + ${make-rel} + +# create $(ARCH)/pgm from pgm.sh +${ARCH}/%: %.sh + $(RM) $@ + $(CP) $< $@ + $(CHMOD) +x $@ + +# Dependency files for use by gmake +# NOTE: we don't put them into $(ARCH) +# so that 'make clean' doesn't blow it away + +DEPEND=Depends-${ARCH} + +CLEAN_DEPEND=$(DEPEND).tmp +CLOBBER_DEPEND=$(DEPEND) + +# We deliberately don't have anything depend on the +# $(DEPEND) file; otherwise it will get rebuilt even +# on 'make clean' +# + +depend-am: $(C_FILES) $(CC_FILES) $(S_FILES) +ifneq ($(words $(C_FILES) $(CC_FILES) $(S_FILES)), 0) +# Use gcc -M to generate dependencies +# Replace foo.o with $(ARCH)/foo.o +# Replace $(ARCH) value with string $(ARCH) +# so that it will for debug and profile cases + $(COMPILE.c) $(AM_CPPFLAGS) $(AM_CFLAGS) -M $^ | \ + $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \ + -e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp + $(MV) $(DEPEND).tmp $(DEPEND) +endif +depend: depend-am + +# spell out all the LINK_FILE's, rather than using -lbsp, so +# that $(LINK_FILES) can be a dependency + +# Start file must be one of +# $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o +# $(PROJECT_RELEASE)/lib/asmiface$(LIB_VARIANT).o +# It defaults to start.o, but an app can override it. + +ifeq ($(START_BASE),) + START_FILE= +else + START_FILE=$(PROJECT_RELEASE)/lib/$(START_BASE)$(LIB_VARIANT).o +endif + +CONSTRUCTOR= + +LIBC_LOW= + +ifndef LIBGCC +LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name $(GCCSED)) +endif + +# +# NOTE: a rule to link an rtems' application should look similar to this +# (cf. "make-exe" in make/custom/*.cfg): +# +# gcc27: +# $(PGM): $(LINK_FILES) +# $(LD) $(LDFLAGS) -o $@ $(LINK_OBJS) \ +# --start-group $(LINK_LIBS) --end-group +# +# gcc28: +# $(PGM): $(LINK_FILES) +# $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) +# + +LINK_OBJS =\ + $(CONSTRUCTOR) \ + $(OBJS) \ + $(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/librtemsbsp$(LIBSUFFIX_VA) \ + $(PROJECT_RELEASE)/lib/librtemscpu$(LIBSUFFIX_VA) + +ifeq ($(RTEMS_USE_GCC272),yes) +LINK_LIBS = $(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA) +ifeq ($(RTEMS_CROSS_TARGET),yes) +# NOTE: add libc and libgcc only for embedded targets +# LIBC_LIBM should not be needed by rtems itself. +# FIXME: If a BSP requires libm, its make/custom/*.cfg file should add +# LIBC_LIBM to LINK_LIBS (untested) +LINK_LIBS += $(LIBC_LIBC) $(LIBGCC) +endif +endif + +LINK_LIBS += $(LD_LIBS) + +# +# Allow user to override link commands (to build a prom image, perhaps) +# +ifndef LINKCMDS +LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds +endif + +ifeq ($(RTEMS_USE_GCC272),yes) +define make-rel + $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $^ +endef +else +define make-rel + $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \ + -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) -o $@ $^ +endef +endif Index: compilers/Makefile.in =================================================================== --- compilers/Makefile.in (nonexistent) +++ compilers/Makefile.in (revision 1765) @@ -0,0 +1,250 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../.. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@ +BARE_CPU_MODEL = @BARE_CPU_MODEL@ +BUILD_SUBDIRS = @BUILD_SUBDIRS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC_SPECS = @GCC_SPECS@ +HAS_NETWORKING = @HAS_NETWORKING@ +HAS_RDBG = @HAS_RDBG@ +HOST_SUBDIRS = @HOST_SUBDIRS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAINT = @MAINT@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PACKHEX = @PACKHEX@ +PROJECT_INCLUDE = @PROJECT_INCLUDE@ +PROJECT_RELEASE = @PROJECT_RELEASE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RTEMS_BSP = @RTEMS_BSP@ +RTEMS_BSP_SPECS = @RTEMS_BSP_SPECS@ +RTEMS_CPU = @RTEMS_CPU@ +RTEMS_HAS_ITRON_API = @RTEMS_HAS_ITRON_API@ +RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@ +RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@ +RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@ +RTEMS_ROOT = @RTEMS_ROOT@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_USE_MACROS = @RTEMS_USE_MACROS@ +STRIP = @STRIP@ +TARGET_SUBDIRS = @TARGET_SUBDIRS@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +bsplibdir = @bsplibdir@ +build_configdirs = @build_configdirs@ +buildargs = @buildargs@ +hostargs = @hostargs@ +install_sh = @install_sh@ +targetargs = @targetargs@ + +EXTRA_DIST = gcc-no_bsp.cfg gcc-portsw.cfg gcc-target-default.cfg +subdir = make/compilers +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DIST_COMMON = Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/automake/host.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign make/compilers/Makefile +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = ../.. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile + +installdirs: + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am info info-am install \ + install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic uninstall uninstall-am uninstall-info-am + + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +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: Index: compilers/gcc-portsw.cfg =================================================================== --- compilers/gcc-portsw.cfg (nonexistent) +++ compilers/gcc-portsw.cfg (revision 1765) @@ -0,0 +1,288 @@ +# +# gcc-no_bsp.cfg,v 1.13 1995/12/19 19:59:57 joel Exp +# +# This is for the amd29k portsw board. +# +# THIS IS NOT A GNU TOOLS BASED PORT!!! +# + +# Prefix on the installed GNU tools +# Just use the native tools +GNU_TOOLS_PREFIX= + +# Additional target names (other than debug, profile) +TARGET_VARIANTS += + +# +# Pre-processor defines. +# Local tailoring (on the command line) can be done by setting XCPPFLAGS +# which is never set in the Makefile's +# +# Possible defines include: +# -DRTEMS_LIBC using libc bundled with RTEMS +# -DRTEMS_NEWLIB using CYGNUS libc +# -DMALLOC_PROVIDED must be used for newlib reent struct + +DEFINES:= $(LIBC_DEFINES) + +GCC_INCLUDE=. + +# Note: normally we do not want the standard include files +# Also we usually include a "libc_include" directory +CPPFLAGS=$(XCPPFLAGS) $(DEFINES) \ + -I$(RTEMS_LIBC_DIR)/include \ + -I$(PROJECT_INCLUDE) \ + -I/opt/29k/src/inc + +# +# Local tailoring (on the command line) can be done by setting XCFLAGS +# which is never set in the Makefile's +# + +# +# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we +# would want the corresponding macros to be set to. +# +# CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf +# Makefiles by the 'debug:' and 'profile:' targets to their _V values. +# + +# default flags + +#CFLAGS_DEFAULT = -NB -bwc -nocrt0 -Ml -m -g -Hon=Pointers_compatible -Hon=Pointers_compatible_with_ints -Dinline= -D___AM29K__ -Hnocopyr +CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall + +# optimize flag: typically -0, could use -O4 or -fast +# -O4 is ok for RTEMS +# -Os to optimize for size +CFLAGS_OPTIMIZE_V=-Os + +# debug flag; typically -g +CFLAGS_DEBUG_V=-g -O0 -DRTEMS_DEBUG -DSTACK_CHECKER_ON + +# profile flag; use gprof(1) +CFLAGS_PROFILE_V= + +# default is to optimize +CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V) + +# dynamic libraries +CFLAGS_DYNAMIC_V=-fpic +#ASFLAGS_DYNAMIC_V= + +CFLAGS=$(CFLAGS_DEFAULT) $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) + +# List of library paths without -L +LD_PATHS= $(PROJECT_RELEASE)/lib + +# libraries you want EVERYONE to link with +LD_LIBS= + +# ld flag to ensure pure-text +LDFLAGS_MUST_BE_PURE_V = + +# ld flag for [un]shared objects +LDFLAGS_STATIC_LIBRARIES_V = +LDFLAGS_SHARED_LIBRARIES_V = + +# ld flag for incomplete link +LDFLAGS_INCOMPLETE = -i + +# Special linker options when building lib.so +LDFLAGS_DYNAMIC_V = ?? + +# Some dynamic linking systems want the preferred name recorded in the binary +# ref: src/libxil/Makefile +LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME) + +# ld flags for profiling, debugging +LDFLAGS_PROFILE_V = +LDFLAGS_DEBUG_V = + +LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %) + +# +# Stuff to clean and clobber for the compiler and its tools +# + +CLEAN_CC = a.out *.o *.BAK +CLOBBER_CC = + +# +# Client compiler and support tools +# + +CC=/opt/29k/bin/hc29 +CXX=$(CC) +CCC=$(CXX) + +# CPP command to write file to standard output +CPP=$(CC) -E + +AS=/opt/29k/bin/as29 +ASPP=ERROR_NO_ASPP + +ASFLAGS=-l -fcgimosx + +# NOTE: should never use full path .. but there is no guarantee ld, etc +# will be in the same directory as gcc.. so hope they are in the path +# Don't do this on a real target!!! +LD=/opt/29k/bin/ld29 +NM=/opt/29k/bin/nm29 +AR=echo making library +# egrep regexp to ignore symbol table entries in ar archives. +# Only used to make sure we skip them when coalescing libraries. +# skip __.SYMDEF and empty names (maybe bug in ranlib??). +AR_SYMBOL_TABLE="HIGHLY-UNLIKELY-TO-CONFLICT" +ARFLAGS=ruv + +# NOTE: see comment on ld, nm, ar +SIZE=size + +# +# Command to convert a normal archive to one searchable by $(LD) +# Not needed on SVR4 +# + +MKLIB=/opt/29k/bin/lib29 + +# +# How to compile stuff into ${ARCH} subdirectory +# +# NOTE: we override COMPILE.c +# + +COMPILE.c=$(CC) -c $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) + +${ARCH}/%.o: %.c + ${COMPILE.c} -o $@ $< + $(CHMOD) -f g+w $@ + +${ARCH}/%.o: %.cc + ${COMPILE.c} -o $@ $< + $(CHMOD) -f g+w $@ + +${ARCH}/%.o: %.s + ${COMPILE.c} -DASM -o $@ $< + $(CHMOD) -f g+w $@ + +${ARCH}/%.o: %.S + $(CP) $*.s $(ARCH)/$*.c + $(CPP) $(CPPFLAGS) $(ARCH)/$*.c > $(ARCH)/$*.s + ${COMPILE.c} -o $@ $(ARCH)/$*.s + $(CHMOD) -f g+w $@ + $(RM) $(ARCH)/$*.c + +# Specify our own default rule for this to prevent having CFLAGS and +# CPPFLAGS being passed to linker +${ARCH}/%: ${ARCH}/%.o + ${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS} + $(CHMOD) -f g+w $@ + +# Make foo.rel from foo.o +${ARCH}/%.rel: ${ARCH}/%.o + ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^ + $(CHMOD) -f g+w $@ + +# create $(ARCH)/pgm from pgm.sh +${ARCH}/%: %.sh + $(RM) $@ + $(CP) $< $@ + $(CHMOD) +x $@ + $(CHMOD) -f g+w $@ + +# Dependency files for use by gmake +# NOTE: we don't put them into $(ARCH) +# so that 'make clean' doesn't blow it away + +DEPEND=Depends-${ARCH} + +CLEAN_DEPEND=$(DEPEND).tmp +CLOBBER_DEPEND=$(DEPEND) + +# We deliberately don't have anything depend on the +# $(DEPEND) file; otherwise it will get rebuilt even +# on 'make clean' +# + +depend: $(C_FILES) $(CC_FILES) $(S_FILES) +ifneq ($(words $(C_FILES) $(CC_FILES) $(S_FILES)), 0) +# Use gcc -M to generate dependencies +# Replace foo.o with $(ARCH)/foo.o +# Replace $(ARCH) value with string $(ARCH) +# so that it will for debug and profile cases + $(COMPILE.c) -Hmake $^ | \ + $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \ + -e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp + + $(MV) $(DEPEND).tmp $(DEPEND) + $(CHMOD) -f g+w $(DEPEND) +endif + + +# spell out all the LINK_FILE's, rather than using -lbsp, so +# that $(LINK_FILES) can be a dependency + +# Start file must be one of +# $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o +# $(PROJECT_RELEASE)/lib/asmiface$(LIB_VARIANT).o +# It defaults to start.o, but an app can override it. + +# Note: Normally RTEMS provides a start file... +START_FILE= $(PROJECT_RELEASE)/lib/crt0$(LIB_VARIANT).o $(PROJECT_RELEASE)/lib/register$(LIB_VARIANT).o + +LIBC_LOW= $(PROJECT_RELEASE)/lib/libcsupport$(LIBSUFFIX_VA) + +LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name $(GCCSED)) + +LIBOSBOOT=/home/src/amd29k/sps2000/netrom.o + +LINK_FILES= \ + $(START_FILE) \ + $(OBJS) \ + $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \ + $(PROJECT_RELEASE)/lib/libbsp$(LIBSUFFIX_VA) \ + $(LD_LIBS) \ + $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) \ + $(PROJECT_RELEASE)/lib/librtems$(LIBSUFFIX_VA) \ + $(LIBC_LOW) \ + $(PROJECT_RELEASE)/lib/libmisc$(LIBSUFFIX_VA) \ + $(LIBC_LIBC) \ + $(LIBC_EXTRALIBS) \ + $(LIBC_LIBM) +# /home/craigl/osbdbg.o + +# Here is the rule to actually build a $(ARCH)/foo.exe +# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm +# Usage ref: src/tests/sptest/sp1/Makefile + +define make-exe + if [ $(NO_ROM) ]; then echo "\n\nskipping ROM compile\n"; else \ + $(CC) -nocrt0 -cmd$(PROJECT_RELEASE)/lib/romlink -u _times -u _gettimeofday \ + -u _sleep -o $(basename $@).out $(LIBOSBOOT) $(LINK_FILES); \ + romcoff -r -t -l -b $(basename $@).out raminit.o; \ + rm $(basename $@).out; \ + $(CC) -m -u _times -u _gettimeofday -u _sleep -o $(basename $@).romcof $(LIBOSBOOT) \ + $(LINK_FILES) raminit.o -nocrt0 -cmd$(PROJECT_RELEASE)/lib/romlink > $(basename $@).rommap ; \ + rm raminit.o ; \ + $(CHMOD) -f g+w $(basename $@).romcof; \ + /opt/green/coff2sr -noS5 $(basename $@).romcof -o $(basename $@).srec; \ + $(CHMOD) -f g+w $(basename $@).srec; \ + fi + if [ $(CREATE_MAP) ]; then \ + $(CC) -m -u _times -u _gettimeofday -u _sleep -o $(basename $@).exe $(LINK_FILES) -nocrt0 -cmd$(PROJECT_RELEASE)/lib/ramlink > $(basename $@).rammap; \ + else \ + rm $(basename $@).rommap > /dev/null 2> /dev/null ; \ + $(CC) -u _times -u _gettimeofday -u _sleep -o $(basename $@).exe $(LINK_FILES) -nocrt0 -cmd$(PROJECT_RELEASE)/lib/ramlink; \ + fi + $(CHMOD) -f g+w $(basename $@).exe +# $(CC) -o $(basename $@).exe $(LINK_FILES) -nocrt0 -cmd/opt/29k/lib/link030.cmd + $(NM) -g $(basename $@).exe > $(basename $@).num + $(CHMOD) -f g+w $(basename $@).num +# $(SIZE) $(basename $@).exe +endef + +define make-rel + $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $(OBJS) + $(CHMOD) -f g+w $@ +endef Index: compilers/gcc-no_bsp.cfg =================================================================== --- compilers/gcc-no_bsp.cfg (nonexistent) +++ compilers/gcc-no_bsp.cfg (revision 1765) @@ -0,0 +1,286 @@ +# +# gcc-no_bsp.cfg,v 1.10 2002/01/06 20:09:42 joel Exp +# +# gcc 2.6.x compiler for a "native" nocpu/nobsp system +# Compiler (and tools) configuration +# + +# Prefix on the installed GNU tools +# Just use the native tools +GNU_TOOLS_PREFIX= + +# Additional target names (other than debug, profile) +TARGET_VARIANTS += + +# +# Pre-processor defines using the target options header file. +# +# Local tailoring (on the command line) can be done by setting XCFLAGS +# or XCPPFLAGS -- neither of which are never set in the Makefile's +# + +CPPFLAGS=$(CFLAGS) $(XCPPFLAGS) $(DEFINES) + +CPLUS_CPPFLAGS=$(CFLAGS) $(XCPPFLAGS) $(DEFINES) + +# 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. +# +# RTEMS_TEST_NO_PAUSE (RTEMS tests) +# do not pause between screens of output in the rtems tests +# +# NO_TABLE_MOVE (SPARC PORT) +# do not have a second trap table -- use the BSP's +# +# STACK_CHECKER_ON (RTEMS support code) +# If defined, stack bounds checking is enabled. +# +# RTEMS_DEBUG (RTEMS) +# If defined, debug checks in RTEMS and support library code are enabled. + +define make-target-options + echo "/* #define NDEBUG 1 */ " >>$@ + echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ + echo "/* #define STACK_CHECKER_ON 1 */" >>$@ + echo "/* #define RTEMS_DEBUG 1 */" >>$@ +endef + +# +# Local tailoring (on the command line) can be done by setting XCFLAGS +# which is never set in the Makefile's +# + +# +# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we +# would want the corresponding macros to be set to. +# +# CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf +# Makefiles by the 'debug:' and 'profile:' targets to their _V values. +# + +# default flags + +# +# This contains the compiler options necessary to select the CPU model +# and (hopefully) optimize for it. +# +CPU_CFLAGS = + +CFLAGS_DEFAULT = $(CPU_CFLAGS) -Wall + +# optimize flag: typically -0, could use -O4 or -fast +# -O4 is ok for RTEMS +CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer + +# debug flag; typically -g +CFLAGS_DEBUG_V=-g -Wno-unused + +# profile flag; use gprof(1) +CFLAGS_PROFILE_V=-pg + +# default is to optimize +CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V) + +# dynamic libraries +CFLAGS_DYNAMIC_V=-fpic +# ASFLAGS_DYNAMIC_V= + +CFLAGS=$(CFLAGS_DEFAULT) $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) \ + -I $(PROJECT_INCLUDE) + +# List of library paths without -L +LD_PATHS= $(PROJECT_RELEASE)/lib + +# libraries you want EVERYONE to link with +LD_LIBS= + +# ld flag to ensure pure-text +LDFLAGS_MUST_BE_PURE_V = + +# ld flag for [un]shared objects +LDFLAGS_STATIC_LIBRARIES_V = +LDFLAGS_SHARED_LIBRARIES_V = + +# ld flag for incomplete link +LDFLAGS_INCOMPLETE = -r + +# Special linker options when building lib.so +LDFLAGS_DYNAMIC_V = ?? + +# Some dynamic linking systems want the preferred name recorded in the binary +# ref: src/libxil/Makefile +LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME) + +# ld flags for profiling, debugging +LDFLAGS_PROFILE_V = +LDFLAGS_DEBUG_V = + +LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %) + +# +# Stuff to clean and clobber for the compiler and its tools +# + +CLEAN_CC = a.out *.o *.BAK +CLOBBER_CC = + +# +# Client compiler and support tools +# + +CC=gcc +CXX=$(CC) +CCC=$(CXX) + +# CPP command to write file to standard output +CPP=$(CC) -E + +AS=as +ASPP=ERROR_NO_ASPP + +ASFLAGS= + + +# NOTE: should never use full path .. but there is no guarantee ld, etc +# will be in the same directory as gcc.. so hope they are in the path +# Don't do this on a real target!!! +LD=ld +NM=nm +AR=ar +# egrep regexp to ignore symbol table entries in ar archives. +# Only used to make sure we skip them when coalescing libraries. +# skip __.SYMDEF and empty names (maybe bug in ranlib??). +AR_SYMBOL_TABLE="HIGHLY-UNLIKELY-TO-CONFLICT" +ARFLAGS=ruv + +# NOTE: see comment on ld, nm, ar +SIZE=size + +# +# Command to convert a normal archive to one searchable by $(LD) +# Not needed on SVR4 +# + +MKLIB=echo library is complete: + +# +# How to compile stuff into ${ARCH} subdirectory +# +# NOTE: we override COMPILE.c +# + +COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) -c + +${ARCH}/%.o: %.c + ${COMPILE.c} -o $@ $< + +${ARCH}/%.o: %.cc + ${COMPILE.c} -o $@ $< + +${ARCH}/%.o: %.S + ${COMPILE.c} -DASM -o $@ $< + +${ARCH}/%.o: %.s + $(CPP) $(CPPFLAGS) - <$*.s >$(ARCH)/$*.i + $(AS) $(ASFLAGS) -o $@ $(ARCH)/$*.i +# $(RM) $(ARCH)/$*.i + +# Specify our own default rule for this to prevent having CFLAGS and +# CPPFLAGS being passed to linker +${ARCH}/%: ${ARCH}/%.o + ${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS} + +# Make foo.rel from foo.o +${ARCH}/%.rel: ${ARCH}/%.o + ${LD} $(LDFLAGS_INCOMPLETE) -o $@ $^ + +# create $(ARCH)/pgm from pgm.sh +${ARCH}/%: %.sh + $(RM) $@ + $(CP) $< $@ + $(CHMOD) +x $@ + +# Dependency files for use by gmake +# NOTE: we don't put them into $(ARCH) +# so that 'make clean' doesn't blow it away + +DEPEND=Depends-${ARCH} + +CLEAN_DEPEND=$(DEPEND).tmp +CLOBBER_DEPEND=$(DEPEND) + +# We deliberately don't have anything depend on the +# $(DEPEND) file; otherwise it will get rebuilt even +# on 'make clean' +# + +depend: $(C_FILES) $(CC_FILES) $(S_FILES) +ifneq ($(words $(C_FILES) $(CC_FILES) $(S_FILES)), 0) +# Use gcc -M to generate dependencies +# Replace foo.o with $(ARCH)/foo.o +# Replace $(ARCH) value with string $(ARCH) +# so that it will for debug and profile cases + $(COMPILE.c) -M $^ | \ + $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \ + -e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp + $(MV) $(DEPEND).tmp $(DEPEND) +endif + + +# List (possibly empty) of required managers +# We require: +# region -- used by lib/libcsupport for malloc() +# ext -- used by libc for libc reentrancy hooks + +MANAGERS_REQUIRED=region ext sem + +# Create a RTEMS executable based on MANAGERS which was set in +# app's Makefile + +MANAGERS_NOT_WANTED=$(filter-out $(MANAGERS), $(MANAGER_LIST)) +MANAGERS_NOT_WANTED:=$(filter-out $(MANAGERS_REQUIRED), $(MANAGERS_NOT_WANTED)) + +# spell out all the LINK_FILE's, rather than using -lbsp, so +# that $(LINK_FILES) can be a dependency + +# Start file must be one of +# $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o +# $(PROJECT_RELEASE)/lib/asmiface$(LIB_VARIANT).o +# It defaults to start.o, but an app can override it. + +# Note: Normally RTEMS provides a start file... +START_FILE= + +CONSTRUCTOR= + +LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name $(GCCSED)) + +LINK_FILES= $(START_FILE) \ + $(CONSTRUCTOR) \ + $(OBJS) \ + $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \ + $(LD_LIBS) \ + $(LIBC_EXTRA_LIBS) \ + $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) \ + $(PROJECT_RELEASE)/lib/librtemsbsp$(LIBSUFFIX_VA) \ + $(PROJECT_RELEASE)/lib/librtemscpu$(LIBSUFFIX_VA) \ + $(LIBC_LIBM) $(LIBC_LIBC) $(LIBGCC) + +# Here is the rule to actually build a $(ARCH)/foo.exe +# It also builds $(ARCH)/foo.sr and $(ARCH)/foo.nm +# Usage ref: src/tests/sptest/sp1/Makefile + +# On Solaris at least you need to had /usr/ucblib/libucb.a + +define make-exe + $(CC) -o $(basename $@).exe $(LINK_FILES) -lc -lm + $(NM) -n $(basename $@).exe > $(basename $@).num + $(SIZE) $(basename $@).exe +endef + +define make-rel + $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $(OBJS) +endef Index: compilers/Makefile.am =================================================================== --- compilers/Makefile.am (nonexistent) +++ compilers/Makefile.am (revision 1765) @@ -0,0 +1,9 @@ +## +## Makefile.am,v 1.5 2002/03/28 00:54:29 joel Exp +## + + +EXTRA_DIST = gcc-no_bsp.cfg gcc-portsw.cfg gcc-target-default.cfg + +## ------------------------------------------------------- +include $(top_srcdir)/automake/host.am Index: compilers =================================================================== --- compilers (nonexistent) +++ compilers (revision 1765)
compilers Property changes : Added: svn:ignore ## -0,0 +1,2 ## +Makefile +Makefile.in Index: Templates/Makefile.in =================================================================== --- Templates/Makefile.in (nonexistent) +++ Templates/Makefile.in (revision 1765) @@ -0,0 +1,276 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../.. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@ +BARE_CPU_MODEL = @BARE_CPU_MODEL@ +BUILD_SUBDIRS = @BUILD_SUBDIRS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC_SPECS = @GCC_SPECS@ +HAS_NETWORKING = @HAS_NETWORKING@ +HAS_RDBG = @HAS_RDBG@ +HOST_SUBDIRS = @HOST_SUBDIRS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAINT = @MAINT@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PACKHEX = @PACKHEX@ +PROJECT_INCLUDE = @PROJECT_INCLUDE@ +PROJECT_RELEASE = @PROJECT_RELEASE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RTEMS_BSP = @RTEMS_BSP@ +RTEMS_BSP_SPECS = @RTEMS_BSP_SPECS@ +RTEMS_CPU = @RTEMS_CPU@ +RTEMS_HAS_ITRON_API = @RTEMS_HAS_ITRON_API@ +RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@ +RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@ +RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@ +RTEMS_ROOT = @RTEMS_ROOT@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_USE_MACROS = @RTEMS_USE_MACROS@ +STRIP = @STRIP@ +TARGET_SUBDIRS = @TARGET_SUBDIRS@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +bsplibdir = @bsplibdir@ +build_configdirs = @build_configdirs@ +buildargs = @buildargs@ +hostargs = @hostargs@ +install_sh = @install_sh@ +targetargs = @targetargs@ + +rtems_makedir = $(prefix)/make +rtems_make_Templatesdir = $(rtems_makedir)/Templates + +rtems_make_Templates_DATA = Makefile.dir Makefile.leaf Makefile.lib +subdir = make/Templates +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(rtems_make_Templates_DATA) + +DIST_COMMON = Makefile.am Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/automake/host.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign make/Templates/Makefile +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +rtems_make_TemplatesDATA_INSTALL = $(INSTALL_DATA) +install-rtems_make_TemplatesDATA: $(rtems_make_Templates_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(rtems_make_Templatesdir) + @list='$(rtems_make_Templates_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(rtems_make_TemplatesDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_make_Templatesdir)/$$f"; \ + $(rtems_make_TemplatesDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_make_Templatesdir)/$$f; \ + done + +uninstall-rtems_make_TemplatesDATA: + @$(NORMAL_UNINSTALL) + @list='$(rtems_make_Templates_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(rtems_make_Templatesdir)/$$f"; \ + rm -f $(DESTDIR)$(rtems_make_Templatesdir)/$$f; \ + done +tags: TAGS +TAGS: + +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = ../.. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(rtems_make_Templatesdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-rtems_make_TemplatesDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-info-am uninstall-rtems_make_TemplatesDATA + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am info info-am install \ + install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-rtems_make_TemplatesDATA install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + uninstall uninstall-am uninstall-info-am \ + uninstall-rtems_make_TemplatesDATA + + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +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: Index: Templates/Makefile.lib =================================================================== --- Templates/Makefile.lib (nonexistent) +++ Templates/Makefile.lib (revision 1765) @@ -0,0 +1,61 @@ +# +# Makefile.lib,v 1.5 2000/06/12 15:00:14 joel Exp +# +# Templates/Makefile.lib +# Template library Makefile +# + +LIBNAME=libfoo.a # xxx- your library names goes here +LIB=${ARCH}/${LIBNAME} + +# C and C++ source names, if any, go here -- minus the .c or .cc +C_PIECES=xxxd xxxe xxxf +C_FILES=$(C_PIECES:%=%.c) +C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) + +CC_PIECES=xxxa xxxb xxxc +CC_FILES=$(CC_PIECES:%=%.cc) +CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o) + +H_FILES= + +# Assembly source names, if any, go here -- minus the .S +S_PIECES= +S_FILES=$(S_PIECES:%=%.S) +S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) + +SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) +OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) + +include $(RTEMS_MAKEFILE_PATH)/Makefile.inc + +include $(RTEMS_CUSTOM) +include $(RTEMS_ROOT)/make/lib.cfg + +# +# Add local stuff here using += +# + +DEFINES += +CPPFLAGS += +CFLAGS += + +# +# Add your list of files to delete here. The config files +# already know how to delete some stuff, so you may want +# to just run 'make clean' first to see what gets missed. +# 'make clobber' already includes 'make clean' +# + +CLEAN_ADDITIONS += xxx-your-debris-goes-here +CLOBBER_ADDITIONS += + +all: ${ARCH} $(SRCS) $(LIB) + +$(LIB): ${OBJS} + $(make-library) + +# Install the library, appending _g or _p as appropriate. +# for include files, just use $(INSTALL_CHANGE) +install: all + $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib Index: Templates/Makefile.leaf =================================================================== --- Templates/Makefile.leaf (nonexistent) +++ Templates/Makefile.leaf (revision 1765) @@ -0,0 +1,80 @@ +# +# Makefile.leaf,v 1.7 2002/07/22 22:56:09 joel Exp +# +# Templates/Makefile.leaf +# Template leaf node Makefile +# + +# C source names, if any, go here -- minus the .c +C_PIECES=xxxd xxxe xxxf +C_FILES=$(C_PIECES:%=%.c) +C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) + +# C++ source names, if any, go here -- minus the .cc +CC_PIECES=xxxa xxxb xxxc +CC_FILES=$(CC_PIECES:%=%.cc) +CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o) + +H_FILES= + +# Assembly source names, if any, go here -- minus the .S +S_PIECES= +S_FILES=$(S_PIECES:%=%.S) +S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) + +SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) +OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) + +PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one + +# List of RTEMS Classic API Managers to be included in the application +# goes here. Use: +# MANAGERS=all +# to include all RTEMS Classic API Managers in the application or +# something like this to include a specific set of managers. +# MANAGERS=io event message rate_monotonic semaphore timer +MANAGERS=XXX + +include $(RTEMS_MAKEFILE_PATH)/Makefile.inc + +include $(RTEMS_CUSTOM) +include $(RTEMS_ROOT)/make/leaf.cfg + +# +# (OPTIONAL) Add local stuff here using += +# + +DEFINES += +CPPFLAGS += +CFLAGS += + +# +# CFLAGS_DEBUG_V are used when the `make debug' target is built. +# To link your application with the non-optimized RTEMS routines, +# uncomment the following line: +# CFLAGS_DEBUG_V += -qrtems_debug +# + +LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any +LD_LIBS += xxx-your-libraries-go-here eg: -lvx +LDFLAGS += + +# +# Add your list of files to delete here. The config files +# already know how to delete some stuff, so you may want +# to just run 'make clean' first to see what gets missed. +# 'make clobber' already includes 'make clean' +# + +CLEAN_ADDITIONS += xxx-your-debris-goes-here +CLOBBER_ADDITIONS += + +all: ${ARCH} $(SRCS) $(PGMS) + +${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES} + $(make-exe) + +# Install the program(s), appending _g or _p as appropriate. +# for include files, just use $(INSTALL_CHANGE) +install: all + $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin Index: Templates/Makefile.am =================================================================== --- Templates/Makefile.am (nonexistent) +++ Templates/Makefile.am (revision 1765) @@ -0,0 +1,11 @@ +## +## Makefile.am,v 1.6 2002/03/28 00:54:29 joel Exp +## + + +rtems_makedir = $(prefix)/make +rtems_make_Templatesdir = $(rtems_makedir)/Templates + +rtems_make_Templates_DATA = Makefile.dir Makefile.leaf Makefile.lib + +include $(top_srcdir)/automake/host.am Index: Templates/Makefile.dir =================================================================== --- Templates/Makefile.dir (nonexistent) +++ Templates/Makefile.dir (revision 1765) @@ -0,0 +1,11 @@ +# +# Makefile.dir,v 1.4 2000/06/12 15:00:14 joel Exp +# + +include $(RTEMS_MAKEFILE_PATH)/Makefile.inc + +include $(RTEMS_CUSTOM) +include $(RTEMS_ROOT)/make/directory.cfg + +SUBDIRS=a b c your-directories-go-here + Index: Templates =================================================================== --- Templates (nonexistent) +++ Templates (revision 1765)
Templates Property changes : Added: svn:ignore ## -0,0 +1,2 ## +Makefile +Makefile.in Index: host.cfg.in =================================================================== --- host.cfg.in (nonexistent) +++ host.cfg.in (revision 1765) @@ -0,0 +1,55 @@ +# +# host.cfg.in,v 1.14 2001/02/05 18:21:18 joel Exp +# +# OS-specific configuration +# +# Derived from rtems/c/make/os/*.cfg in previous RTEMS version. +# + +RTEMS_HOST = @RTEMS_HOST@ + +# +# Stuff to clean and clobber for the OS +# + +CLEAN_OS = +CLOBBER_OS = *~ *.bak TAGS tags + +SHELL=@SHELL@ +ECHO=echo + +CAT=cat +CP=@CP@ +MV=@MV@ +LN=@LN@ +MKDIR=mkdir +CHMOD=chmod +SED=sed + +# Global tools +ifndef PACKHEX +PACKHEX=$(PROJECT_BIN)/packhex +endif + +ifndef INSTALL_CHANGE +INSTALL_CHANGE=$(PROJECT_BIN)/install-if-change +endif +INSTALL_VARIANT=$(INSTALL_CHANGE) -V "$(LIB_VARIANT)" + +# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture +# of '\\' and '/' as path separators. +# Should be removed as soon as this bug is fixed in egcs. +GCCSED = @GCCSED@ + +# ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile +# +# Must have shell functions. Some ksh's core dump mysteriously and +# unreliably on RTEMS shell scripts. bash appears to be the most +# reliable but late model ksh's are usually OK. +KSH=@KSH@ + +INSTBINFLAGS = -m 0755 +INSTDATAFLAGS = -m 0644 +INSTLIBFLAGS = -m 0644 +INSTDIRFLAGS = -m 0755 -d +INSTINCFLAGS = -m 0644 Index: Makefile.in =================================================================== --- Makefile.in (nonexistent) +++ Makefile.in (revision 1765) @@ -0,0 +1,424 @@ +# Makefile.in generated by automake 1.6.2 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : + +EXEEXT = @EXEEXT@ +OBJEXT = @OBJEXT@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +AMTAR = @AMTAR@ +AWK = @AWK@ +BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@ +BARE_CPU_MODEL = @BARE_CPU_MODEL@ +BUILD_SUBDIRS = @BUILD_SUBDIRS@ +DEPDIR = @DEPDIR@ +ENDIF = @ENDIF@ +GCC_SPECS = @GCC_SPECS@ +HAS_NETWORKING = @HAS_NETWORKING@ +HAS_RDBG = @HAS_RDBG@ +HOST_SUBDIRS = @HOST_SUBDIRS@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +MAINT = @MAINT@ +MAKE = @MAKE@ +PACKAGE = @PACKAGE@ +PACKHEX = @PACKHEX@ +PROJECT_INCLUDE = @PROJECT_INCLUDE@ +PROJECT_RELEASE = @PROJECT_RELEASE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RTEMS_BSP = @RTEMS_BSP@ +RTEMS_BSP_SPECS = @RTEMS_BSP_SPECS@ +RTEMS_CPU = @RTEMS_CPU@ +RTEMS_HAS_ITRON_API = @RTEMS_HAS_ITRON_API@ +RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@ +RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@ +RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@ +RTEMS_ROOT = @RTEMS_ROOT@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +RTEMS_USE_MACROS = @RTEMS_USE_MACROS@ +STRIP = @STRIP@ +TARGET_SUBDIRS = @TARGET_SUBDIRS@ +VERSION = @VERSION@ +am__include = @am__include@ +am__quote = @am__quote@ +bsplibdir = @bsplibdir@ +build_configdirs = @build_configdirs@ +buildargs = @buildargs@ +hostargs = @hostargs@ +install_sh = @install_sh@ +targetargs = @targetargs@ + +rtems_makedir = $(prefix)/make + +rtems_make_DATA = main.cfg leaf.cfg + +EXTRA_DIST = README directory.cfg host.cfg.in leaf.cfg lib.cfg + +SUBDIRS = Templates custom compilers +subdir = make +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(rtems_make_DATA) + + +RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ + uninstall-info-recursive all-recursive install-data-recursive \ + install-exec-recursive installdirs-recursive install-recursive \ + uninstall-recursive check-recursive installcheck-recursive +DIST_COMMON = README ChangeLog Makefile.am Makefile.in +DIST_SUBDIRS = $(SUBDIRS) +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/automake/subdirs.am $(top_srcdir)/automake/host.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign make/Makefile +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +uninstall-info-am: +rtems_makeDATA_INSTALL = $(INSTALL_DATA) +install-rtems_makeDATA: $(rtems_make_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(rtems_makedir) + @list='$(rtems_make_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(rtems_makeDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_makedir)/$$f"; \ + $(rtems_makeDATA_INSTALL) $$d$$p $(DESTDIR)$(rtems_makedir)/$$f; \ + done + +uninstall-rtems_makeDATA: + @$(NORMAL_UNINSTALL) + @list='$(rtems_make_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(rtems_makedir)/$$f"; \ + rm -f $(DESTDIR)$(rtems_makedir)/$$f; \ + done + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @set fnord $$MAKEFLAGS; amf=$$2; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done + +ETAGS = etags +ETAGSFLAGS = + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$tags$$unique" \ + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir = .. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d $(distdir)/$$subdir \ + || mkdir $(distdir)/$$subdir \ + || exit 1; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" \ + distdir=../$(distdir)/$$subdir \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) +installdirs: installdirs-recursive +installdirs-am: + $(mkinstalldirs) $(DESTDIR)$(rtems_makedir) + +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +info: info-recursive + +info-am: + +install-data-am: install-rtems_makeDATA + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +uninstall-am: uninstall-info-am uninstall-rtems_makeDATA + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ + clean-generic clean-recursive distclean distclean-generic \ + distclean-recursive distclean-tags distdir dvi dvi-am \ + dvi-recursive info info-am info-recursive install install-am \ + install-data install-data-am install-data-recursive \ + install-exec install-exec-am install-exec-recursive \ + install-info install-info-am install-info-recursive install-man \ + install-recursive install-rtems_makeDATA install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + installdirs-recursive maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-recursive tags tags-recursive uninstall \ + uninstall-am uninstall-info-am uninstall-info-recursive \ + uninstall-recursive uninstall-rtems_makeDATA + + +depend-recursive \ +preinstall-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +preinstall: preinstall-recursive +.PHONY: preinstall-recursive + +depend: depend-recursive +.PHONY: depend-recursive + +debug: + @echo + @echo "\"make debug\" is obsolete, instead use:" + @echo " make VARIANT=DEBUG" + @echo + +.PHONY: debug + +profile: + @echo + @echo "\"make profile\" is obsolete, instead use:" + @echo " make VARIANT=PROFILE" + @echo + +preinstall-am: $(PREINSTALL_FILES) +preinstall: preinstall-am +.PHONY: preinstall preinstall-am + +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: Index: directory.cfg =================================================================== --- directory.cfg (nonexistent) +++ directory.cfg (revision 1765) @@ -0,0 +1,60 @@ +# +# directory.cfg,v 1.9 1999/11/22 13:36:46 joel Exp +# +# make/directory.cfg +# +# Make(1) configuration file include'd by all directory-level Makefile's. +# +# See also make/main.cfg +# + +# This is a simplified variant of automake-1.4's rule for handling +# subdirectories +$(RECURSE_TARGETS): + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed -e s/-recursive// -e s/debug_// -e s/profile_// `; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + local_target="$$target"; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" + + +# mostlyclean-recursive maintainer-clean-recursive: +clean-recursive \ +distclean-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ + rev="$$subdir $$rev"; \ + test "$$subdir" = "." && dot_seen=yes; \ + done; \ + test "$$dot_seen" = "no" && rev=". $$rev"; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" + +clean-am: clean-generic +distclean-am: distclean-generic clean-am + +preinstall: preinstall-recursive +.PHONY: preinstall preinstall-am preinstall-recursive + +distclean: distclean-recursive + -$(RM) config.status + +.PHONY: distclean distclean-am distclean-recursive + +clean: clean-recursive +.PHONY: clean clean-am clean-recursive + Index: main.cfg =================================================================== --- main.cfg (nonexistent) +++ main.cfg (revision 1765) @@ -0,0 +1,76 @@ +# +# main.cfg,v 1.12 2001/02/05 18:21:18 joel Exp +# +# make/main.cfg +# +# Make(1) configuration file include'd by all Makefile's +# + +# +# where things are relative to PROJECT_ROOT; shouldn't need to change, +# but could be overridden in custom files. +# + +PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP) +PROJECT_BIN=$(PROJECT_ROOT)/bin +PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools + +# +# Target architecture; may be changed as per 'make "ARCH=debug"' +# This is where the object files get put. +# + +ARCH=o-optimize + +VARIANT= + +# +# Initial target for make(1) +# Once this is established we can safely include other targets +# within this make-include file. +# + +default_target: all + +# +# Default makefile name +# May be overridden by command line macro assignment +# + +MAKEFILE=Makefile + +# +# Target variant names +# +TARGET_VARIANTS = optimize debug profile + +# +# Generate list of object directories: o-optimize, o-debug, o-profile +# +VARIANTS=${TARGET_VARIANTS:%=o-%} + +# +# List of "recursion-able" targets for directory Makefiles +# + +RECURSE_TARGETS=all depend install \ +preinstall-recursive \ +$(TARGET_VARIANTS) + +${ARCH}: + test -d ${ARCH} || mkdir ${ARCH} + +ifndef AUTOMAKE +distclean-generic: + -$(RM) .#* $(CONFIG_CLEAN_FILES) + -$(RM) -r $(CLOBBER_ADDITIONS) + +clean-generic: + -$(RM) a.out core mon.out gmon.out + -$(RM) -r $(CLEAN_ADDITIONS) +endif + +.PHONY: $(RECURSE_TARGETS) +.PHONY: clean-generic +.PHONY: distclean-generic Index: lib.cfg =================================================================== --- lib.cfg (nonexistent) +++ lib.cfg (revision 1765) @@ -0,0 +1,18 @@ +# +# lib.cfg,v 1.4 2001/02/05 18:21:18 joel Exp +# +# make/lib.cfg +# +# Make(1) configuration file include'd by all "library" Makefile +# Assumes $(LIB) is set to $(ARCH)/libfoo.a +# + +include $(PROJECT_ROOT)/make/leaf.cfg + +define make-library +$(RM) $@ +$(AR) $(ARFLAGS) $@ $(OBJS) +$(RANLIB) $@ +endef + +.PRECIOUS: $(LIB) Index: leaf.cfg =================================================================== --- leaf.cfg (nonexistent) +++ leaf.cfg (revision 1765) @@ -0,0 +1,124 @@ +# +# leaf.cfg,v 1.16 2001/05/08 22:59:25 joel Exp +# +# make/leaf.cfg +# +# Make(1) configuration file include'd by all leaf-node Makefiles +# + +# +# list of all known managers +# This list is used, along with $(MANAGERS) (set by app makefile) +# to build the list of *not wanted* drivers. +# +# ref: target compiler config file for usage +# + +MANAGER_LIST=dpmem event io msg mp part region sem signal timer rtmon ext + +# Convert *real* spellings in $(MANAGERS) (set +# in application makefile) to their "correct" name. +# (I hate abbreviations :-) + +MANAGERS := $(patsubst message, msg, $(MANAGERS)) +MANAGERS := $(patsubst multi_processor, mp, $(MANAGERS)) +MANAGERS := $(patsubst partition, part, $(MANAGERS)) +MANAGERS := $(patsubst rate_monotonic, rtmon, $(MANAGERS)) +MANAGERS := $(patsubst semaphore, sem, $(MANAGERS)) +MANAGERS := $(patsubst dual_ported_memory, dpmem, $(MANAGERS)) +MANAGERS := $(patsubst extension, ext, $(MANAGERS)) + +# allow 'all' to mean all managers +MANAGERS := $(patsubst all, $(MANAGER_LIST), $(MANAGERS)) + +# and finally rip out duplicates +MANAGERS := $(sort $(MANAGERS)) + +# Pull in the desired "target" compiler +# Programs built on the host use automake generated rules. +# This will not change $(ARCH) -- binaries will still be place as per target +include ${CONFIG.CC} +ifeq (${DEPEND},$(wildcard ${DEPEND})) +include ${DEPEND} # pull in dependencies if they exist +endif + +ifndef AUTOMAKE +# +# Builtin targets for compilation variants +# +debug: + $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) "ARCH=o-debug" \ + "CFLAGS_DEBUG=$(CFLAGS_DEBUG_V)" \ + "CXXFLAGS_DEBUG=$(CXXFLAGS_DEBUG_V)" \ + "CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)" \ + "LDFLAGS_DEBUG=$(LDFLAGS_DEBUG_V)" $(TARGET_VA) + +profile: + $(MAKE) -f $(MAKEFILE) \ + MAKEFILE=$(MAKEFILE) "ARCH=o-profile" \ + "CFLAGS_PROFILE=$(CFLAGS_PROFILE_V)" \ + "CXXFLAGS_PROFILE=$(CXXFLAGS_PROFILE_V)" \ + "LDFLAGS_PROFILE=$(LDFLAGS_PROFILE_V)" $(TARGET_VA) +endif + +# +# VARIANT_VA will convert our ${ARCH} back into "" or "debug" or "profile". +# Handy when one makefile wants to hop over into a peer's tree and +# build something "the same" way. +# + +VARIANT-o-optimize-v = +VARIANT-o-debug-v = debug +VARIANT-o-profile-v = profile + +VARIANT_VA = $(VARIANT-$(ARCH)-v) + +# +# TARGET_VA will convert $@ (expected to be 'debug' or 'profile' etc.) +# into "" or "install" as appropriate. +# Used for variant recursion. +# + +TARGET_debug_V = all +TARGET_profile_V = all + +TARGET_VA = $(TARGET_$@_V) + +# +# LIBSUFFIX_VA, will "index" into LIBSUFF-*-v macros and +# convert our ${ARCH} back into .a or _g.a or _p.a based on debug or profile. +# Useful for installing libraries. +# + +LIBSUFFIX_o-optimize_V= +LIBSUFFIX_o-debug_V=_g +LIBSUFFIX_o-profile_V=_p + +LIB_VARIANT=$(LIBSUFFIX_$(ARCH)_V) +LIBSUFFIX_VA = $(LIB_VARIANT).a + +# +# Builtin clean and distclean rules +# Individual makefiles can add stuff via CLEAN_ADDITIONS and CLOBBER_ADDITIONS +# If desperate to save something, they can override CLEAN_OS, CLEAN_CC, etc. +# + +clean-am: clean-generic + -$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND) + -$(RM) -r $(VARIANTS) + +distclean-am: distclean-generic clean-am + -$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND) + +ifndef AUTOMAKE +preinstall-am: +preinstall: preinstall-am + +distclean: distclean-am + -$(RM) ./config.status + +clean: clean-am + +.PHONY: distclean distclean-am +.PHONY: clean clean-am +endif Index: ChangeLog =================================================================== --- ChangeLog (nonexistent) +++ ChangeLog (revision 1765) @@ -0,0 +1,667 @@ +2002-08-07 Ivan Guzvinec + + * orp.cfg: Bender BSP renamed to OpenRisc Reference Platform or ORP. + +2002-08-07 Ralf Corsepius + + * custom/vegaplus.cfg: Fix bogus and corrupted make-exe. + +2002-08-06 Joel Sherrill + + * custom/efi332.cfg, custom/gen68340.cfg, custom/gen68360.cfg, + custom/mrm332.cfg: Use more proper CPU models so libcpu knows more. + +2002-08-06 Chris Ziomkowski + + * custom/or32sim.cfg: New file added as part of merge from + OpenCores repository. + +2002-08-05 Joel Sherrill + + * Per PR260 eliminate use of make-target-options. This impacted + RTEMS allowing a distinction between the CPU32 and CPU32+ in the + SuperCore and required that the m68k optimized memcpy be moved + to libcpu. + * custom/gen68360.cfg: Remove make-target-options. + +2002-08-01 Joel Sherrill + + * eth_comm.cfg, mbx821_001.cfg, mbx860_002.cfg, mbx860_005b.cfg, + mbx8xx.cfg, mpc8260ads.cfg: Per PR260 removed make-target-options. + +2002-08-01 Joel Sherrill + + * custom/mvme136.cfg: Remove make-target-options. + +2002-07-30 Joel Sherrill + + * custom/vegaplus.cfg: Generate the Mapfile into $(ARCH) so it + will disappear when make clean is performed. + +2002-07-24 Joel Sherrill + + * custom/pc486.cfg, custom/pc586.cfg, custom/pc686.cfg: Updated + to use gcc 3.1 arguments. + +2002-07-22 Joel Sherrill + + * Templates/Makefile.leaf: Clarify the MANAGERS example. + +2002-07-01 Joel Sherrill + + * custom/p4650.cfg: Update arguments to gcc3. + +2002-06-14 Joel Sherrill + + * custom/jmr3904.cfg, custom/p4650.cfg, custom/p4600.cfg: Switch + to gcc 3.1 arguments. + +2002-05-01 Ralf Corsepius + + * custom/dmv177.cfg: Use -mcpu=603e. + * custom/ppcn_60x.cfg: Use -mcpu=603e. + * custom/psim.cfg: Use -mcpu=603e. + * custom/score603e.cfg: Use -mcpu=603e. + * custom/ts_386ex.cfg: Remove obsolete comments. + * custom/rxgen960.cfg: Remove obsolete comments. + * custom/cvme961.cfg: Remove obsolete comments. + +2001-05-09 Joel Sherrill + + * custom/jmr3904.cfg, custom/p4650.cfg: Add comments for gcc 3.1 + compatable arguments. + +2002-04-18 Ralf Corsepius + + * custom/dmv177.cfg: Add -D_OLD_EXCEPTIONS -Dppc603e to CPU_CFLAGS. + Remove obsolete comments. + * custom/eth_comm.cfg: Remove make-target-options. + Add -Dmpc$(CPU_TYPE) -DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF to + CPU_CFLAGS. + * custom/gen405.cfg: Add -D_OLD_EXCEPTIONS -Dppc405 to CPU_CFLAGS. + * custom/helas403.cfg: Add -D_OLD_EXCEPTIONS -Dppc403 to CPU_CFLAGS. + * custom/mbx8xx.cfg: Remove make-target-options. + Add -Dmpc$(CPU_TYPE) -D$(RTEMS_MBX_MODEL) to CPU_CFLAGS. + Remove obsolete comments. + * custom/mcp750.cfg: Add -Dmpc750 to CPU_CFLAGS. + Remove obsolete comments. + * custom/mpc8260ads.cfg: Remove make-target-options. + Add -Dmpc8260 -DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF to + CPU_CFLAGS. + * custom/mvme2307.cfg: Add -Dmpc604 to CPU_CFLAGS. + Remove obsolete comments. + * custom/ppcn_60x.cfg: Add -D_OLD_EXCEPTIONS -Dppc603e to + CPU_CFLAGS. + Remove obsolete comments. + * custom/psim.cfg: Add -D_OLD_EXCEPTIONS -Dppc603e to CPU_CFLAGS. + Remove obsolete comments. + * custom/score603e.cfg: Add -D_OLD_EXCEPTIONS -Dppc603e to + CPU_CFLAGS. + Remove obsolete comments. + +2002-04-04 Ralf Corsepius + + * custom/gen405.cfg: Remove -D__powerpc__. + +2002-04-01 Ralf Corsepius + + * custom/erc32nfp.cfg: Remove CPU_U32_FIX. + * custom/erc32.cfg: Ditto. + * custom/leon2.cfg: Ditto. + + +2002-03-28 Ralf Corsepius + + * custom/erc32.cfg: Remove NO_TABLE_MOVE. Remove FPU_REVB. + * custom/erc32nfp.cfg: Remove NO_TABLE_MOVE. Remove FPU_REVB. + * custom/leon2.cfg: Remove NO_TABLE_MOVE. + +2002-03-26 Ralf Corsepius + + * custom/cvme961.cfg: Remove GCC272 support. + * custom/dmv152.cfg: Remove GCC272 support. + * custom/efi332.cfg: Remove GCC272 support. + * custom/efi68k.cfg: Remove GCC272 support. + * custom/eth_comm.cfg: Remove GCC272 support. + * custom/gen405.cfg: Remove GCC272 support. + * custom/gen68302.cfg: Remove GCC272 support. + * custom/gen68340.cfg: Remove GCC272 support. + * custom/gen68360.cfg: Remove GCC272 support. + * custom/genmongoosev.cfg: Remove GCC272 support. + * custom/helas403.cfg: Remove GCC272 support. + * custom/i386ex.cfg: Remove GCC272 support. + * custom/i960sim.cfg: Remove GCC272 support. + * custom/idp.cfg: Remove GCC272 support. + * custom/leon2.cfg: Remove GCC272 support. + * custom/mbx8xx.cfg: Remove GCC272 support. + * custom/mcf5206elite.cfg: Remove GCC272 support. + * custom/mpc8260ads.cfg: Remove GCC272 support. + * custom/mrm332.cfg: Remove GCC272 support. + * custom/mvme136.cfg: Remove GCC272 support. + * custom/mvme147.cfg: Remove GCC272 support. + * custom/mvme167.cfg: Remove GCC272 support. + * custom/ods68302.cfg: Remove GCC272 support. + * custom/p4000.cfg: Remove GCC272 support. + * custom/p4600.cfg: Remove GCC272 support. + * custom/p4650.cfg: Remove GCC272 support. + * custom/pc386.cfg: Remove GCC272 support. + * custom/portsw.cfg: Remove GCC272 support. + * custom/psim.cfg: Remove GCC272 support. + * custom/rxgen960.cfg: Remove GCC272 support. + * custom/score603e.cfg: Remove GCC272 support. + * custom/sim68000.cfg: Remove GCC272 support. + * custom/simhppa.cfg: Remove GCC272 support. + * custom/simsh4.cfg: Remove GCC272 support. + * custom/ts_386ex.cfg: Remove GCC272 support. + +2002-03-27 Ralf Corsepius + + * Templates/Makefile.am: Remove AUTOMAKE_OPTIONS. + * Makefile.am: Remove AUTOMAKE_OPTIONS. + * compilers/Makefile.am: Remove AUTOMAKE_OPTIONS. + * custom/Makefile.am: Remove AUTOMAKE_OPTIONS. + +2002-01-21 Ralf Corsepius + + * compilers/gcc-target-default.cfg: Add missing \. + Reported by Ilya Alexeev . + +2002-02-05 Ralf Corsepius + + * custom/genmongoosev.cfg: Remove -g from CPU_CFLAGS. + * custom/h8sim.cfg: Remove -g from CPU_CFLAGS. Remove GCC272 + support. + * custom/jmr3904.cfg: Remove -g from CPU_CFLAGS. Remove GCC272. + +2001-12-22 Ralf Corsepius + + * custom/Cygwin-posix.cfg: Remove -DMALLOC_PROVIDED. + * custom/FreeBSD-posix.cfg: Ditto. + * custom/HPUX9-posix.cfg: Ditto. + * custom/Linux-posix.cfg: Ditto. + * custom/Solaris-posix.cfg: Ditto. + +2001-12-22 Ralf Corsepius + + * custom/erc32.cfg: Remove erc32nfp support, GCC272. + * custom/erc32nfp.cfg: Merge in portions from erc32.cfg. + +2001-12-09 Ralf Corsepius + + * custom/armulator.cfg: Remove make-target-options. + * custom/erc32.cfg: Remove CONSOLE_USE_INTERRUPTS, SIMSPARC_FAST_IDLE + (now in erc32/configure.ac). + * custom/leon2.cfg: Remove CONSOLE_USE_INTERRUPTS, + SIMSPARC_FAST_IDLE (now in leon2/configure.ac). + Remove CONSOLE_USE_POLLED (Unused). + * custom/mvme167.cfg: Remove CD2401_INT_LEVEL, CD2401_IO_MODE, + CD2401_USE_TERMIOS (now in mvme167/configure.ac). + * custom/mvme162.cfg: Remove references to mvme162lx. + Abandon gcc272. Remove make-target-options. + * custom/mvme162lx.cfg: Add portions formerly in mvme162.cfg. + +2001-12-04 Ralf Corsepius + + * custom/bare.cfg: Remove make-target-options. + * custom/c4xsim.cfg: Ditto. + * custom/cvme961.cfg: Ditto. + * custom/efi68k.cfg: Ditto. + * custom/gen68302.cfg: Ditto. + * custom/gen68340.cfg: Ditto. + * custom/genmongoosev.cfg: Ditto. + * custom/gensh4.cfg: Remove make-target-options, remove GCC272 + make-exe, remove empty lines. + * custom/h8sim.cfg: Remove make-target-options. + * custom/mcf5206elite.cfg: Ditto. + * custom/mrm332.cfg: Ditto. + * custom/mvme147.cfg: Ditto. + * custom/ods68302.cfg: Ditto. + * custom/p4000.cfg: Ditto. + * custom/p4600.cfg: Ditto. + * custom/p4650.cfg: Ditto. + * custom/pc386.cfg: Ditto. + * custom/portsw.cfg: Ditto. + * custom/simsh4.cfg: Ditto. + +2001-11-28 Ralf Corsepius + + * custom/efi332.cfg: Remove make-target-options. + * custom/idp.cfg: Ditto. + * custom/jmr3904.cfg: Ditto. + +2001-11-27 Joel Sherrill , + + * ChangeLog: Deleted bogus entry. + +2001-11-27 Joel Sherrill , + + * custom/ods68302.cfg: Eliminated required definition of macros in this + file for the BSP to compile. The ROM and ROM address and size settings + are now linker script items. + +2001-11-26 Ralf Corsepius + + + * custom/gen405.cfg: Remove PPC_VECTOR_FILE_BASE, PPC_USE_SPRG; + Remove make-target-options. + * custom/helas403.cfg: Remove PPC_VECTOR_FILE_BASE, PPC_USE_SPRG; + Remove make-target-options. + * custom/mbx8xx.cfg: Remove INSTRUCTION_CACHE_ENABLE, + DATA_CACHE_ENABLE. + * custom/mbx860_005b.cfg: Remove INSTRUCTION_CACHE_ENABLE, + DATA_CACHE_ENABLE. + * custom/mpc8260ads.cfg: Remove INSTRUCTION_CACHE_ENABLE, + DATA_CACHE_ENABLE. + +2001-11-25 Joel Sherrill + + * custom/papyrus.cfg: Removed. + * custom/Makefile.am, custom/helas403.cfg: Removed reference to above. + +2001-11-21 Ralf Corsepius + + * custom/mvme2307.cfg: Reflect changes to motorola_powerpc/configure.ac. + * custom/mcp750.cfg: Ditto. + +2001-11-21 Ralf Corsepius + + * custom/dmv177.cfg: Reflect changes to dmv177/configure.ac. + * custom/ppcn_60x.cfg: Refect changes to ppcn_60x/configure.ac. + * custom/psim.cfg: Refect changes to psim/configure.ac. + * custom/score603e.cfg: Reflect changes to score603e/configure.ac, + remove SCORE603E_GENERATION. + +2001-11-16 Ralf Corsepius + + * custom/eth_comm.cfg: Reflect changes to eth_comm/configure.ac. + * custom/mbx8xx.cfg: Reflect changes to mbx8xx/configure.ac. + * custom/mbx860_005b.cfg: Ditto. + * custom/mpc8620ads.cfg: Reflect changes to mpc8620/configure.ac. + + +2001-11-15 Ralf Corsepius + + * custom/gensh1.cfg: remove make-target-options. + * custom/gensh2.cfg: remove make-target-options. + +2001-11-15 Ralf Corsepius + + * custom/dmv152: Remove USE_CONSOLE_A, Remove USE_CONSOLE_B, + remove make-target-options, remove BSP_CPPFLAGS. + +2001-11-15 Ralf Corsepius + + * custom/simhppa.cfg: Remove SIMHPPA_FAST_IDLE, make-target-options. + +2001-11-14 Joel Sherrill + + * custom/eth_comm.cfg, custom/mbx860_005b.cfg, custom/mbx8xx.cfg, + custom/mcp750.cfg, custom/mpc8260ads.cfg, custom/mvme2307.cfg: + These are new exception processing model BSPs and thus do not + need to define PPC_USE_SPRG. + +2001-11-14 Joel Sherrill + + * ChangeLog: Added missing lines about simcpu32.cfg and sim68000.cfg. + +2001-11-14 Ralf Corsepius + + * custom/ts_386ex.cfg: Remove make-target-options. + * custom/sim68000.cfg: Remove RTEMS_BSVC_MODEL, make-target-options. + * custom/simcpu32.cfg: Reimplement as a copy of sim68000.cfg with + different flags. + +2001-11-10 Ralf Corsepius + + * custom/shsim.cfg: Remove HZ, BSP_CPPFLAGS, make-target-options. + * custom/mvme2307.cfg: Fix PPC_USE_SPRG in make-target-options, + re-adopt mcp750.cfg's make-exe. + +2001-11-13 Joel Sherrill + + * custom/helas403.cfg, custom/gen405.cfg: Removed dependency on + the --srec-len argument to objcopy only supported in binutils 2.11 + or newer. + +2001-11-08 Dennis Ehlin (ECS) + + This modification is part of the submitted modifications necessary to + support the IBM PPC405 family. This submission was reviewed by + Thomas Doerfler who ensured it did + not negatively impact the ppc403 BSPs. The submission and tracking + process was captured as PR50. + * custom/gen405.cfg: New file. + * custom/helas403.cfg: Modified to generate Srecords. + +2001-10-30 Joel Sherrill + + * custom/sim68000.cfg: Generate symbols off executable not Srecords. + +2001-10-26 Victor V. Vengerov + + * custom/mcf5206elite.cfg: New file. + +2001-10-22 Andy Dachs + + * custom/mpc8260ads.cfg: New file. + +2001-10-13 Ralf Corsepius + + * custom/gensh4.cfg: Remove START_HW_INIT. + * custom/simsh4.cfg: Remove START_HW_INIT, RTEMS_CPU_MODEL=sh7750. + +2001-10-12 Ralf Corsepius + + * custom/gensh4.cfg: Remove HZ. + * custom/simsh4.cfg: Remove HZ. + +2001-10-11 Alexandra Kossovsky + + * custom/gensh4.cfg, custom/simsh4.cfg: New files in support + of Hitachi SH4 BSPs of the same name. Reviewed and some + cleanup by Joel Sherrill . + +2001-10-11 Ralf Corsepius + + * custom/gensh2.cfg: Remove -lstdc++ from make-exe. + +2001-10-11 Joel Sherrill + + * custom/mbx8xx.cfg, custom/mvme167.cfg: Rewrote use of strip command + to avoid using the apparently broken or deprecated -o argument. + +2001-09-28 Joel Sherrill + + * custom/ods68302.cfg: Add custom make-cxx-exe rule to account + for MC68302_BASE. + +2001-09-21 Ralf Corsepius + + * custom/bare.cfg: Define dummy make-cxx-exe. + +2001-09-21 Ralf Corsepius + + * ChangeLog: Formatting cleanup. + +2001-06-19 Ralf Corsepius + + * custom/Cygwin-posix.cfg: Remove -U__STRICT_ANSI__, + make-target-options. + * custom/FreeBSD-posix.cfg: Remove make-target-options. + * custom/HPUX9-posix.cfg: Dito. + * custom/Linux-posix.cfg: Dito. + * custom/Solaris-posix.cfg: Dito. + * custom/arm_bare_bsp.cfg: Dito. + * custom/armulator.cfg: Dito. + * custom/erc32.cfg: Remove CONSOLE_USE_POLLED, CONSOLE_USE_INTERRUPTS. + * custom/i386ex.cfg: Remove make-target-options. + * custom/i960sim.cfg: Remove make-target-options. + * custom/mvme2307.cfg: Remove CONSOLE_USE_POLLED, + CONSOLE_USE_INTERRUPTS. + * custom/rxgen960.cfg: Remove make-target-options, cleanup comments. + * custom/score603e.cfg: Remove CONSOLE_USE_POLLED, + CONSOLE_USE_INTERRUPTS. + * custom/vegaplus.cfg: Remove make-target-options. + +2001-05-25 Joel Sherrill + + * custom/mrm332.cfg: Switched $(SED) to sed. + +2000-05-25 Matt Cross + + * New MRM332 BSP for the Mini RoboMind board based + on the 68332 microcontroller designed and build by Mark + Castelluccio. For details on the MRM see http://www.robominds.com. + * custom/mrm332.cfg: New file. + +2001-05-22 Ralf Corsepius + + * custom/dmv177.cfg: Remove CONSOLE_USE_INTERRUPTS, + CONSOLE_USE_POLLED, HAS_RTC. + +2001-05-11 Ralf Corsepius + + * custom/gensh1.cfg: Remove HZ, BSP_CPPFLAGS. + * custom/gensh2.cfg: Dito. + +2001-05-07 Ralf Corsepius + + * leaf.cfg: Remove CFLAGS_DEBUG_OPTIMIZE_V. + * compilers/gcc-no_bsp.cfg: Remove CPP_CC_FLAGS. + * compilers/gcc-portsw.cfg: Remove CPP_CC_FLAGS. + * compilers/gcc-target-default.cfg: Remove *_DEBUG_OPTIMIZE_*-flags, + remove unused flags, remove -ansi from CPP. + * custom/eth_comm.cfg: Remove CPU_DEFINES. + * custom/sim68000.cfg: Remove CPU_DEFINES. + +2001-04-26 Ralf Corsepius + + * compilers/gcc-no_bsp.cfg: Remove -ansi -fasm. + * compilers/gcc-target-default.cfg: Dito. + * compilers/gcc-portsw.cfg: Remove -Hansi. + * custom/posix.cfg: Remove inclusion of target.cfg. + * custom/simhppa.cfg: Remove -ansi -fasm. + +2001-04-11 Eric Valette + + * custom/eth_comm.cfg: Switch the eth_comm BSP to use the + "new exception processing model." + +2001-04-11 Joel Sherrill + + * custom/default.cfg: Switch to using exec_prefix to reflect new + organization of install point from Ralf Corsepius. + +2001-03-30 Eric Valette + + * custom/mbx860_005b.cfg: This switches the MBX8xx BSP to the + use the "new exception processing model." + +2001-03-14 Joel Sherrill + + * custom/genmongossev.cfg: New file. + +2001-02-20 Ralf Corsepius + + * custom/pc386dx.cfg: New bsp. + +2001-02-07 Ralf Corsepius + + * custom/Cygwin-posix.cfg, custom/HPUX9-posix.cfg, + custom/Solaris-posix.cfg, custom/FreeBSD-posix.cfg, + custom/Linux-posix.cfg: Remove RTEMS_UNIX from make-target-options. + +2001-02-03 Ralf Corsepius + + * lib.cfg: include $(PROJECT_ROOT)/make/leaf.cfg + * main.cfg: Set PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP). + * host.cfg.in: Remove RM, make-script. + * ChangeLog: Remove bogus 2001-01-22 entry. + +2001-01-09 Joel Sherrill + + * custom/pc386.cfg (make-exe): Removed commented out lines that + were displayed in build longs. + +2001-01-08 Joel Sherrill + + * custom/p4000.cfg, custom/p4600.cfg, custom/p4650.cfg: Remove + unneeded definitions when compiled for "mips" rather than "mips64orion." + Correct CPU_CFLAGS. + +2001-01-05 Joel Sherrill + + * custom/gensh1.cfg: Removed rest of make-target-options and + moved them to BSP configure options. + +2001-01-03 Emmanuel Raguet + + * custom/mcp750.cfg (make-exe): Rewrite to avoid writing to + install point or assuming BSP build tree is available. + +2001-01-03 Joel Sherrill + + * custom/psim.cfg: Removed unused variables. + +2001-01-03 Joel Sherrill + + * custom/sim68000.cfg: Corrected CPU model for simcpu32 configuration. + * custom/simcpu32.cfg: Removed MVME162 reference. + +2000-12-14 Emmanuel Raguet + + * custom/mcp750.cfg: Fix problems in generation of .exe file. + Still need to fix to avoid touching install point on non-install stanza. + +2000-12-06 Joel Sherrill + + * custom/vegaplus.cfg: Fix make-exe rule and eliminate mkdir + and copies that should not be in it. + +2000-12-01 Joel Sherrill + + * custom/jmr3904.cfg: Turn optimization back up to -O2. + +2000-11-30 Joel Sherrill + + * custom/jmr3904.cfg: Use -m3900 not -mips3. TX3904 is actually + a mips1. gcc translates -m3900 into that. + +2000-11-27 Joel Sherrill + + * custom/jmr3904.cfg: Fix incorrect reference to i960. + +2000-11-27 Joel Sherrill + + * custom/shsim.cfg: New file. + * custom/Makefile.am: Modified to reflect addition of shsim.cfg. + The shsim is for the SH simulator in gdb. It should be able + to be used with multiple SH CPU models. This will require + adding BSP variants. + +2000-11-25 Joel Sherrill + + * custom/pc386.cfg: make-exe rule would write into + $(PROJECT_RELEASE) area. This is not cool because it $(PROJECT_RELEASE) + is generally not writeable after the BSP is installed and you do not + want every application installed there by default. Reported by + Eric Norum . + +2000-11-25 Joel Sherrill + + * custom/Makefile.am: Updated to add jmr3904.cfg + * custom/jmr3904.cfg: New file. + +2000-11-13 Ralf Corsepius + + * custom/leon2.cfg: Removed defines that are now generated + in a non-BSP specific manner. + +2000-11-13 Jiri Gaisler + + * custom/Makefile.am: Modified to reflect addition of files. + * custom/erc32.cfg: Modified to support addition of no-FP ERC32 variant. + * custom/erc32nfp.cfg, custom/leon1.cfg, custom/leon2.cfg: New file. + +2000-11-10 Ralf Corsepius + + * custom/Cygwin-posix.cfg: Add -U__STRICT_ANSI__ to LIBC_DEFINES. + +2000-10-27 Ralf Corsepius + + * custom/bare.cfg: Add @ to make-exe, make make-exe more verbose. + +2000-10-24 Joel Sherrill + + * custom/p4600.cfg, custom/p4650.cfg: Commented out RTEMS_CPU + definition since this information can be picked up from + autoconf generated files. These BSPs are shared by the + mips and mips64orion "ports." + +2000-10-18 Joel Sherrill + + * compilers/gcc-portsw.cfg: Use gcc style flags. + +2000-09-13 Joel Sherrill + + * custom/arm_bare_bsp.cfg, custom/armulator.cfg, custom/dmv177.cfg, + custom/mcp750.cfg, custom/vegaplus.cfg: Clean up. + +2000-09-13 Emmanuel Raguet + + * vegaplus BSP submitted by Emmanuel Raguet and + Eric Valette . + * custom/vegaplus.cfg: New file. + +2000-09-12 Ralf Corsepius + + * custom/erc32.cfg: Add comment on -mno-v8, -mcypress. + * custom/gen68302.cfg: Comment out LIBC_LIB[C|M]. + * custom/gen68340.cfg: Comment out LIBC_LIB[C|M]. + * custom/gen68360.cfg: Comment out LIBC_LIB[C|M]. + * custom/idp.cfg: Comment out LIBC_LIB[C|M]. + * custom/mvme162.cfg: Comment out LIBC_LIB[C|M]. + * custom/ods68302.cfg: Comment out LIBC_LIB[C|M]. + +2000-09-12 Ralf Corsepius + + * custom/gensh2.cfg: Fix comments. + +2000-09-12 Joel Sherrill + + * custom/mvme167.cfg (CPP_CFLAGS): Corrected to only include + compiler arguments that specify CPU model options. + +2000-09-12 Joel Sherrill + + * custom/mbx860_005b.cfg (make-target-options): Add lines to + define PRINTK_MINOR SMC1_MINOR and PRINTK_IO_MODE. The settings + may be incorrect but the BSP now compiles. + +2000-09-05 Ralf Corsepius + + * custom/arm_bare_bsp.cfg: Fix comments. + +2000-08-31 Ralf Corsepius + + * custom/gensh1.cfg, custom/gensh2.cfg: Abandon gcc-2.7.2's make-exe + * custom/simcpu32.cfg: Set RTEMS_BSVC_MODEL = simcpu32 + * ChangeLog: File paths corrected + +2000-08-29 Joel Sherrill + + * custom/armulator.cfg: Corrected make-exe rule to pick up debug flags. + +2000-08-17 Ralf Corsepius + + * custom/pck6.cfg: New file + * custom/pc486.cfg: Use -m486 + * custom/pc586.cfg: Use -mpentium + * custom/pc686.cfg: Use -mmpentiumpro + * custom/i386ex.cfg: Use -msoft-float + +2000-08-11 Charles-Antoine Gauthier + + * custom/mbx8xx.cfg: Add support for configuration parameters in NVRAM + +2000-08-25 Joel Sherrill + + * ChangeLog: File paths corrected. + +2000-08-04 Charles-Antoine Gauthier + + * custom/mvme167.cfg: Add specification of printk port, console port + and serial I/O mode. Arrange for the stripped executable to + be copied up the build tree. + +2000-08-10 Charles-Antoine Gauthier + + * custom/mbx8xx.cfg: Support for shared printk and no termios. + +2000-08-10 John Cotton + + * custom/mbx8xx.cfg: Support added for dejagnu test harness. + +2000-08-10 Joel Sherrill + + * ChangeLog: New file. Index: Makefile.am =================================================================== --- Makefile.am (nonexistent) +++ Makefile.am (revision 1765) @@ -0,0 +1,16 @@ +## +## Makefile.am,v 1.5 2002/03/28 00:54:29 joel Exp +## + + +rtems_makedir = $(prefix)/make + +rtems_make_DATA = main.cfg leaf.cfg + +EXTRA_DIST = README directory.cfg host.cfg.in leaf.cfg lib.cfg + +SUBDIRS = Templates custom compilers + +## ------------------------------------------------------- +include $(top_srcdir)/automake/subdirs.am +include $(top_srcdir)/automake/host.am Index: README =================================================================== --- README (nonexistent) +++ README (revision 1765) @@ -0,0 +1,495 @@ +# +# README,v 1.7 2000/06/12 15:00:14 joel Exp +# + + make/README + + This file describes the layout and conventions of the application + makefile support for RTEMS applications. Internally, RTEMS uses + GNU-style autoconf/automake Makefiles as much as possible to + ease integration with other GNU tools. + + All of these "make" trees are substantially similar; however this + file documents the current state of the RTEMS Application Makefile + support. + + This make tree is based on a build system originally developed + to simplify porting projects between various OS's. The primary + goals were: + + . simple *and* customizable individual makefiles + + . use widely available GNU make. There is no pre-processing or + automatic generation of Makefiles. + + . Same makefiles work on *many* host OS's due to portability + of GNU make and the host OS config files. + + . Support for different compilers and operating systems + on a per-user basis. Using the same sources (including + Makefiles) one developer can develop and test under SVR4, + another under 4.x, another under HPUX. + + . Builtin support for compiling "variants" such as debug, + profile, and tcov versions. These variants can be built + recursively. + + . Control of system dependencies. "hidden" dependencies on + environment variables (such as PATH) + have been removed whenever possible. No matter what your + PATH variable is set to, you should get the same thing + when you 'make' as everyone else on the project. + + This Makefile system has evolved into its present form and as it + exists in RTEMS today, its sole goal is to build RTEMS applications. + The use of these Makefiles hides the complexity of producing + executables for a wide variety of embedded CPU families and target + BSPs. Switching between RTEMS BSPs is accomplished via setting + the environment variable "RTEMS_MAKEFILE_PATH." + + This description attempts to cover all aspects of the Makefile tree. Most + of what is described here is maintained automatically by the configuration + files. + + The example makefiles in make/Templates should be used as a starting + point for new directories. + + There are 2 main types of Makefile: + + directory and leaf. + + Directory Makefiles + ------------------- + + A Makefile in a source directory with sub-directories is called a + "directory" Makefile. + + Directory Makefile's are simply responsible for acting as "middle-men" + and recursing into their sub-directories and propagating the make. + + For example, directory src/bin will contain only a Makefile and + sub-directories. No actual source code will reside in the directory. + The following commands: + + $ cd src/bin + $ make all + + would descend into all the subdirectories of 'src/bin' and recursively + perform a 'make all'. + + A 'make debug' will recurse thru sub-directories as a debug build. + + A template directory Makefile which should work in almost all + cases is in make/Templates/Makefile.dir + + + Leaf Makefiles + -------------- + + Source directories that contain source code for libraries or + programs use a "leaf" Makefile. + + These makefiles contain the rules necessary to build programs + (or libraries). + + A template leaf Makefile is in Templates/Makefile.leaf . A template + leaf Makefile for building libraries is in Templates/Makefile.lib . + + + NOTE: To simplify nested makefile's and source maintenance, we disallow + combining source and directories (that make(1) would be expected to + recurse into) in one source directory. Ie., a directory in the source + tree may contain EITHER source files OR recursive sub directories, but NOT + both. This assumption is generally shared with GNU automake. + + Variants (where objects go) + --------------------------- + + All binary targets are placed in a sub-directory whose name is (for + example): + + o-optimize/ -- optimized binaries + o-debug/ -- debug binaries + o-profile/ -- profiling binaries + + Using the template Makefiles, this will all happen automatically. + The contents of these directories are specific to a BSP. + + Within a Makefile, the ${ARCH} variable is set to o-optimize, + o-debug, etc., as appropriate. + + HISTORICAL NOTE: Prior to version 4.5, the name of the sub-directory + in which objects were placed included the BSP name. + + Typing 'make' will place objects in o-optimize. + 'make debug' will place objects in o-debug. + 'make profile' will place objects in o-profile. + + The debug and profile targets are equivalent to 'all' except that + CFLAGS and/or LDFLAGS are modified as per the compiler config file for + debug and profile support. + + The targets debug, profile, etc., can be invoked recursively at + the directory make level. So from the top of a tree, one could + install a debug version of everything under that point by: + + $ cd src/lib + $ gmake debug + $ gmake install + + When building a command that is linked with a generated library, the + appropriate version of the library will be linked in. + + For example, the following fragments link the normal, debug, or + profile version of "libmine.a" as appropriate: + + LD_LIBS += $(LIBMINE) + LIBMINE = ../libmine/${ARCH}/libmine.a + + ${ARCH}/pgm: $(LIBMINE) ${OBJS} + $(make-exe) + + If we do 'gmake debug', then the library in + ../libmine/o-debug/libmine.a will be linked in. If $(LIBMINE) + might not exist (or might be out of date) at this point, we could add + + ${LIBMINE}: FORCEIT + cd ../libmine; ${MAKE} ${VARIANT_VA} + + The above would generate the following command to build libmine.a: + + cd ../libmine; gmake debug + + The macro reference ${VARIANT_VA} converts ${ARCH} to the word 'debug' + (in this example) and thus ensures the proper version of the library + is built. + + + Targets + ------- + + All Makefile's support the following targets: + + all -- make "everything" + install -- install "everything" + + The following targets are provided automatically by + the included config files: + + clean -- delete all targets + depend -- build a make dependency file + "variant targets" -- special variants, see below + + + All directory Makefiles automatically propagate all these targets. If + you don't wish to support 'all' or 'install' in your source directory, + you must leave the rules section empty, as the parent directory Makefile + will attempt it on recursive make's. + + + Configuration + ------------- + + All the real work described here happens in file(s) included + from your Makefile. + + All Makefiles include a customization file which is used to select + compiler and host operating system. The environment variable + RTEMS_MAKEFILE_PATH must point to the directory containing this file; eg: + + export RTEMS_MAKEFILE_PATH=/.../pc386/ + + All leaf Makefile's also include either 'make/leaf.cfg' (or + 'make/lib.cfg' for building libraries). These config files provide + default rules and set up the command macros as appropriate. + + All directory Makefiles include 'make/directory.cfg'. directory.cfg + provides all the rules for recursing through sub directories. + + The Makefile templates already perform these include's. + + 'make/leaf.cfg' (or directory.cfg) in turn includes: + + a file specifying general purpose rules appropriate for + both leaf and directory makefiles. + ( make/main.cfg ) + + personality modules specified by the customization file for: + compiler ( make/compilers/??.cfg ) + + + generic rules file + ------------------ + + [ make/main.cfg ] + included by leaf.cfg or directory.cfg. + + This file contains some standard rules and variable assignments + that all Makefiles need. + + It also includes the FORCEIT: pseudo target. + + + OS config file for host machine + ------------------------------- + + [ make/os/OS-NAME.cfg ] + included by main.cfg + + Figures out the target architecture and specifies command names + for the OS tools including RCS/CVS (but NOT for the compiler tools). + + + Compiler configuration for the target + ------------------------------------- + + [ compilers/COMPILER-NAME.cfg ] + included by leaf.cfg + + Specifies the names of tools for compiling programs. + Names in here should be fully qualified, and NOT depend on $PATH. + + Also specifies compiler flags to be used to generate optimized, + debugging and profile versions, as well as rules to compile + assembly language and make makefile dependencies. + + + Configuration Variables + ----------------------- + + Variables you have to set in the environment or in your Makefile. + Note: the RTEMS module files set RTEMS_ROOT and RTEMS_CUSTOM + for you. + + Makefile Variables + ------------------ + + RTEMS_BSP -- name of your 'bsp' eg: pc386, mvme136 + + RTEMS_CPU -- CPU architecture e.g.: i386, m68k + + RTEMS_CPU_FAMILY -- CPU model e.g.: i486dx, m68020 + + RTEMS_ROOT -- The root of your source tree. + All other file names are derived from this. + [ eg: % setenv RTEMS_ROOT $HOME/work/RTEMS ] + + RTEMS_CUSTOM -- name of your config files in make/custom + Example: + $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg + + The value RTEMS_ROOT is used in the custom + files to generate the make(1) variables: + + PROJECT_RELEASE + PROJECT_BIN + PROJECT_INCLUDE + PROJECT_TOOLS + + etc., which are used within the make config files themselves. + (The files in make/*.cfg try to avoid use of word RTEMS so + they can be more easily shared by other projects) + + Preset variables + ---------------- + + Aside from command names set by the OS and compiler config files, + a number of MAKE variables are automatically set and maintained by + the config files. + + PROJECT_RELEASE + -- release/install directory + [ $(PROJECT_ROOT) ] + + PROJECT_BIN + -- directory for installed binaries + [ $(PROJECT_ROOT)/bin ] + + PROJECT_TOOLS + -- directory for build environment commands + [ eg: $(PROJECT_ROOT)/build-tools ] + + ARCH -- target sub-directory for object code + [ eg: o-optimize or o-debug ] + + VARIANTS -- full list of all possible values for $(ARCH); + used mainly for 'make clean' + [ eg: "o-optimize o-debug o-profile" ] + + VARIANT_VA -- Variant name. + Normally "", but for 'make debug' it is "debug", + for 'make profile', "profile, etc. + + see make/leaf.cfg for more info. + + + Preset compilation variables + ---------------------------- + + This is a list of some of the compilation variables. + Refer to the compiler config files for the complete list. + + CFLAGS_OPTIMIZE_V -- value of optimize flag for compiler + [ eg: -O ] + + CFLAGS_DEBUG_V -- value of debug flag for compiler + [ eg: -g ] + + CFLAGS_PROFILE_V -- compiler profile flags + [ eg: -pg ] + + CFLAGS_DEBUG_OPTIMIZE_V + -- optimize flag if compiling for debug + [ eg: "" ] + + CFLAGS_DEBUG + CFLAGS_PROFILE + CFLAGS_OPTIMIZE -- current values for each depending + on make variant. + + LDFLAGS_STATIC_LIBRARIES_V + -- ld option for static libraries + -Bstatic or -dy (svr4) + + LDFLAGS_SHARED_LIBRARIES_V + -- ld option for dynamic libraries + -Bdynamic or -dn (svr4) + + Makefile Variables + ------------------ + + The following variables may be set in a typical Makefile. + + C_PIECES -- File names of your .c files without '.c' suffix. + [ eg: C_PIECES=main funcs stuff ] + + CC_PIECES -- ditto, except for .cc files + + S_PIECES -- ditto, except for .S files. + + LIB -- target library name in leaf library makefiles. + [ eg: LIB=${ARCH}/libmine.a ] + + H_FILES -- your .h files in this directory. + [ eg: H_FILES=stuff.h extra.h ] + + DEFINES -- cc -D items. Included in CPPFLAGS. + leaf Makefiles. + [ eg: DEFINES += -DUNIX ] + + CPPFLAGS -- -I include directories. + leaf Makefiles. + [ eg: CPPFLAGS += -I../include ] + + LD_PATHS -- arguments to -L for ld. + Will be prefixed with '-L' or '-L ' as appropriate + and included in LDFLAGS. + + LDFLAGS -- -L arguments to ld; more may be ADDed. + + LD_LIBS -- libraries to be linked in. + [ eg: LDLIBS += ../libfoo/${ARCH}/libfoo.a ] + + XCFLAGS -- "extra" CFLAGS for special needs. Pre-pended + to CFLAGS. + Not set or used by Makefiles. + Can be set on command line to pass extra flags + to the compiler. + + XCPPFLAGS -- ditto for CPPFLAGS + Can be set on command line to pass extra flags + to the preprocessor. + + XCCPPFLAGS -- same as XCPPFLAGS for C++. + + XCCFLAGS -- same as XCFLAGS for C++. + + SUBDIRS -- list of sub directories for make recursion. + directory Makefiles only. + [ eg: SUBDIRS=cpu bsp ] + + CLEAN_ADDITIONS + -- list of files or directories that should + be deleted by 'make clean' + [ eg: CLEAN_ADDITIONS += y.tab.c ] + + See 'leaf.cfg' for the 'clean:' rule and its + default deletions. + + CLOBBER_ADDITIONS + -- list of files or directories that should + be deleted by 'make clobber' + Since 'make clobber' includes 'make clean', + you don't need to duplicate items in both. + + Command names + ------------- + + The following commands should only be called + as make variables: + + MAKE,INSTALL,INSTALL_VARIANT,SHELL + + ECHO,CAT,CP,MV,LN,MKDIR,CHMOD + + SED + + CC,CPP,AS,AR,LD,NM,SIZE,RANLIB,MKLIB, + YACC,LEX,LINT,CTAGS,ETAGS + + In addition, the following commands specifically support + the installation of libraries, executables, header files, + and other things that need to be installed: + + INSTALL_CHANGE - install a file only if the source + file is actually different than + the installed copy or if there is + no installed copy. USAGE: + + usage: install-if-change [ -vmV ] file [ file ... ] dest-directory-or-file + -v -- verbose + -V suffix -- suffix to append to targets (before any . suffix) + eg: -V _g would change 'foo' to 'foo_g' and + 'libfoo.a' to 'libfoo_g.a' + -m mode -- mode for new file(s) + + INSTALL_VARIANT - installs the built file using the + proper variant suffix (e.g. _g + for debug turns libmine.a into libmine_g.a) + This is implemented as a macro that + invokes install-if-change with the + appropriate -V argument setting. + + Special Directory Makefile Targets + ---------------------------------- + + all_WRAPUP + clean_WRAPUP + install_WRAPUP + clean_WRAPUP + clobber_WRAPUP + depend_WRAPUP + -- Specify additional commands for recursive + (directory level) targets. + + This is handy in certain cases where you need + to do bit of work *after* a recursive make. + + make/Templates + -------------- + + This directory contains Makefile and source file templates that + should help in creating or converting makefiles. + + Makefile.leaf + Template leaf Makefiles. + + Makefile.lib + Template leaf library Makefiles. + + Makefile.dir + Template "directory" makefile. + + + + Index: . =================================================================== --- . (nonexistent) +++ . (revision 1765)
. Property changes : Added: svn:ignore ## -0,0 +1,3 ## +Makefile +Makefile.in +host.cfg

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.