Changeset 35d7b15 in rtems for c/src/lib/libcpu/sh/sh7045/timer


Ignore:
Timestamp:
Dec 21, 1999, 2:41:43 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
369ef18
Parents:
5bce35b
Message:

Patch rtems-rc-19991203-7.diff from Ralf Corsepius <corsepiu@…>
which adds partial automake support to libcpu/<cpu>/*.

Until now I have only implemented full automake support for the sh (my
demonstration example :) and the i386 (inevitiable for structural
reasons of this subdirectory). For all other cpus only their toplevel
directories (exception: powerpc), include subdirectories and a few
selected subdirectories have been converted to automake.
I did this on purpose, because add automake support to each subdirectory
requires individual adaptations which to be tested individually.

Additionally the weirdnesses of the powerpc subdirectories hit again,
esp. some powerpc cpu-models

  • install files to $(PROJECT_INCLUDE)/<cpu-model>/ while others install them to $(PROJECT_INCLUDE)/
  • the scheme used to configure libcpu/powerpc/ is difficult to implement using automake, therefore this subdirectory still is configured by autoconf (The one out of an unlimited set selection scheme hits again :), though powerpc/*/* subdirectories already apply automake.

The patch also reveils structural weaknesses in RTEMS:

E.g. There seem to exist at least 5 different general schemes:

  • Not using libcpu at all (eg. i960)
  • Strictly tree-style a libcpu/<cpu-variant>/* (eg. m68k, sh)
  • Flat libcpu directory layout with cpu-variants merged into sources or not destinguishing cpu-variants (i386)
  • Not supporting variants with deep source tree (sparc, hppa, mips64orion)
  • Woven directory structure with shared directories (powerpc)

I regret having to say this, but from my POV this means, that there
doesn't exist a general implementation scheme for libcpu at all.

To apply:

rm -rf ./c/src/lib/libcpu/i386/wrapup
rm -rf ./c/src/lib/libcpu/mips64orion/include
rm -rf ./c/src/lib/libcpu/powerpc/ppc403/include
patch -p1 < rtems-rc-19991203-7.diff
./bootstrap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7045/timer/Makefile.in

    r5bce35b r35d7b15  
    1 ##
    2 ##  $Id$
    3 ##
    4 
    5 @SET_MAKE@
     1# Makefile.in generated automatically by automake 1.4a from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
     13
     14
     15SHELL = @SHELL@
     16
    617srcdir = @srcdir@
    718top_srcdir = @top_srcdir@
    8 top_builddir = ../../..
    9 subdir = sh/sh7045/timer
    10 
     19VPATH = @srcdir@
     20prefix = @prefix@
     21exec_prefix = @exec_prefix@
     22
     23bindir = @bindir@
     24sbindir = @sbindir@
     25libexecdir = @libexecdir@
     26datadir = @datadir@
     27sysconfdir = @sysconfdir@
     28sharedstatedir = @sharedstatedir@
     29localstatedir = @localstatedir@
     30libdir = @libdir@
     31infodir = @infodir@
     32mandir = @mandir@
     33includedir = @includedir@
     34oldincludedir = /usr/include
     35
     36DESTDIR =
     37
     38pkgdatadir = $(datadir)/@PACKAGE@
     39pkglibdir = $(libdir)/@PACKAGE@
     40pkgincludedir = $(includedir)/@PACKAGE@
     41
     42top_builddir = ../..
     43
     44ACLOCAL = @ACLOCAL@
     45AUTOCONF = @AUTOCONF@
     46AUTOMAKE = @AUTOMAKE@
     47AUTOHEADER = @AUTOHEADER@
     48
     49INSTALL = @INSTALL@
     50INSTALL_PROGRAM = @INSTALL_PROGRAM@
     51INSTALL_DATA = @INSTALL_DATA@
     52INSTALL_SCRIPT = @INSTALL_SCRIPT@
     53INSTALL_STRIP_FLAG =
     54transform = @program_transform_name@
     55
     56NORMAL_INSTALL = :
     57PRE_INSTALL = :
     58POST_INSTALL = :
     59NORMAL_UNINSTALL = :
     60PRE_UNINSTALL = :
     61POST_UNINSTALL = :
     62build_alias = @build_alias@
     63build_triplet = @build@
     64host_alias = @host_alias@
     65host_triplet = @host@
     66target_alias = @target_alias@
     67target_triplet = @target@
     68CC = @CC@
     69CC_FOR_TARGET = @CC_FOR_TARGET@
     70CPP = @CPP@
     71GCCSED = @GCCSED@
     72INSTALL_CHANGE = @INSTALL_CHANGE@
     73MAINT = @MAINT@
     74MAKEINFO = @MAKEINFO@
     75PACKAGE = @PACKAGE@
     76PACKHEX = @PACKHEX@
     77PROJECT_INCLUDE = @PROJECT_INCLUDE@
     78PROJECT_RELEASE = @PROJECT_RELEASE@
     79PROJECT_ROOT = @PROJECT_ROOT@
     80RTEMS_BSP = @RTEMS_BSP@
     81RTEMS_BSP_FAMILY = @RTEMS_BSP_FAMILY@
     82RTEMS_CPU = @RTEMS_CPU@
     83RTEMS_CPU_MODEL = @RTEMS_CPU_MODEL@
     84RTEMS_HOST = @RTEMS_HOST@
     85RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
    1186RTEMS_ROOT = @RTEMS_ROOT@
    12 PROJECT_ROOT = @PROJECT_ROOT@
    13 
    14 VPATH = @srcdir@
     87RTEMS_TOPdir = @RTEMS_TOPdir@
     88VERSION = @VERSION@
     89
     90AUTOMAKE_OPTIONS = foreign 1.4
    1591
    1692PGM = ${ARCH}/timer.rel
    1793
    18 # C source names, if any, go here -- minus the .c
    19 C_PIECES = timer
    20 C_FILES = $(C_PIECES:%=%.c)
    21 C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
    22 
    23 H_FILES =
    24 
    25 # Assembly source names, if any, go here -- minus the .s
    26 S_PIECES =
    27 S_FILES = $(S_PIECES:%=%.s)
    28 S_O_FILES = $(S_FILES:%.s=${ARCH}/%.o)
    29 
    30 SRCS = $(C_FILES) $(H_FILES) $(S_FILES)
     94C_FILES = timer.c
     95C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     96
     97H_FILES =
     98
     99S_FILES =
     100S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     101
    31102OBJS = $(C_O_FILES) $(S_O_FILES)
     103
     104EXTRA_DIST = $(C_FILES) $(S_FILES)
     105mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../mkinstalldirs
     106CONFIG_CLEAN_FILES =
     107DIST_COMMON =  Makefile.am Makefile.in
     108
     109
     110DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     111
     112TAR = gtar
     113GZIP_ENV = --best
     114all: all-redirect
     115.SUFFIXES:
     116$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../automake/local.am
     117        cd $(top_srcdir) && $(AUTOMAKE) --foreign sh7045/timer/Makefile
     118
     119Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
     120        cd $(top_builddir) \
     121          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     122
     123tags: TAGS
     124TAGS:
     125
     126
     127distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     128
     129subdir = sh7045/timer
     130
     131distdir: $(DISTFILES)
     132        here=`cd $(top_builddir) && pwd`; \
     133        top_distdir=`cd $(top_distdir) && pwd`; \
     134        distdir=`cd $(distdir) && pwd`; \
     135        cd $(top_srcdir) \
     136          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign sh7045/timer/Makefile
     137        @for file in $(DISTFILES); do \
     138          d=$(srcdir); \
     139          if test -d $$d/$$file; then \
     140            cp -pr $$d/$$file $(distdir)/$$file; \
     141          else \
     142            test -f $(distdir)/$$file \
     143            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     144            || cp -p $$d/$$file $(distdir)/$$file || :; \
     145          fi; \
     146        done
     147info-am:
     148info: info-am
     149dvi-am:
     150dvi: dvi-am
     151check-am: all-am
     152check: check-am
     153installcheck-am:
     154installcheck: installcheck-am
     155install-exec-am:
     156install-exec: install-exec-am
     157
     158install-data-am:
     159install-data: install-data-am
     160
     161install-am: all-am
     162        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     163install: install-am
     164uninstall-am:
     165uninstall: uninstall-am
     166all-am: Makefile
     167all-redirect: all-am
     168install-strip:
     169        $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
     170installdirs:
     171
     172
     173mostlyclean-generic:
     174
     175clean-generic:
     176
     177distclean-generic:
     178        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     179        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     180
     181maintainer-clean-generic:
     182mostlyclean-am:  mostlyclean-generic
     183
     184mostlyclean: mostlyclean-am
     185
     186clean-am:  clean-generic mostlyclean-am
     187
     188clean: clean-am
     189
     190distclean-am:  distclean-generic clean-am
     191
     192distclean: distclean-am
     193
     194maintainer-clean-am:  maintainer-clean-generic distclean-am
     195        @echo "This command is intended for maintainers to use;"
     196        @echo "it deletes files that may require special tools to rebuild."
     197
     198maintainer-clean: maintainer-clean-am
     199
     200.PHONY: tags distdir info-am info dvi-am dvi check check-am \
     201installcheck-am installcheck install-exec-am install-exec \
     202install-data-am install-data install-am install uninstall-am uninstall \
     203all-redirect all-am all installdirs mostlyclean-generic \
     204distclean-generic clean-generic maintainer-clean-generic clean \
     205mostlyclean distclean maintainer-clean
     206
    32207
    33208include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    34209include $(RTEMS_ROOT)/make/leaf.cfg
    35 
    36 INSTALL_CHANGE = @INSTALL_CHANGE@
    37210
    38211#
     
    40213#
    41214
    42 DEFINES +=
    43 CPPFLAGS +=
    44 CFLAGS +=
    45 
    46 LD_PATHS +=
    47 LD_LIBS +=
    48 LDFLAGS +=
    49 
    50 #
    51 # Add your list of files to delete here.  The config files
    52 #  already know how to delete some stuff, so you may want
    53 #  to just run 'make clean' first to see what gets missed.
    54 #  'make clobber' already includes 'make clean'
    55 #
    56 
    57 CLEAN_ADDITIONS +=
    58 CLOBBER_ADDITIONS +=
    59 
    60215${PGM}: ${OBJS}
    61216        $(make-rel)
    62217
    63 all: ${ARCH} $(SRCS) $(PGM)
    64 
    65 # the .rel file built here will be put into libbsp.a by
    66 # libbsp/sh/BSP/Makefile
    67 install: all
    68 
    69 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    70         cd $(top_builddir) \
    71          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     218all: ${ARCH} $(PGM)
     219
     220debug-am:
     221debug: debug-am
     222.PHONY: debug debug-am
     223
     224profile-am:
     225profile: profile-am
     226.PHONY: profile profile-am
     227
     228preinstall-am: $(PREINSTALL_FILES)
     229preinstall: preinstall-am
     230.PHONY: preinstall preinstall-am
     231
     232depend-am:
     233depend: depend-am
     234.PHONY: depend depend-am
     235
     236# Tell versions [3.59,3.63) of GNU make to not export all variables.
     237# Otherwise a system limit (for SysV at least) may be exceeded.
     238.NOEXPORT:
Note: See TracChangeset for help on using the changeset viewer.