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

which is described below:

    This one is a (minor) patch in preparation of the upcoming patches. It
    actually is an excerpt of the upcoming patches and therefore is
    completely untested in this standalone form, but I don't expect it to
    break something.

    The essential changes in this patch are:
        * An update to rtems-polish.sh (Now can also be run in subdirectories)
        * A bug-fix for the libcpu/powerpc (A directory was missing from
          SUBDIRS in a Makefile.am)
        * An update to gensh2.cfg.
        * Cleanups/Enhancements to configuration files

    To apply:
        cd <srcdir>
        patch -p0 < rtems-rc-20000104-0.diff
        cvs rm -f c/src/lib/libbsp/Makefile.am.new
This commit is contained in:
Joel Sherrill
2000-01-07 14:47:02 +00:00
parent 98c875a15b
commit 0ff37e6866
7 changed files with 29 additions and 49 deletions

View File

@@ -17,6 +17,8 @@ AC_MSG_CHECKING([for bsps])
READ*);; READ*);;
CVS*);; CVS*);;
pxfl*);; pxfl*);;
ac*);;
config*);;
# Now account for BSPs with build variants # Now account for BSPs with build variants
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";; gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
p4000) rtems_bsp="$rtems_bsp p4600 p4650";; p4000) rtems_bsp="$rtems_bsp p4600 p4650";;

View File

@@ -10,9 +10,9 @@ $(AR) $(ARFLAGS) $@ $^
$(RANLIB) $@ $(RANLIB) $@
endef endef
TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib
$(PROJECT_RELEASE)/lib: $(PROJECT_RELEASE)/lib:
@$(mkinstalldirs) $@ @$(mkinstalldirs) $@
TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib
.PRECIOUS: $(LIB) .PRECIOUS: $(LIB)

View File

@@ -58,9 +58,9 @@ tool's configuration applies standard automake Makefile.ams and
configure.ins. RTEMS should contain enough examples which could serve as configure.ins. RTEMS should contain enough examples which could serve as
templates for this (My advice: Try to avoid preinstallation and templates for this (My advice: Try to avoid preinstallation and
installation to the temporary installation tree whenever possible; Don't installation to the temporary installation tree whenever possible; Don't
forget to add all sources which do not get installed installed by automake forget to add all sources which do not get installed by automake
to automake's EXTRA_DIST, e.g. noinst_SCRIPTS, noinst_DATA have to be added to automake's EXTRA_DIST, e.g. noinst_SCRIPTS, noinst_DATA have to be added
to EXTRA_DIST). to EXTRA_DIST.
Please let me know if you meet problems and if we/I can fix them. I Please let me know if you meet problems and if we/I can fix them. I
consider acpolish to be an internal developer's and maintainer's helper consider acpolish to be an internal developer's and maintainer's helper

View File

@@ -1,32 +0,0 @@
#
# $Id$
#
AUTOMAKE_OPTIONS = foreign 1.4
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
TMPINSTALL_FILES = \
$(PROJECT_ROOT)/@RTEMS_BSP@/lib \
$(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs
$(PROJECT_ROOT)/@RTEMS_BSP@/lib:
@$(mkinstalldirs) $@
$(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs: $(srcdir)/@RTEMS_BSP_SPECS@
$(INSTALL_DATA) $< $@
# shmdr is a portable shared memory MPCI layer
# We only build it if HAS_MP was defined
if HAS_MP
MP_DRIVERS = shmdr
endif
# If we are building a "real" BSP, then we need to descend into the
# appropriate CPU specific directory. The bare BSP is a special
# case which can be built for any CPU and it resides at the same
# level as the CPUs. If we are building the bare BSP, then descend
# into that directory.
SUBDIRS = $(MP_DRIVERS) @RTEMS_LIBBSP_CPU_SUBDIR@
include $(top_srcdir)/../../../../automake/subdirs.am
include $(top_srcdir)/../../../../automake/local.am

View File

@@ -4,7 +4,7 @@
AUTOMAKE_OPTIONS = foreign 1.4 AUTOMAKE_OPTIONS = foreign 1.4
SUBDIRS = exceptions mmu clock wrapup SUBDIRS = exceptions mmu clock timer wrapup
include $(top_srcdir)/../../../../../automake/subdirs.am include $(top_srcdir)/../../../../../automake/subdirs.am
include $(top_srcdir)/../../../../../automake/local.am include $(top_srcdir)/../../../../../automake/local.am

View File

@@ -82,10 +82,10 @@ endef
else else
define make-exe define make-exe
$(LINK.c) -Wl,-Map,$(basename $@).map \ $(LINK.c) -Wl,-Map,$(basename $@).map \
$(LDLIBS) -o $(basename $@).exe \ $(LDLIBS) -o $@ \
$(LINK_OBJS) -lstdc++ $(LINK_LIBS) $(LINK_OBJS) -lstdc++ $(LINK_LIBS)
$(NM) -n $(basename $@).exe > $(basename $@).num $(NM) -n $@ > $(basename $@).num
$(SIZE) $(basename $@).exe $(SIZE) $@
endef endef
endif endif

View File

@@ -11,8 +11,14 @@
# #
progname=`basename $0` progname=`basename $0`
rootdir=`dirname $0`
# Get the absolute path to the perltools
pwd=`pwd`
cd $rootdir
perltools=`pwd`
cd $pwd
perltools=tools/update
ac_do="" ac_do=""
am_do="" am_do=""
ci_do="" ci_do=""
@@ -31,11 +37,15 @@ usage()
exit 1; exit 1;
} }
if test ! -f VERSION; then # Check for auxillary files
echo "${progname}:" aux_files="../../VERSION ampolish acpolish cipolish"
echo " Please change directory to RTEMS's toplevel directory" for i in ${aux_files}; do
exit 1; if test ! -f ${perltools}/$i; then
fi echo "${progname}:"
echo " Missing $perltools/$i"
exit 1;
fi
done
while test $# -gt 0; do while test $# -gt 0; do
case $1 in case $1 in
@@ -72,7 +82,7 @@ for f in $ac_files; do
echo "polishing : $dest/Makefile.in" echo "polishing : $dest/Makefile.in"
( cd $dest; ( cd $dest;
mv Makefile.in Makefile.in~; mv Makefile.in Makefile.in~;
${pwd}/${perltools}/acpolish <Makefile.in~ >Makefile.in ${perltools}/acpolish <Makefile.in~ >Makefile.in
rm Makefile.in~ rm Makefile.in~
) )
fi fi
@@ -87,7 +97,7 @@ for f in $am_files; do
echo "polishing : $dest/Makefile.am" echo "polishing : $dest/Makefile.am"
( cd $dest; ( cd $dest;
mv Makefile.am Makefile.am~; mv Makefile.am Makefile.am~;
${pwd}/${perltools}/ampolish <Makefile.am~ >Makefile.am ${perltools}/ampolish <Makefile.am~ >Makefile.am
rm Makefile.am~ rm Makefile.am~
) )
done done
@@ -101,7 +111,7 @@ for f in $ci_files; do
echo "polishing : $dest/configure.in" echo "polishing : $dest/configure.in"
( cd $dest; ( cd $dest;
mv configure.in configure.in~; mv configure.in configure.in~;
${pwd}/${perltools}/cipolish <configure.in~ >configure.in ${perltools}/cipolish <configure.in~ >configure.in
rm configure.in~ rm configure.in~
) )
done done